joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412460
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push 8
push str.GSND_REQ
mov eax, dword [edi + 4]
mov ecx, dword [eax]
lea eax, [esi + 0xd]
push eax
mov dword [esi + 9], ecx
call fcn.00410af0
mov edx, dword [edi]
mov ecx, 0x44d95f
mov ebp, 0xffffffe9
add esp, 0xc
movzx ax, byte [edx]
mov word [esi + 0x15], ax
sub ecx, esi
lea eax, [esi + 0x17]
sub ebp, esi
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
lea edx, [eax + ebp]
cmp edx, 6
jl 0x4124a2
mov dword [esi + 0x1d], 0x10001
mov eax, dword [edi]
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x21], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov dword [esi + 0x25], eax
mov ecx, dword [edi]
mov dx, word [ecx + 2]
mov word [esi + 0x29], dx
mov eax, dword [edi]
mov cx, word [eax + 4]
mov word [esi + 0x2b], cx
call fcn.004125b0
mov dword [esi + 0x2d], eax
mov edx, dword [edi]
xor eax, eax
lea ebx, [esi + 0x35]
mov ax, word [edx + 6]
mov ebp, ebx
mov dword [esi + 0x31], eax
mov dword [esp + 0x18], 0x40
call fcn.004125b0
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
add ebp, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x4124fb
mov ecx, dword [edi]
xor eax, eax
cmp word [ecx + 6], ax
jbe 0x412533
mov ecx, dword [ecx + 0x10]
inc eax
mov dl, byte [ecx + eax - 1]
mov byte [ebx + eax - 1], dl
mov ecx, dword [edi]
xor edx, edx
mov dx, word [ecx + 6]
cmp eax, edx
jl 0x41251b
call fcn.004125b0
xor eax, 0xa1b2c3d4
mov dword [esi], eax
call fcn.004125b0
xor eax, 0xebdf9c26
mov byte [esi + 8], 0
mov dword [esi + 4], eax
xor eax, eax
mov cl, byte [eax + esi]
mov bl, byte [esi + 8]
add bl, cl
inc eax
cmp eax, 8
mov byte [esi + 8], bl
jl 0x412552
mov eax, dword [esi + 9]
xor eax, 0xa8a8a8a8
mov dword [esi + 9], eax
xor eax, eax
mov edx, eax
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x41257f
dec edx
or edx, 0xfffffff8
inc edx
mov cl, byte [edx + esi]
mov bl, byte [esi + eax + 0xd]
xor bl, cl
mov byte [esi + eax + 0xd], bl
inc eax
cmp eax, 0x128
jl 0x412570
xor eax, eax
mov edx, dword [edi + 8]
mov bl, byte [eax + esi]
mov cl, byte [edx + eax]
xor bl, cl
mov byte [eax + esi], bl
inc eax
cmp eax, 8
jl 0x412596
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x420a2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44c460
cmp edx, dword [eax]
je 0x420a4f
add eax, 8
inc ecx
cmp eax, 0x44c4f0
jl 0x420a40
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44c460]
jne 0x420b7d
mov eax, dword [0x44fa14]
cmp eax, 1
je 0x420b57
test eax, eax
jne 0x420a80
cmp dword [0x44bf84], 1
je 0x420b57
cmp edx, 0xfc
je 0x420b7d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x420ab7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00421300
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00420050
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x420afa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00420050
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x441ab8
push edi
call fcn.0041bfa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00421300
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00421310
lea eax, [ebp - 0xa0]
push 0x441a98
push eax
call fcn.00421310
push dword [esi + 0x44c464]
lea eax, [ebp - 0xa0]
push eax
call fcn.00421310
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042298e
add esp, 0x2c
pop edi
jmp 0x420b7d
lea eax, [ebp + 8]
lea esi, [esi + 0x44c464]
push 0
push eax
push dword [esi]
call fcn.00420050
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x427550
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041b590
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42761b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42761b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4275ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4275d9
or bh, 8
and edi, 0x8000000
je 0x4275f4
mov eax, dword [0x45119c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42761b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4279f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x427a1b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x427a3f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x427a5a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x42b5ad
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42b5e5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042a4b5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042a48d
jmp 0x42b5f1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42cca1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42cce3
call fcn.004375c8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42cce3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42ccda
xor eax, eax
jmp 0x42cceb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042ccf1
pop edi
pop esi
pop ebx
ret 4

Function at 0x42e470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x42e492
cmp dword [edi + 0x3c], 0
jne 0x42e492
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004375c8
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0042e4bf
pop edi
pop esi
pop ebx
ret 8

Function at 0x431830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43c3f0
call fcn.0041c268
push ecx
push ecx
push esi
push 0x10
call fcn.0042a5de
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x43187d
mov ecx, esi
call fcn.0042f739
mov eax, dword [0x44b0d8]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.0042a197
jmp 0x43187f
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x446ab0
push eax
mov dword [ebp - 0x10], esi
call fcn.0041bf13
pop esi
Function at 0x436e28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004375c8
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x436e65
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x436e65
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x436e69
xor eax, eax
jmp 0x436ee7
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0042a5de
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x436ea1
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x436e8b
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00436fd8
push ebx
mov edi, eax
call fcn.0042a607
test edi, edi
pop ecx
je 0x436ee3
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00436da1
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00436eec
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x4380f3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x438121
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43813f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00438059
jmp 0x43813f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43813f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00438059
test edi, edi
mov eax, edi
jne 0x438129
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402738
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
push edx
pop ebx
mov esi, eax
push ebx
pop eax
call fcn.00403d80
or esi, esi
jne 0x40276e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
push esp
pop edx
mov eax, ebx
call fcn.00403e70
jmp 0x40278c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
push ebx
pop edx
push edi
pop eax
call fcn.0040264c
push eax
pop edi
or esi, esi
je 0x40278c
cmp dword [ebx], 0
je 0x40278c
dec esi
jmp 0x402775
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d14
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
sub ebx, ebx
imul edx, dword [ebx + 0x40e008], 0x8088405
inc edx
mov dword [ebx + 0x40e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4032e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40e010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40337c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40335c
sub eax, eax
push ebp
push 0x403355
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403398
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40335c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40e010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40e010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403b88
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f034], 0
je 0x403be9
cmp word [0x40f208], 0xd7b2
jne 0x403bb1
cmp dword [0x40f210], 0
jbe 0x403bb1
mov eax, 0x40f204
call dword [0x40f220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40e074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403c10
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40e01c], 0
jne 0x403c05
push 0
push 0x40e094
push 0x40e074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403d3c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
push edx
pop esi
mov ebx, eax
nop
push 8
nop
pop eax
call fcn.004024dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x40f035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403d04
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404a54
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd8
mov dword [esp], edx
mov byte [esp + 4], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebp, eax
or ebp, ebp
jle 0x404b72
push 0
lea eax, [esp + 0xc]
push eax
push 0x16
lea eax, [esp + 0x1c]
push eax
push ebp
call sub.kernel32.dll_ReadFile_1
push 0
push 0
push 0
push ebp
call sub.kernel32.dll_SetFilePointer_1
mov eax, 0x26
call fcn.004024dc
push eax
pop esi
nop
push 0x22
nop
pop eax
call fcn.004024dc
push eax
pop edi
push 0
lea eax, [esp + 0xc]
push eax
push 0x26
push esi
pop ebx
push ebx
push ebp
call sub.kernel32.dll_ReadFile_1
push edi
pop edx
mov eax, ebx
pushal
popal
push 0x14
pop ecx
call fcn.0040260c
mov eax, dword [esi + 6]
mov dword [edi + 6], eax
mov eax, dword [esi + 0xa]
mov dword [edi + 0xa], eax
mov eax, dword [esi + 0xe]
mov dword [edi + 0xe], eax
mov word [edi + 0x12], 1
mov ebx, dword [esi + 0xe]
mov eax, ebx
call fcn.004024dc
mov dword [esp + 0xc], eax
push 0
push 0
mov eax, dword [esi + 0x12]
push eax
push ebp
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 0xc]
push eax
push ebx
mov eax, dword [esp + 0x18]
push eax
push ebp
call sub.kernel32.dll_ReadFile_1
push ebp
call sub.kernel32.dll_CloseHandle_1
push 0
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov ebp, eax
test ebp, ebp
jle 0x404b5b
push ebx
mov eax, dword [esp + 0x10]
push eax
push 0
push 1
push 3
push ebp
call sub.kernel32.dll_UpdateResourceA
push 0
push ebp
call sub.kernel32.dll_EndUpdateResourceA
mov byte [esp + 4], 1
mov eax, dword [esp + 0xc]
call fcn.004024fc
push edi
pop eax
call fcn.004024fc
push esi
pop eax
call fcn.004024fc
mov al, byte [esp + 4]
add esp, 0x28
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x404f48
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
xor ebx, ebx
mov dword [ebp - 0x1d8], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040ec
mov eax, dword [ebp - 8]
call fcn.004040ec
xor eax, eax
push ebp
push 0x40502e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d4]
call fcn.00402aa8
lea eax, [ebp - 0x1d4]
call fcn.00402838
call fcn.004025d0
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1d4]
call fcn.004042ec
call fcn.00403264
call fcn.004025d0
lea eax, [ebp - 0x1d8]
mov ecx, dword [ebp - 4]
mov edx, 0x405044
call fcn.00403f50
mov edx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d4]
call fcn.004042ec
call fcn.00403264
call fcn.004025d0
lea eax, [ebp - 0x1d4]
call fcn.00402c18
call fcn.004025d0
test bl, bl
je 0x405008
push 0
mov eax, dword [ebp - 4]
call fcn.004040fc
push eax
call sub.kernel32.dll_WinExec
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405035
lea eax, [ebp - 0x1d8]
call fcn.00403d80
lea eax, [ebp - 8]
nop
push 2
nop
pop edx
call fcn.00403da4
ret
Function at 0x40538c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push esp
pop ebp
push eax
nop
nop
push 4
pop eax
add esp, 0xfffff004
push eax
dec eax
jne 0x405395
mov eax, dword [ebp - 4]
add esp, 0xfffffff0
push ebx
sub ebx, ebx
mov dword [ebp - 0x4014], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004040ec
mov eax, dword [ebp - 8]
call fcn.004040ec
xor eax, eax
push ebp
push 0x405484
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x400f]
mov edx, 0x3fff
call fcn.00404a14
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004040fc
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x10], 0x3fff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x400f]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004040fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 0x4014]
lea edx, [ebp - 0x400f]
mov ecx, 0x3fff
call fcn.00403eec
cmp dword [ebp - 0x4014], 0
je 0x40545e
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x400f]
mov ecx, 0x3fff
call fcn.00403eec
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40548b
lea eax, [ebp - 0x4014]
call fcn.00403d80
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403da4
ret

Function at 0x405494
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
push eax
pop ebx
sub eax, eax
push ebp
push 0x405508
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x101]
mov ecx, 0x101
call fcn.00403eec
mov edx, dword [ebp - 0x108]
push ebx
pop eax
mov ecx, 0x40551c
call fcn.00403f50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40550f
lea eax, [ebp - 0x108]
call fcn.00403d80
ret
Function at 0x40670c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffe64
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x198], ecx
push edx
pop edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040ec
sub eax, eax
push ebp
push 0x406853
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
pop eax
call fcn.00403d80
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
sub edx, edx
push ebp
push 0x40681e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004040fc
push eax
call sub.wsock32.dll_gethostbyname
or eax, eax
je 0x406814
mov esi, dword [eax + 0xc]
sub ebx, ebx
jmp 0x40680a
cmp dword [ebp - 4], 0
jne 0x4067f6
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x198]
call fcn.00403eb0
mov edx, dword [ebp - 0x198]
mov eax, 0x40686c
call fcn.00404240
dec eax
je 0x406809
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x19c]
call fcn.00403eb0
mov edx, dword [ebp - 0x19c]
mov eax, 0x406878
call fcn.00404240
dec eax
je 0x406809
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.00403eb0
jmp 0x406814
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
push edi
pop eax
call fcn.00403eb0
inc ebx
cmp dword [esi + ebx*4], 0
jne 0x406787
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406828
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40685a
lea eax, [ebp - 0x19c]
nop
push 2
nop
pop edx
call fcn.00403da4
lea eax, [ebp - 4]
call fcn.00403d80
ret

Function at 0x406b5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004040fc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406b75
test al, 0x10
jne 0x406b79
sub eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x406b80
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffef4
push ebx
sub edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406c59
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, dword [0x40ea14]
cmp dword [eax], 0xa
jl 0x406bed
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x101]
mov ecx, 0x101
call fcn.00403eec
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x406c70
call fcn.00403f50
jmp 0x406c15
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x101]
mov ecx, 0x101
call fcn.00403eec
mov edx, dword [ebp - 0x10c]
push ebx
pop eax
mov ecx, 0x406c84
call fcn.00403f50
mov eax, dword [ebx]
call fcn.00406b5c
test al, al
jne 0x406c2f
push 0
mov eax, dword [ebx]
call fcn.004040fc
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, ebx
mov edx, 0x406c9c
call fcn.00403f0c
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c60
lea eax, [ebp - 0x10c]
pushal
popal
push 2
pop edx
call fcn.00403da4
ret