joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433261
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4332ab
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x433252
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x433261
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x838f04
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4332b2
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0041a128
cmp eax, dword [ebp + 0xc]
pop eax
je 0x433351
add edi, 4
add eax, 2
dec ecx
jne 0x433297
call 0x4332fe
loope 0x4332f4
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x43334e
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x43335f
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x433312
cmp eax, ecx
ja 0x433312
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x43339c
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x433392
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.0041a607
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x403090
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x43eec0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x403128
push 0x42f944
push 4
push eax
call fcn.00413e44
push eax
call fcn.00402323
add esp, 0x10
push ebx
push edi
call fcn.00413f4e
mov edi, dword [eax]
call fcn.00413f4e
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00413eeb
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00413f4e
cmp dword [eax], ebx
je 0x40313f
call fcn.00413f4e
push dword [eax]
call fcn.00403024
pop ecx
jmp 0x403146
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4030d3
jmp 0x4031cd
call fcn.00413f4e
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x4031c9
cmp dword [ebp - 0x234], esi
jae 0x4031c9
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00413fa0
add esp, 0xc
push 0x42f6a4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4031b8
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4031b8
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4031b8
push ebx
push ebx
push esi
jmp 0x4031c1
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4031cb
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00411d1d
leave
ret

Function at 0x4053a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4053c4
cmp dword [edi + 0x54], 0
jne 0x4053c4
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040e904
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00405361
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40a9e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40aa27
call fcn.0040e904
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40aa27
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40aa43
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040a558
mov esi, eax
test edi, edi
je 0x40aa41
test ebx, ebx
je 0x40aa41
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x411d1d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43eec0]
jne 0x411d27
repz ret
jmp fcn.00417a56

Function at 0x41fd62
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00417465
and dword [ebp - 4], 0
cmp dword [0x442cd8], 0
mov ebx, eax
jne 0x41fe13
push 0x4324cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41fec4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4324c0
push edi
call esi
test eax, eax
je 0x41fec4
push eax
call fcn.004173f3
mov dword [esp], 0x4324b0
push edi
mov dword [0x442cd8], eax
call esi
push eax
call fcn.004173f3
mov dword [esp], 0x43249c
push edi
mov dword [0x442cdc], eax
call esi
push eax
call fcn.004173f3
mov dword [esp], 0x432480
push edi
mov dword [0x442ce0], eax
call esi
push eax
call fcn.004173f3
pop ecx
mov dword [0x442ce8], eax
test eax, eax
je 0x41fe13
push 0x432468
push edi
call esi
push eax
call fcn.004173f3
pop ecx
mov dword [0x442ce4], eax
mov eax, dword [0x442ce4]
cmp eax, ebx
je 0x41fe6b
cmp dword [0x442ce8], ebx
je 0x41fe6b
push eax
call fcn.0041746e
push dword [0x442ce8]
mov esi, eax
call fcn.0041746e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41fe6b
test edi, edi
je 0x41fe6b
call esi
test eax, eax
je 0x41fe62
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41fe62
test byte [ebp - 0xc], 1
jne 0x41fe6b
or dword [ebp + 0x10], 0x200000
jmp 0x41fea4
mov eax, dword [0x442cdc]
cmp eax, ebx
je 0x41fea4
push eax
call fcn.0041746e
pop ecx
test eax, eax
je 0x41fea4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41fea4
mov eax, dword [0x442ce0]
cmp eax, ebx
je 0x41fea4
push eax
call fcn.0041746e
pop ecx
test eax, eax
je 0x41fea4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x442cd8]
call fcn.0041746e
pop ecx
test eax, eax
je 0x41fec4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41fec6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428a53
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 0xc]
push dword [0x442df4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0xc]
mov ebx, eax
push dword [0x442df4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov edi, eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
leave
ret

Function at 0x428b2f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x43eec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x442da4]
push ebx
xor ebx, ebx
push esi
push edi
cmp eax, ebx
jne 0x428bc1
push 0x4356d4
call fcn.00411fdf
pop ecx
lea edx, [ebp - 0x324]
movzx ecx, word [eax]
inc eax
mov word [edx], cx
inc eax
inc edx
inc edx
cmp cx, bx
jne 0x428b61
lea edi, [ebp - 0x324]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x428b78
push 8
pop ecx
lea eax, [ebp - 0x324]
push 0x43570c
mov esi, 0x4356ec
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00412128
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
pop ecx
pop ecx
push ebx
push ebx
push ebx
mov dword [0x442da4], eax
call esi
push ebx
push ebx
push ebx
mov dword [0x442d9c], eax
call esi
mov dword [0x442d98], eax
jmp 0x428c32
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x4c4b40
jle 0x428c32
push dword [0x442da4]
call fcn.004121b6
mov dword [esp], str.USERPROFILE
call fcn.00411fdf
pop ecx
lea edx, [ebp - 0x324]
movzx ecx, word [eax]
inc eax
mov word [edx], cx
inc eax
inc edx
inc edx
cmp cx, bx
jne 0x428bee
lea edi, [ebp - 0x324]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x428c05
push 8
pop ecx
lea eax, [ebp - 0x324]
push 0x43574c
mov esi, str.downloader.log
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00412128
pop ecx
pop ecx
mov dword [0x442da4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d1d
leave
ret
Function at 0x428df6
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov dword [eax], esi
mov ebx, 0x2800
mov edi, dword [ebp + 0x14]
sub edi, esi
mov eax, edi
cmp edi, ebx
jb 0x428e19
mov eax, ebx
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 0x10]
add eax, esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x428e4f
add esi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
inc eax
cmp dword [ecx + 0x100], eax
je 0x428eb7
cmp dword [ebp - 4], 0
jne 0x428e0c
jmp 0x428eb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetReadFile_failed_with
mov dword [ebp + 0x10], eax
call fcn.00428c4d
push dword [ebp + 0x14]
push str.....block_length:
call fcn.00428c4d
add esp, 0x10
cmp edi, ebx
jb 0x428e79
mov edi, ebx
push edi
push str.....bytes_requested:
call fcn.00428c4d
push esi
push str.....pos:
call fcn.00428c4d
add esp, 0x10
cmp dword [ebp + 0x10], 0x2ee4
jne 0x428eb7
push esi
push str.....trying_to_recover_from_error_12004
call fcn.00428c4d
mov eax, dword [ebp - 4]
add esi, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x428eb9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x429c6e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42d934
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x43eec0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea esi, [esp + 0x10]
call fcn.0042cbd3
and dword [esp + 0x30], 0
lea ebx, [edi + 0x18]
mov dword [esp + 0x10], 2
call fcn.00401273
mov ecx, dword [edi + 0x14]
inc ecx
push ecx
push dword [eax]
lea eax, [esp + 0x1c]
push str._s_n_d
push eax
call fcn.0040203b
mov eax, dword [edi + 0xc]
mov dword [esp + 0x28], eax
lea eax, [edi + 0x20]
add esp, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], 1
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x100], ebx
jne 0x429d60
cmp dword [esp + 0xc], ebx
jne 0x429d13
push dword [edi + 0x14]
push str.Retrying_request_for_block
call fcn.00428c4d
pop ecx
pop ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], ebx
cmp dword [esi + 0xb8], ebx
je 0x429ce6
lea ebx, [esi + 0x124]
inc dword [ebx]
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.004291db
dec dword [ebx]
test eax, eax
je 0x429ce6
xor ebx, ebx
cmp dword [esi + 0x100], ebx
jne 0x429d60
push dword [edi + 0x14]
push str.Block_downloaded:
call fcn.00428c4d
pop ecx
mov dword [edi + 8], 1
jmp 0x429d6a
push str.Block_interrupted
call fcn.00428d61
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
pop ecx
push dword [edi + 0x1c]
call esi
push dword [edi + 0x2c]
call esi
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402479
xor eax, eax
inc eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42a6c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6ee0]
jne 0x42a6ce
repz ret
jmp fcn.0042bd0a
Function at 0x42be59
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 + 0x4c7058]
je 0x42be74
inc edi
cmp edi, 0x17
jb 0x42be65
cmp edi, 0x17
jae 0x42bff4
push ebp
push 3
call fcn.0042efa0
cmp eax, 1
pop ecx
je 0x42bfc0
push 3
call fcn.0042efa0
test eax, eax
pop ecx
jne 0x42bea8
cmp dword [0x4c6ef0], 1
je 0x42bfc0
cmp ebx, 0xfc
je 0x42bff3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4c8970
push ebp
call fcn.0042ef3b
add esp, 0xc
test eax, eax
je 0x42bede
push esi
push esi
push esi
push esi
push esi
call fcn.0042cd49
add esp, 0x14
push 0x104
mov esi, 0x4c8989
push esi
push 0
mov byte [0x4c8a8d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42bf22
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042ef3b
add esp, 0xc
test eax, eax
je 0x42bf22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042cd49
add esp, 0x14
push esi
call fcn.0042eeb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42bf67
push esi
call fcn.0042eeb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4c8c84
push 0x4422cc
sub ecx, eax
push ecx
push eax
call fcn.0042edf9
add esp, 0x14
test eax, eax
je 0x42bf67
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042cd49
add esp, 0x14
jmp 0x42bf69
xor esi, esi
push 0x4422c8
push ebx
push ebp
call fcn.0042ed88
add esp, 0xc
test eax, eax
je 0x42bf89
push esi
push esi
push esi
push esi
push esi
call fcn.0042cd49
add esp, 0x14
push dword [edi*8 + 0x4c705c]
push ebx
push ebp
call fcn.0042ed88
add esp, 0xc
test eax, eax
je 0x42bfab
push esi
push esi
push esi
push esi
push esi
call fcn.0042cd49
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042ebcb
add esp, 0xc
jmp 0x42bff3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42bff3
cmp ebp, 0xffffffff
je 0x42bff3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4c705c]
push dword [esi]
call fcn.0042eeb0
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 0x42ebcb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042c714
xor ebx, ebx
cmp dword [0x4c8de0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42eca1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42ed81
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42ed81
push eax
call fcn.0042c6a6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4c8de0], eax
call esi
push eax
call fcn.0042c6a6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4c8de4], eax
call esi
push eax
call fcn.0042c6a6
mov dword [0x4c8de8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042aa95
test eax, eax
pop ecx
pop ecx
je 0x42ec6f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042cd49
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42eca1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042c6a6
cmp eax, ebx
pop ecx
mov dword [0x4c8df0], eax
je 0x42eca1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042c6a6
pop ecx
mov dword [0x4c8dec], eax
mov eax, dword [0x4c8dec]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42ed26
cmp dword [0x4c8df0], ecx
je 0x42ed26
push eax
call fcn.0042c71d
push dword [0x4c8df0]
mov esi, eax
call fcn.0042c71d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42ed26
cmp edi, ebx
je 0x42ed26
call esi
cmp eax, ebx
je 0x42ecf3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42ecf3
test byte [ebp - 0x18], 1
jne 0x42ed26
lea eax, [ebp - 0x10]
push eax
call fcn.0042aacc
test eax, eax
pop ecx
je 0x42ed0e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042cd49
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42ed1d
or dword [ebp + 0x10], 0x200000
jmp 0x42ed61
or dword [ebp + 0x10], 0x40000
jmp 0x42ed61
mov eax, dword [0x4c8de4]
cmp eax, dword [ebp - 8]
je 0x42ed61
push eax
call fcn.0042c71d
cmp eax, ebx
pop ecx
je 0x42ed61
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42ed61
mov eax, dword [0x4c8de8]
cmp eax, dword [ebp - 8]
je 0x42ed61
push eax
call fcn.0042c71d
cmp eax, ebx
pop ecx
je 0x42ed61
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c8de0]
call fcn.0042c71d
cmp eax, ebx
pop ecx
je 0x42ed81
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42ed83
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147f
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x40149a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ee
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ee
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f2
xor eax, eax
jmp 0x401504
cmp dword [ebp - 4], edi
je 0x401501
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x401944
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
xor esi, esi
call edi
test eax, eax
jbe 0x40197b
push ebx
mov ebx, ebp
sub ebx, str.svchost.exe
mov al, byte [ebx + esi + str.svchost.exe]
push ebp
xor al, 1
mov byte [esi + str.svchost.exe], al
inc esi
call edi
cmp esi, eax
jb 0x401963
pop ebx
and byte [esi + str.svchost.exe], 0
pop edi
pop esi
mov eax, str.svchost.exe
pop ebp
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219