joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf29800
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xad4000]
push edi
jmp 0xf2981a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xf29821
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf29810
mov eax, 1
add ebx, ebx
jne 0xf29833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xf29844
jne 0xf29863
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf29863
dec eax
add ebx, ebx
jne 0xf29850
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xf29828
add ebx, ebx
jne 0xf2985f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xf298b5
xor ecx, ecx
sub eax, 3
jb 0xf2987b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xf298ea
sar eax, 1
mov ebp, eax
jmp 0xf29886
add ebx, ebx
jne 0xf29886
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf29854
inc ecx
add ebx, ebx
jne 0xf29894
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf29854
add ebx, ebx
jne 0xf298a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xf29896
jne 0xf298b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf29896
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xf298d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xf298c6
jmp 0xf29816
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xf298d4
add edi, ecx
jmp 0xf29816
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xf298f2
cmp byte [edi], 0x11
jne 0xf298f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xf298f7
lea edi, [esi + 0xb22000]
mov eax, dword [edi]
or eax, eax
je 0xf2996f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x157cca8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x157ce24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xf29924
mov ecx, edi
jns 0xf29953
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x157ce28]
or eax, eax
je 0xf29969
mov dword [ebx], eax
add ebx, 4
jmp 0xf29941
call dword [esi + 0x157ce38]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xf299a0
cmp al, 0xef
ja 0xf29993
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xf29975
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xf29982
mov ebp, dword [esi + 0x157ce2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xf299d4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x401ec0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432b90
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43c2d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.7A23EC47_F9C9_4b1a_A812_489C7A8C8927
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401f17
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401f53
call fcn.00407570
test eax, eax
je 0x401f47
mov dword [ebp - 4], 0
call fcn.00401c00
jmp 0x401f3b
mov dword [ebp - 4], 0xffffffff
call fcn.004075e0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403330
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x403310
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404c90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5010
call fcn.004278c0
mov eax, dword [0x43c2d0]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x5000
lea eax, [ebp - 0x5010]
push eax
call fcn.0041e308
add esp, 0x10
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x5010]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041d976
mov esp, ebp
pop ebp
ret
Function at 0x404ed0
Capabilities:
Enumerate process modules
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x43c2d0]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push str.Enter_SetWindowsAPIHook_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x404efd
xor eax, eax
jmp 0x404fe7
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
jne 0x404f0d
xor eax, eax
jmp 0x404fe7
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
jne 0x404f1d
xor eax, eax
jmp 0x404fe7
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x404fd2
mov dword [ebp - 0x258], 0x224
push 0x220
push 0
lea ecx, [ebp - 0x254]
push ecx
call fcn.00422bf0
add esp, 0xc
push 0x1c
lea edx, [ebp - 0x28]
push edx
push fcn.00404de0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Module32First
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404fbe
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 4]
je 0x404fa9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x23c]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404de0
add esp, 4
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Module32Next
mov dword [ebp - 0xc], eax
jmp 0x404f80
push str.Exit_SetWindowsAPIHook_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
jmp 0x404fe7
mov eax, dword [ebp + 8]
push eax
call fcn.00404de0
add esp, 4
mov eax, 1
jmp 0x404fe7
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0041d976
mov esp, ebp
pop ebp
ret

Function at 0x407570
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x43c2d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x43e9dc], 0
jne 0x4075cc
lea eax, [ebp - 0x198]
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
jne 0x4075b8
mov dword [0x43e9dc], 1
jmp 0x4075cc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
test ecx, ecx
jne 0x40758c
mov eax, dword [0x43e9dc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d976
mov esp, ebp
pop ebp
ret
Function at 0x4075f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x10], 0
jne 0x407603
mov al, 1
jmp 0x4076b0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_send
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40765e
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x40765c
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407618
jmp 0x407695
cmp dword [ebp - 0x10], 0
jge 0x407695
cmp dword [ebp - 0xc], 5
jae 0x407695
cmp dword [ebp - 8], 5
jae 0x407695
cmp dword [ebp - 0xc], 0
jne 0x40767f
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x407618
cmp dword [ebp + 0x14], 0
je 0x4076a3
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp eax, dword [ebp + 0x10]
sete cl
mov al, cl
mov esp, ebp
pop ebp
ret
Function at 0x4077a0
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00407740
add esp, 0xc
cmp dword [ebp + 0x14], 0
jle 0x40790c
mov dword [ebp - 4], 1
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_ioctlsocket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40790c
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_connect
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], 0
cmp dword [ebp - 8], 0xffffffff
jne 0x40781c
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x114], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x8004667e
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_ioctlsocket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x407852
cmp dword [ebp - 0x114], 0x2733
je 0x407852
or eax, 0xffffffff
jmp 0x40791d
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x228], 0
cmp dword [ebp - 0x110], 0x40
jae 0x40788e
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x10c], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
xor ecx, ecx
jne 0x407866
cmp dword [ebp - 0x228], 0x40
jae 0x4078ba
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x224], eax
mov ecx, dword [ebp - 0x228]
add ecx, 1
mov dword [ebp - 0x228], ecx
xor edx, edx
jne 0x407892
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], 0
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
push 0
call sub.WSOCK32.dll_select
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x407907
xor eax, eax
jmp 0x40791d
or eax, 0xffffffff
jmp 0x40791d
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_connect
mov esp, ebp
pop ebp
ret
Function at 0x407f30
Capabilities:
Print debug messages
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push str.localhost
mov eax, dword [ebp + 8]
push eax
call fcn.0041f205
add esp, 8
test eax, eax
jne 0x407f61
push str.127.0.0.1
call sub.WSOCK32.dll_inet_addr
jmp 0x40800c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407e60
add esp, 4
test eax, eax
je 0x407f84
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_inet_addr
jmp 0x40800c
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x407fa3
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x408004
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
sub edx, 0x2af9
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 3
ja case.default.0x407fc6
mov eax, dword [ebp - 0xc]
jmp dword [eax*4 + 0x408010]
push str.The_host_was_not_found._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x407fc6
push str.The_name_is_valid_but_it_has_no_address._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x407fc6
push str.A_non_recoverable_name_server_error_occurred._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x407fc6
push str.The_name_server_is_temporarily_unavailable.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
jmp 0x40800c
mov eax, dword [ebp - 4]
jmp 0x40800c
mov esp, ebp
pop ebp
ret
Function at 0x410450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 4
mov ecx, dword [ebp - 4]
push ecx
push 0x410420
push 0
push 0
call fcn.0041f047
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x410488
xor al, al
jmp 0x41048a
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x410490
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4104ad
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4148e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x4148e9
xor ecx, ecx
jne 0x4148e9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x41490a
mov eax, 0xd
jmp 0x414936
xor eax, eax
jne 0x4148f1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x414940
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x414949
xor ecx, ecx
jne 0x414949
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x41496a
mov eax, 0xd
jmp 0x4149bf
xor eax, eax
jne 0x414951
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 1
jne 0x41497b
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8
Function at 0x4149d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431528
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x43c2d0]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
lea ecx, [ebp - 0x20]
call fcn.00411f40
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00411fe0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x414a61
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411f70
mov eax, dword [ebp - 0x130]
jmp 0x414b00
mov dword [ebp - 0x10], pe_nt_image_headers32
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x12c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x414ace
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004149d0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x414ac5
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411f70
mov eax, dword [ebp - 0x134]
jmp 0x414b00
mov dword [ebp - 0x10], pe_nt_image_headers32
jmp 0x414a68
lea ecx, [ebp - 0x20]
call fcn.00411f90
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x13c]
call fcn.004147a0
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411f70
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0041d976
mov esp, ebp
pop ebp
ret 4
Function at 0x41d976
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c2d0]
jne 0x41d980
repz ret
jmp fcn.00422ae6

Function at 0x42b90a
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.00422e7a
and dword [ebp - 4], 0
cmp dword [0x43e870], 0
mov ebx, eax
jne 0x42b9bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42ba6c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42ba6c
push eax
call fcn.00422e08
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43e870], eax
call esi
push eax
call fcn.00422e08
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43e874], eax
call esi
push eax
call fcn.00422e08
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43e878], eax
call esi
push eax
call fcn.00422e08
pop ecx
mov dword [0x43e880], eax
test eax, eax
je 0x42b9bb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00422e08
pop ecx
mov dword [0x43e87c], eax
mov eax, dword [0x43e87c]
cmp eax, ebx
je 0x42ba13
cmp dword [0x43e880], ebx
je 0x42ba13
push eax
call fcn.00422e83
push dword [0x43e880]
mov esi, eax
call fcn.00422e83
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42ba13
test edi, edi
je 0x42ba13
call esi
test eax, eax
je 0x42ba0a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42ba0a
test byte [ebp - 0xc], 1
jne 0x42ba13
or dword [ebp + 0x10], 0x200000
jmp 0x42ba4c
mov eax, dword [0x43e874]
cmp eax, ebx
je 0x42ba4c
push eax
call fcn.00422e83
pop ecx
test eax, eax
je 0x42ba4c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42ba4c
mov eax, dword [0x43e878]
cmp eax, ebx
je 0x42ba4c
push eax
call fcn.00422e83
pop ecx
test eax, eax
je 0x42ba4c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43e870]
call fcn.00422e83
pop ecx
test eax, eax
je 0x42ba6c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42ba6e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001710
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x1004c3a0]
xor eax, esp
mov dword [esp + 0x10c], eax
mov al, 0x74
mov byte [esp + 4], al
mov byte [esp + 6], al
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
mov byte [esp + 0xc], 0x5c
mov byte [esp + 0xd], 0x53
mov byte [esp + 0xe], 0x4b
mov byte [esp + 0xf], 0x2e
mov byte [esp + 0x11], 0x78
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp]
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10001770
push esi
push edi
lea edi, [esp + 0x10]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001782
mov ecx, eax
shr ecx, 2
push 0
rep movsd dword es:[edi], dword [esi]
push 0x80
push 3
push 0
push 1
mov ecx, eax
push 0x80000000
lea edx, [esp + 0x28]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100017f6
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
call fcn.10006f43
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0x10]
push eax
push ebp
push edi
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop ebp
test edi, edi
je 0x100017f6
push edi
call fcn.10001010
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.10013c3a
add esp, 0x110
ret

Function at 0x10013c3a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004c3a0]
jne 0x10013c44
repz ret
jmp fcn.100175cd
Function at 0x1001e8ae
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.10018d30
and dword [ebp - 4], 0
cmp dword [0x10050b84], 0
mov ebx, eax
jne 0x1001e95f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001ea10
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10036368
push edi
call esi
test eax, eax
je 0x1001ea10
push eax
call fcn.10018cbe
mov dword [esp], 0x10036358
push edi
mov dword [0x10050b84], eax
call esi
push eax
call fcn.10018cbe
mov dword [esp], 0x10036344
push edi
mov dword [0x10050b88], eax
call esi
push eax
call fcn.10018cbe
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10050b8c], eax
call esi
push eax
call fcn.10018cbe
pop ecx
mov dword [0x10050b94], eax
test eax, eax
je 0x1001e95f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10018cbe
pop ecx
mov dword [0x10050b90], eax
mov eax, dword [0x10050b90]
cmp eax, ebx
je 0x1001e9b7
cmp dword [0x10050b94], ebx
je 0x1001e9b7
push eax
call fcn.10018d39
push dword [0x10050b94]
mov esi, eax
call fcn.10018d39
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001e9b7
test edi, edi
je 0x1001e9b7
call esi
test eax, eax
je 0x1001e9ae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001e9ae
test byte [ebp - 0xc], 1
jne 0x1001e9b7
or dword [ebp + 0x10], 0x200000
jmp 0x1001e9f0
mov eax, dword [0x10050b88]
cmp eax, ebx
je 0x1001e9f0
push eax
call fcn.10018d39
pop ecx
test eax, eax
je 0x1001e9f0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001e9f0
mov eax, dword [0x10050b8c]
cmp eax, ebx
je 0x1001e9f0
push eax
call fcn.10018d39
pop ecx
test eax, eax
je 0x1001e9f0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10050b84]
call fcn.10018d39
pop ecx
test eax, eax
je 0x1001ea10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001ea12
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret