joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445ef4
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x457ac8]
je 0x445f0f
inc edi
cmp edi, 0x17
jb 0x445f00
cmp edi, 0x17
jae 0x44608f
push ebp
push 3
call fcn.0044b4e0
pop ecx
cmp eax, 1
je 0x44605b
push 3
call fcn.0044b4e0
pop ecx
test eax, eax
jne 0x445f43
cmp dword [0x457820], 1
je 0x44605b
cmp ebx, 0xfc
je 0x44608e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x467fd8
push ebp
call fcn.00448570
add esp, 0xc
test eax, eax
je 0x445f79
push esi
push esi
push esi
push esi
push esi
call fcn.00445dc9
add esp, 0x14
push 0x104
mov esi, 0x467ff1
push esi
push 0
mov byte [0x4680f5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x445fbd
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00448570
add esp, 0xc
test eax, eax
je 0x445fbd
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00445dc9
add esp, 0x14
push esi
call fcn.00448450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x446002
push esi
call fcn.00448450
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4682ec
push 0x45156c
sub ecx, eax
push ecx
push eax
call fcn.0044b42d
add esp, 0x14
test eax, eax
je 0x446002
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00445dc9
add esp, 0x14
jmp 0x446004
xor esi, esi
push 0x451568
push ebx
push ebp
call fcn.0044b3bc
add esp, 0xc
test eax, eax
je 0x446024
push esi
push esi
push esi
push esi
push esi
call fcn.00445dc9
add esp, 0x14
push dword [edi*8 + 0x457acc]
push ebx
push ebp
call fcn.0044b3bc
add esp, 0xc
test eax, eax
je 0x446046
push esi
push esi
push esi
push esi
push esi
call fcn.00445dc9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044b255
add esp, 0xc
jmp 0x44608e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44608e
cmp ebp, 0xffffffff
je 0x44608e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x457acc]
push dword [esi]
call fcn.00448450
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x447499
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
push edi
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4474b2
push esi
call fcn.0044318f
pop ecx
mov edi, eax
test edi, edi
je 0x44761a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x4682ec], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x4682f0], eax
call esi
push str.FlsFree
push edi
mov dword [0x4682f4], eax
call esi
cmp dword [0x4682ec], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4682f8], eax
je 0x44751b
cmp dword [0x4682f0], 0
je 0x44751b
cmp dword [0x4682f4], 0
je 0x44751b
test eax, eax
jne 0x44753f
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x4682f0], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x4682ec], 0x44717c
mov dword [0x4682f4], esi
mov dword [0x4682f8], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x457ba8], eax
cmp eax, 0xffffffff
je 0x44761f
push dword [0x4682f0]
push eax
call esi
test eax, eax
je 0x44761f
call fcn.0044349b
push dword [0x4682ec]
call fcn.00447095
push dword [0x4682f0]
mov dword [0x4682ec], eax
call fcn.00447095
push dword [0x4682f4]
mov dword [0x4682f0], eax
call fcn.00447095
push dword [0x4682f8]
mov dword [0x4682f4], eax
call fcn.00447095
add esp, 0x10
mov dword [0x4682f8], eax
call fcn.00444302
test eax, eax
je 0x44761a
push 0x44736a
push dword [0x4682ec]
call fcn.0044710d
pop ecx
call eax
mov dword [0x457ba4], eax
cmp eax, 0xffffffff
je 0x44761a
push 0x214
push 1
call fcn.004488dc
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44761a
push esi
push dword [0x457ba4]
push dword [0x4682f4]
call fcn.0044710d
pop ecx
call eax
test eax, eax
je 0x44761a
push 0
push esi
call fcn.004471f4
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x447621
call fcn.004471b7
xor eax, eax
pop edi
pop esi
ret

Function at 0x448ad0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x448ae1
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x448ade
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
ret

Function at 0x448b00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x448b3a
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x448b32
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x448b3c
inc edx
add eax, 0x28
cmp edx, esi
jb 0x448b22
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x44a136
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x468480]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
push 2
pop ebp
cmp eax, ebx
jne 0x44a17f
call edi
mov esi, eax
cmp esi, ebx
je 0x44a166
mov dword [0x468480], 1
jmp 0x44a188
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x44a17a
mov eax, ebp
mov dword [0x468480], eax
jmp 0x44a17f
mov eax, dword [0x468480]
cmp eax, 1
jne 0x44a20c
cmp esi, ebx
jne 0x44a19b
call edi
mov esi, eax
cmp esi, ebx
jne 0x44a19b
xor eax, eax
jmp 0x44a264
mov eax, esi
cmp word [esi], bx
je 0x44a1b0
add eax, ebp
cmp word [eax], bx
jne 0x44a1a2
add eax, ebp
cmp word [eax], bx
jne 0x44a1a2
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x44a201
push ebp
call fcn.0044889c
pop ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x44a201
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x44a1fd
push dword [esp + 0x10]
call fcn.00441765
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x44a264
cmp eax, ebp
je 0x44a214
cmp eax, ebx
jne 0x44a194
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x44a194
cmp byte [esi], bl
je 0x44a232
inc eax
cmp byte [eax], bl
jne 0x44a228
inc eax
cmp byte [eax], bl
jne 0x44a228
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.0044889c
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x44a250
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x44a194
push ebp
push esi
push edi
call fcn.00441bb0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x44b255
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00447104
and dword [ebp - 4], 0
cmp dword [0x468488], 0
mov ebx, eax
jne 0x44b304
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44b3b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44b3b5
push eax
call fcn.00447095
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x468488], eax
call esi
push eax
call fcn.00447095
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46848c], eax
call esi
push eax
call fcn.00447095
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x468490], eax
call esi
push eax
call fcn.00447095
pop ecx
mov dword [0x468498], eax
test eax, eax
je 0x44b304
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00447095
pop ecx
mov dword [0x468494], eax
mov eax, dword [0x468494]
cmp eax, ebx
je 0x44b35c
cmp dword [0x468498], ebx
je 0x44b35c
push eax
call fcn.0044710d
push dword [0x468498]
mov esi, eax
call fcn.0044710d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44b35c
test edi, edi
je 0x44b35c
call esi
test eax, eax
je 0x44b353
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44b353
test byte [ebp - 0xc], 1
jne 0x44b35c
or dword [ebp + 0x10], 0x200000
jmp 0x44b395
mov eax, dword [0x46848c]
cmp eax, ebx
je 0x44b395
push eax
call fcn.0044710d
pop ecx
test eax, eax
je 0x44b395
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44b395
mov eax, dword [0x468490]
cmp eax, ebx
je 0x44b395
push eax
call fcn.0044710d
pop ecx
test eax, eax
je 0x44b395
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x468488]
call fcn.0044710d
pop ecx
test eax, eax
je 0x44b3b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44b3b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.g452dhdr]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.g452dhdr]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.g452dhdr]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.g452dhdr]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.g452dhdr]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.g452dhdr]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b39
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401b70
lea ebx, [ebx]
cmp esi, edx
jae 0x401b74
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401b60
cmp esi, edx
jb 0x401b7b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x410370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0ae6
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x540c80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], ecx
mov esi, dword [0x544c44]
push 0xf0
push 0x81
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41052c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41052c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41052c
mov edx, 0x1234
mov edi, edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x41052c
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x410489
push 3
lea eax, [ebp - 0x214]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], eax
call fcn.00410750
mov dword [ebp - 4], 0
push dword [ebp - 0x218]
mov eax, dword [ebp - 0x21c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
cmp eax, ecx
je 0x410519
push eax
call fcn.004b0093
add esp, 4
jmp 0x410519
cmp dx, ax
jne 0x41051e
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x240], 0xffffffff
mov dword [ebp - 0x114], eax
call fcn.00410750
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
cmp eax, ecx
je 0x4104f3
push eax
call fcn.004b0093
add esp, 4
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4103f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af5ba
mov esp, ebp
pop ebp
ret 4
Function at 0x419510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419581
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41954f
cmp eax, 2
jne 0x41956b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x41957b
test ecx, ecx
je 0x419576
test cl, 1
jne 0x41956b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x41957b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x419590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4195a5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x4195b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4195b0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41c980
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.0041c900
mov dword [ebp - 8], eax
test ebx, ebx
je 0x41ca83
mov edi, dword [ebp + 8]
test edi, edi
je 0x41ca83
cmp eax, dword [ebp + 0xc]
ja 0x41ca83
xor eax, eax
test esi, esi
je 0x41ca44
cmp eax, esi
jae 0x41c9c8
movzx edx, byte [eax + ebx]
inc eax
jmp 0x41c9ca
xor edx, edx
cmp eax, esi
jae 0x41c9d8
movzx ecx, byte [eax + ebx]
mov dword [ebp - 4], ecx
inc eax
jmp 0x41c9df
mov dword [ebp - 4], 0
cmp eax, esi
jae 0x41c9ea
movzx ecx, byte [eax + ebx]
inc eax
jmp 0x41c9ec
xor ecx, ecx
shl edx, 8
add edx, dword [ebp - 4]
add edi, 4
shl edx, 8
add edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_nbietldbtcbqefkdbpplfahmiiiniuplqbqfoghuncrhhtukpjnkrptqimorndictpmkmrqmubmluibglcjsimelflllehrtjdfd]
mov byte [edi - 4], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_nbietldbtcbqefkdbpplfahmiiiniuplqbqfoghuncrhhtukpjnkrptqimorndictpmkmrqmubmluibglcjsimelflllehrtjdfd]
mov byte [edi - 3], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_nbietldbtcbqefkdbpplfahmiiiniuplqbqfoghuncrhhtukpjnkrptqimorndictpmkmrqmubmluibglcjsimelflllehrtjdfd]
mov byte [edi - 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_nbietldbtcbqefkdbpplfahmiiiniuplqbqfoghuncrhhtukpjnkrptqimorndictpmkmrqmubmluibglcjsimelflllehrtjdfd]
mov byte [edi - 1], cl
cmp eax, esi
jb 0x41c9c1
mov edi, dword [ebp + 8]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
xor ecx, ecx
lea eax, [edx + edx*2]
mov edx, dword [ebp - 8]
sub esi, eax
cmp dword [esi*4 + 0x5287b8], ecx
jle 0x41ca75
lea eax, [edx - 1]
add eax, edi
mov byte [eax], 0x3d
inc ecx
lea eax, [eax - 1]
cmp ecx, dword [esi*4 + 0x5287b8]
jl 0x41ca65
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422070
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6100
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x540c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
push 0x3c
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.004b4a90
mov eax, dword [ebp + 8]
mov esi, 1
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x3c], str.open
mov ecx, dword [eax - 8]
mov edx, esi
sub edx, dword [eax - 4]
add esp, 0xc
or ecx, edx
jge 0x4220de
push 0
lea ecx, [ebp + 8]
call fcn.00402850
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x44], 0x440
sub esi, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, esi
jge 0x422109
push 0
lea ecx, [ebp + 0xc]
call fcn.00402850
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x545d90]
mov dword [ebp - 0x34], eax
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x11
idiv ecx
cmp edx, 1
jne 0x422135
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [0x547010]
test eax, eax
jne 0x42216d
push 0x520cd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x422160
push str.ShellExecuteExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x547010], eax
jmp 0x422165
mov eax, dword [0x547010]
test eax, eax
jne 0x42216d
xor bl, bl
jmp 0x422179
lea ecx, [ebp - 0x48]
push ecx
call eax
cmp eax, 1
sete bl
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42219c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4221bd
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6579
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x540c80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x58], 0
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x54], 0x5f005f
mov dword [ebp - 0x50], 0x520043
mov dword [ebp - 0x4c], 0x40005f
mov dword [ebp - 0x48], 0x410046
mov dword [ebp - 0x44], 0x4c0049
mov dword [ebp - 0x40], 0x440045
mov dword [ebp - 0x3c], 0x44005f
mov dword [ebp - 0x38], 0x57004f
mov dword [ebp - 0x34], 0x4c004e
mov dword [ebp - 0x30], 0x41004f
mov dword [ebp - 0x2c], 0x5f0044
mov dword [ebp - 0x28], 0x450052
mov dword [ebp - 0x24], 0x440041
mov dword [ebp - 0x20], 0x5f0040
mov dword [ebp - 0x1c], 0x520043
mov dword [ebp - 0x18], 0x5f005f
call fcn.004025a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af5ba
mov esp, ebp
pop ebp
ret

Function at 0x423f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6a70
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x540c80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42403c
mov esi, dword [0x545d90]
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0xc
idiv ecx
cmp edx, 1
jne 0x424038
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x141]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004aed89
push eax
call fcn.004afe1b
add esp, 8
xor bl, bl
jmp 0x4240a1
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov ecx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
or ecx, edx
jge 0x424072
push 0
lea ecx, [ebp + 8]
call fcn.00402850
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [esi + esi]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4240c5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret