joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4203c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4203d0
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop ebp
ret

Function at 0x432f97
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432c48

Function at 0x432fa2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432dd2

Function at 0xc3e1e3
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
je 0x85f578
mov eax, dword [eax + ecx + 0x7c]
push ebx
clc
push edi
mov dword [ebp - 0x10], eax
clc
mov dword [ebp - 8], 0xffffffff
clc
cmp esi, 0xffff
ja 0xccef0d
mov eax, esi
test eax, edx
clc
sub eax, dword [edx + ecx + 0x10]
jmp 0xc8a3d3
jne 0x85f578
mov edx, dword [eax + ecx + 0x78]
test bp, si
stc
mov dword [ebp - 4], edx
test edx, edx
jmp 0x791647
mov eax, dword [ecx + 0x3c]
cmp esp, 0x3a9e0388
cmp ecx, edx
cmp dword [eax + ecx], 0x4550
jmp 0x7c3dab
lea eax, [eax + ecx]
test dh, 0x68
cmc
xor ebx, ebx
jmp 0x85ecef
mov eax, dword [ebp + 8]
btc edx, 0x59
bsr dx, di
mov ecx, dword [ebp - 4]
movsx edx, si
mov edx, dword [ecx + eax + 0x24]
xchg cx, cx
lea ecx, [edx + esi*2]
rcl edx, 0x1a
movzx edx, word [ecx + eax]
cmp si, 0x6184
mov dword [ebp - 8], edx
and cx, 0x734c
mov ecx, eax
or ah, 0x88
xor edx, 0x729441b0
mov edx, dword [ebp - 4]
dec eax
sbb al, 0x37
bswap eax
mov eax, dword [ebp - 8]
test dx, si
cmp eax, dword [edx + ecx + 0x14]
jmp 0xc32e0e
dec edi
jmp 0xbce838
je 0x7cd156
sub eax, eax
pop esi
jmp 0xbf8c68
je 0x84e6df
mov eax, dword [edx + ecx + 0x20]
stc
test bx, 0x78bb
jmp 0x82efa2
jle 0x84e69d
lea ebx, [esi + 1]
btr ecx, 0x7b
mov ecx, dword [ebp + 8]
cmp ebx, edi
jmp 0xc00656
mov dword [ebp - 0xc], eax
js 0x84e6df
jmp 0xc4f4e9
mov esp, ebp
pop ebp
jmp 0xc73813
jle 0xc4f4e6
jmp 0x84e6d7
push edx
mov dx, bp
mov edx, dword [ebp + 0xc]
clc
add eax, ecx
jmp 0xcabfb5
push ebp
mov ebp, esp
xor cx, ax
mov ecx, dword [ebp + 8]
lea esp, [esp - 0x114]
push esi
stc
test ecx, ecx
jmp 0xcb3801
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
lea esi, [edi + ebx]
sar esi, 1
cmp si, si
mov eax, dword [eax + esi*4]
jmp 0xc1b57c
jmp 0x84e6df
ret
mov dword [ebp - 8], eax
jmp 0xc5055b
call fcn.0086b877
add esp, 4
clc
test eax, eax
jmp 0xcdfc06
je 0x85f578
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x85f578
mov eax, 0x5a4d
stc
cmp esi, 0xcad645a
cmp esp, ebp
cmp word [ecx], ax
jmp 0x85f572
mov edi, dword [edx + ecx + 0x18]
test edi, edi
jmp 0x88dba6
jns 0xbb3bd9
lea edi, [esi - 1]
jmp 0xbb3be6
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x403e59
pop dword [ebp - 0x24]
mov eax, 0x932b4c3e
add eax, 0x6d14f21b
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x3aec1169
sub dword [ebp - 0x34], 0xec99cc1e
mov dword [ebp - 0x30], 0x55f86426
sub dword [ebp - 0x30], 0x23c517e1
mov dword [ebp - 0x2c], 0xa89ecb11
add dword [ebp - 0x2c], 0xa3ad791d
mov dword [ebp - 0x28], 0x80f6f9a9
add dword [ebp - 0x28], 0x7f090657
lea eax, [ebp - 0x34]
push eax
mov eax, 0x28deaa7b
sub eax, 0x289e3a17
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x82d14740
sub dword [ebp - 0x34], 0xe5eddea
mov dword [ebp - 0x30], 0x4ae9017f
sub dword [ebp - 0x30], 0x97ca00a
mov dword [ebp - 0x2c], 0xc1a6a111
sub dword [ebp - 0x2c], 0x5e3734a5
mov dword [ebp - 0x28], 0x8fc61e42
sub dword [ebp - 0x28], 0x8fc61e42
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x5722b2ad
sub eax, 0x56e24205
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3852d
push 0
call eax
mov ecx, 0xe7045592
add ecx, 0x18fbf8bc
xor edi, edi
add edi, eax
mov edx, 0x127fbe5a
sub edx, 0x123ebe5a
add edx, dword [ebp - 0x24]
mov esi, 0xfb159c7e
add dword [ebp - 0x18], 0x368416d6
mov ebx, dword [edx]
add dword [ebp - 0x20], esi
add ebx, esi
xor dword [ebp - 0x14], 0x2438f28b
mov dword [edi], ebx
add edi, 4
add edx, 0x2cfc4f5b
add edx, 0xd303b0a9
loop 0x403f77
add eax, 0xed21aa28
sub eax, 0xed207e1d
xor ebx, ebx
add ebx, eax
add eax, 0x346c84d9
sub eax, 0x346c84d4
mov ecx, 0xf260a6d5
add ecx, 0xddf592b
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x4273a0
Capabilities:
Create thread
Terminate process

Disassembly:
push esi
test edi, edi
jne 0x42740e
push edi
push edi
push edi
push 0x427370
push 0x1000
push edi
mov dword [0x481490], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4273e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x481abc]
push esi
push 0x46f8cc
push eax
call sub.LIBEAY32.dll_Ordinal_86_1
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x481490]
test ecx, ecx
jne 0x42740e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
push 0
call esi
mov edx, dword [0x481490]
test edx, edx
je 0x427400
mov eax, dword [0x47eb00]
push eax
push edi
call fcn.004326d0
add esp, 8
pop esi
ret

Function at 0x42ea90
Capabilities:
Get socket status

Disassembly:
mov eax, 0x104
call fcn.0044f440
push esi
call sub.LIBEAY32.dll_Ordinal_91
push eax
call sub.LIBEAY32.dll_Ordinal_78_1
mov esi, eax
add esp, 4
test esi, esi
jne 0x42eab7
pop esi
add esp, 0x104
ret
mov eax, dword [str.localhost:4433]
push ebx
push edi
push eax
push 0
push 0x64
push esi
call sub.LIBEAY32.dll_Ordinal_52_1
mov ebx, dword [esp + 0x124]
add esp, 0x10
test ebx, ebx
jne 0x42eae7
mov ecx, dword [0x4815bc]
push ecx
call sub.SSLEAY32.dll_Ordinal_75
mov edi, eax
jmp 0x42eaef
push ebx
mov edi, ebx
call sub.SSLEAY32.dll_Ordinal_86
add esp, 4
push esi
push esi
push edi
call sub.SSLEAY32.dll_Ordinal_83
push edi
call sub.SSLEAY32.dll_Ordinal_43
mov esi, eax
push esi
call sub.LIBEAY32.dll_Ordinal_107
add esp, 0x14
test eax, eax
je 0x42eb73
mov ebx, dword [sym.imp.WS2_32.dll_select]
jmp 0x42eb20
mov edx, dword [0x481abc]
push str.DELAY_n
push edx
call sub.LIBEAY32.dll_Ordinal_86_1
push edi
call sub.SSLEAY32.dll_Ordinal_59
add esp, 0xc
push 0
push 0
lea ecx, [eax + 1]
mov dword [esp + 0x18], eax
push 0
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], 1
call ebx
push edi
call sub.SSLEAY32.dll_Ordinal_43
mov esi, eax
push esi
call sub.LIBEAY32.dll_Ordinal_107
add esp, 8
test eax, eax
jne 0x42eb20
mov ebx, dword [esp + 0x114]
test esi, esi
jg 0x42ebd8
mov ecx, dword [0x481abc]
push str.ERROR_n
push ecx
call sub.LIBEAY32.dll_Ordinal_86_1
mov eax, dword [0x481600]
add esp, 8
test eax, eax
je 0x42ebb1
push eax
call sub.LIBEAY32.dll_Ordinal_680
mov edx, dword [0x481abc]
push eax
push str.verify_error:_s_n
push edx
call sub.LIBEAY32.dll_Ordinal_86_1
add esp, 0x10
jmp 0x42ebbf
mov eax, dword [0x481abc]
push eax
call sub.LIBEAY32.dll_Ordinal_250
add esp, 4
test ebx, ebx
jne 0x42ebcc
push edi
call sub.SSLEAY32.dll_Ordinal_48
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x104
ret
mov eax, edi
pop edi
pop ebx
pop esi
add esp, 0x104
ret

Function at 0x432850
Capabilities:
Read file on windows

Disassembly:
mov eax, 4
call fcn.0044f440
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 4]
push eax
push ecx
push edx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432883
mov eax, dword [esp]
pop ecx
ret
or eax, 0xffffffff
pop ecx
ret
Function at 0x432890
Capabilities:
Write file on windows

Disassembly:
mov eax, 4
call fcn.0044f440
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 4]
push eax
push ecx
push edx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4328c3
mov eax, dword [esp]
pop ecx
ret
or eax, 0xffffffff
pop ecx
ret

Function at 0x435bd0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x4819f0], 0
jne 0x435c34
push 0x435bb0
push 2
call fcn.0045141d
push 0x190
push 0
push 0x481860
mov dword [0x4819f0], 1
call fcn.0044fa10
add esp, 0x14
push 0x481860
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x435c34
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [0x481abc]
push str.unable_to_start_WINSOCK__error_code_d_n
push eax
call sub.LIBEAY32.dll_Ordinal_86_1
add esp, 0xc
xor eax, eax
ret
mov eax, 1
ret

Function at 0x435c40
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 0x18
call fcn.0044f440
mov eax, dword [0x47f880]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, ecx
call fcn.00435bd0
test eax, eax
je 0x435ce0
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, 2
push ecx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, byte [esi + 1]
movzx ecx, byte [esi + 2]
mov word [esp + 0xa], ax
movzx eax, byte [esi]
shl eax, 8
or eax, edx
movzx edx, byte [esi + 3]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0xc], eax
cmp edi, 1
jne 0x435cc0
push 6
push edi
jmp 0x435cc4
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x435cf2
push str.socket
call fcn.0044f493
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044f6de
add esp, 0x18
ret
cmp edi, 1
jne 0x435d42
push 4
lea eax, [esp + 8]
push eax
push 8
push 0xffff
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [esp + 4], eax
test eax, eax
jge 0x435d42
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push str.keepalive
call fcn.0044f493
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044f6de
add esp, 0x18
ret
push 0x10
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x435d7b
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push str.connect
call fcn.0044f493
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044f6de
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov dword [ebx], esi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044f6de
add esp, 0x18
ret
Function at 0x435dbb
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x18
call fcn.0044f440
mov eax, dword [0x47f880]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, ecx
xor ebx, ebx
call fcn.00435bd0
test eax, eax
jne 0x435ddb
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044f6de
add esp, 0x18
ret
mov ecx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, 2
push ecx
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
test esi, esi
jne 0x435e11
mov dword [esp + 0x14], ebx
jmp 0x435e17
mov edx, dword [esi]
mov dword [esp + 0x14], edx
cmp ebp, 1
jne 0x435e21
push 6
push ebp
jmp 0x435e25
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x435e95
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x435e95
cmp ebp, 1
jne 0x435e7a
push 0x80
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x435e95
mov dword [edi], esi
pop esi
mov ebx, 1
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044f6de
add esp, 0x18
ret
cmp esi, 0xffffffff
je 0x435eaa
push 0
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0044f6de
add esp, 0x18
ret
Function at 0x435f20
Capabilities:
Resolve dns

Disassembly:
mov eax, 4
call fcn.0044f440
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
or ebx, 0xffffffff
mov esi, 0x4816a0
mov eax, dword [esi]
cmp ebx, eax
jbe 0x435f4c
mov ebx, eax
mov dword [esp + 0x10], edi
test eax, eax
jbe 0x435f69
push 0x80
lea eax, [esi - 0x90]
push eax
push ebp
call fcn.0044f61e
add esp, 0xc
test eax, eax
je 0x435f78
add esi, 0x94
inc edi
cmp esi, 0x4818f0
jl 0x435f40
cmp edi, 4
jne 0x436017
inc dword [0x4819f8]
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x435f98
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, ebp
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x435fa0
sub ecx, esi
cmp ecx, 0x80
jae 0x436040
mov edx, dword [esp + 0x10]
imul edx, edx, 0x94
lea esi, [edx + 0x481610]
mov ecx, ebp
sub esi, ebp
lea esp, [esp]
mov bl, byte [ecx]
mov byte [esi + ecx], bl
inc ecx
test bl, bl
jne 0x435fd0
mov ecx, dword [eax]
mov esi, dword [0x4819f4]
mov dword [edx + 0x481690], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 0x481694], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 0x481698], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x48169c], ecx
mov ecx, dword [0x4819f8]
add esi, ecx
pop edi
mov dword [edx + 0x4816a0], esi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [0x4819f4]
mov edx, dword [0x4819f8]
mov eax, edi
imul eax, eax, 0x94
inc ecx
mov dword [0x4819f4], ecx
add ecx, edx
mov dword [eax + 0x4816a0], ecx
lea eax, [eax + 0x481690]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x44f6de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47f880]
jne 0x44f6e8
repz ret
jmp fcn.00456095

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x450936
call fcn.004512ea
mov dword [eax], esi
call fcn.004512d7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004533a7
add esp, 0x14
push 0x16
pop eax
jmp 0x45098b
test dword [ebp + 0xc], 0xfffffff9
jne 0x450912
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x450963
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004512fd
pop ecx
call fcn.004512d7
mov eax, dword [eax]
jmp 0x45098b
test al, 0x10
jne 0x450989
test al, 1
je 0x450989
test byte [ebp + 0xc], 2
je 0x450989
call fcn.004512ea
mov dword [eax], 5
call fcn.004512d7
mov dword [eax], 0xd
jmp 0x45095a
xor eax, eax
pop esi
pop ebp
ret
Function at 0x45795a
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.00453c4e
and dword [ebp - 4], 0
cmp dword [0x482430], 0
mov ebx, eax
jne 0x457a0b
push 0x479514
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x457abc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
test eax, eax
je 0x457abc
push eax
call fcn.00453bdc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x482430], eax
call esi
push eax
call fcn.00453bdc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x482434], eax
call esi
push eax
call fcn.00453bdc
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x482438], eax
call esi
push eax
call fcn.00453bdc
pop ecx
mov dword [0x482440], eax
test eax, eax
je 0x457a0b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00453bdc
pop ecx
mov dword [0x48243c], eax
mov eax, dword [0x48243c]
cmp eax, ebx
je 0x457a63
cmp dword [0x482440], ebx
je 0x457a63
push eax
call fcn.00453c57
push dword [0x482440]
mov esi, eax
call fcn.00453c57
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x457a63
test edi, edi
je 0x457a63
call esi
test eax, eax
je 0x457a5a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x457a5a
test byte [ebp - 0xc], 1
jne 0x457a63
or dword [ebp + 0x10], 0x200000
jmp 0x457a9c
mov eax, dword [0x482434]
cmp eax, ebx
je 0x457a9c
push eax
call fcn.00453c57
pop ecx
test eax, eax
je 0x457a9c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x457a9c
mov eax, dword [0x482438]
cmp eax, ebx
je 0x457a9c
push eax
call fcn.00453c57
pop ecx
test eax, eax
je 0x457a9c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x482430]
call fcn.00453c57
pop ecx
test eax, eax
je 0x457abc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x457abe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45b815
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.00453c4e
and dword [ebp - 4], 0
cmp dword [0x48247c], 0
mov ebx, eax
jne 0x45b8c6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45b977
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45b977
push eax
call fcn.00453bdc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48247c], eax
call esi
push eax
call fcn.00453bdc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x482480], eax
call esi
push eax
call fcn.00453bdc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x482484], eax
call esi
push eax
call fcn.00453bdc
pop ecx
mov dword [0x48248c], eax
test eax, eax
je 0x45b8c6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00453bdc
pop ecx
mov dword [0x482488], eax
mov eax, dword [0x482488]
cmp eax, ebx
je 0x45b91e
cmp dword [0x48248c], ebx
je 0x45b91e
push eax
call fcn.00453c57
push dword [0x48248c]
mov esi, eax
call fcn.00453c57
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45b91e
test edi, edi
je 0x45b91e
call esi
test eax, eax
je 0x45b915
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45b915
test byte [ebp - 0xc], 1
jne 0x45b91e
or dword [ebp + 0x10], 0x200000
jmp 0x45b957
mov eax, dword [0x482480]
cmp eax, ebx
je 0x45b957
push eax
call fcn.00453c57
pop ecx
test eax, eax
je 0x45b957
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45b957
mov eax, dword [0x482484]
cmp eax, ebx
je 0x45b957
push eax
call fcn.00453c57
pop ecx
test eax, eax
je 0x45b957
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48247c]
call fcn.00453c57
pop ecx
test eax, eax
je 0x45b977
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45b979
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40333c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004050d0
test esi, esi
jne 0x403372
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004051c0
jmp 0x403390
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031e0
mov edi, eax
test esi, esi
je 0x403390
cmp dword [ebx], 0
je 0x403390
dec esi
jmp 0x403379
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403fe4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40407c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40405c
xor eax, eax
push ebp
push 0x404055
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 0x404098
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40405c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x48c020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48c020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404e9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49104c], 0
je 0x404efd
cmp word [0x491220], 0xd7b2
jne 0x404ec5
cmp dword [0x491228], 0
jbe 0x404ec5
mov eax, 0x49121c
call dword [0x491238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404f24
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48c02c], 0
jne 0x404f19
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405054
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x48c034], 0
je 0x40507a
mov edx, esi
mov eax, ebx
call dword [0x48c034]
jmp 0x405089
mov eax, 8
call fcn.00402ee4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x49104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40501c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc