joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4323f7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x44e0e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x432442
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00432592
test al, al
jne 0x43243c
sub edx, 2
cmp edx, edi
jne 0x432422
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x432464
lea eax, [edi + 2]
cmp edx, eax
je 0x432464
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00432343
add esp, 0x10
jmp 0x43255e
push esi
lea ecx, [ebp - 0x255]
call fcn.00432592
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4324a7
push dword [ebp - 0x25c]
jmp 0x432454
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4324e4
cmp word [ebp - 0x226], 0
je 0x432505
cmp word [ebp - 0x226], ax
jne 0x4324e4
cmp word [ebp - 0x224], 0
je 0x432505
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00432343
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x432551
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4324be
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x432539
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43255e
push 0x432173
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00438450
add esp, 0x10
jmp 0x43252e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fa00
leave
ret
Function at 0x433019
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4330b6
push ebx
push esi
call fcn.00432fe2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00432f76
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x433063
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4330b5
push edi
push eax
call fcn.0042e3bc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x433083
call fcn.0042e382
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4330b4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00432f76
add esp, 0x20
test eax, eax
jne 0x4330a2
push edi
call fcn.0042e382
jmp 0x4330aa
push ebx
call fcn.0042e382
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4330b9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4330ca
pop esi
ret
push ebx
push edi
push esi
call fcn.00432fe2
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042e3bc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4330f2
push ebx
push esi
push edi
call fcn.00420910
add esp, 0xc
push 0
call fcn.0042e382
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43384c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00433367
Function at 0x43afc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43afed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43afed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x12db3f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x12e0494]
cmp dword [eax + 0x28], 0
jne 0x12db408
xor eax, eax
jmp 0x12db537
mov ecx, dword [0x12e0414]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x12e0408], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x12e0404], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x12e0408]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x12e0404]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x12e048c]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x12df604
push 0x12df620
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x12e0400], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.012db330
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x12db3c0
mov edx, dword [0x12e0494]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x12e040c], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x12db537
cmp dword [ebp - 0x38], 0x12
jne 0x12db52b
mov dword [0x12e041c], 0
call fcn.012db540
xor eax, eax
jmp 0x12db537
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x12db4fc
mov esp, ebp
pop ebp
ret 4

Function at 0x12dc840
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x12dd20c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x12df118
sub eax, eax
test esi, esi
je 0x12dd2e4
sub eax, 1
test ecx, ecx
je 0x12dd2e2
test esi, 3
je 0x12dd24a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x12dd22f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x12dd2c9
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x12dd254
mov ecx, edx
test ecx, ecx
je 0x12dd2e2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x12dd2cf
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x12dd2ec
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.012dd36f
jae 0x12dd2fa
xor ecx, ecx
call fcn.012dd36f
jae 0x12dd329
xor eax, eax
call fcn.012dd36f
jae 0x12dd339
mov bl, 2
inc ecx
mov al, 0x10
call fcn.012dd36f
adc al, al
jae 0x12dd31b
jne 0x12dd365
stosb byte es:[edi], al
jmp 0x12dd2fd
call fcn.012dd37b
sub ecx, ebx
jne 0x12dd342
call fcn.012dd379
jmp 0x12dd361
lodsb al, byte [esi]
shr eax, 1
je 0x12dd38b
adc ecx, ecx
jmp 0x12dd35e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.012dd379
cmp eax, 0x7d00
jae 0x12dd35e
cmp ah, 5
jae 0x12dd35f
cmp eax, 0x7f
ja 0x12dd360
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x12dd2fd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x12ddc7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x12e0000]
jne 0x12ddc86
repz ret
jmp fcn.012ddf2d
Function at 0x4014d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4014e7
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4014f9
xor eax, eax
jmp 0x40152b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40151d
cmp esi, eax
jae 0x4014f5
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40150f
cmp esi, eax
jae 0x4014f5
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x4040f5
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ee4
call fcn.0041af40
push esi
push edi
mov edi, 0x2ee0
mov esi, ecx
push edi
push esi
push str.11__d___d___r_n
call fcn.004088f5
add esp, 0xc
test esi, esi
jle 0x404161
cmp esi, edi
jg 0x404161
cmp dword [ebx + 0x28], 0
jne 0x404169
push 0
push esi
push dword [ebp + 8]
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404149
add dword [ebp + 8], eax
sub esi, eax
test esi, esi
jg 0x404128
mov al, 1
jmp 0x404163
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x404169
push str.22_r_n
call fcn.004088f5
pop ecx
xor al, al
pop edi
pop esi
leave
ret 4
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x2ee4]
push eax
mov dword [ebp - 4], esi
call fcn.00417f70
add esp, 0xc
lea eax, [ebp - 0x2ee4]
push eax
lea esi, [ebx + 0x20]
call fcn.004041e3
test eax, eax
setne al
jmp 0x404163

Function at 0x406385
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, eax
cmp byte [esi + 0x24], 0
jne 0x406410
push ebx
mov byte [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [ebp - 4], eax
push edi
xor edi, edi
jmp 0x4063c1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
push dword [esi + 0x20]
lea eax, [ebp - 0x20]
push eax
call ebx
test eax, eax
jne 0x4063ad
cmp dword [esi + 0xc], edi
jbe 0x40640e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
add edx, ecx
cmp eax, edx
jae 0x4063f3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4063a9
mov ebx, dword [esi + 4]
cmp ebx, edi
je 0x40640e
jmp 0x4063fe
xor edi, edi
mov eax, ebx
mov ebx, dword [ebx]
push edi
mov edi, eax
call fcn.004041af
test ebx, ebx
jne 0x4063fc
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x406471
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
je 0x406538
push edi
push dword [ebp + 0xc]
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00406615
mov edi, eax
test edi, edi
jne 0x4064e8
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.SetupNewSession_Fail_ip_s__port_d__n
call fcn.004088f5
add esp, 0xc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x406537
movzx eax, byte [ebp - 9]
push edi
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
push str.CCommEngine__::Connect__d._d._d._d__session_is__08X_n
call fcn.004088f5
add esp, 0x18
push 0x10
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x406535
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x406535
lea ecx, [esi + 4]
mov eax, edi
call fcn.00404206
jmp 0x4064e4
mov eax, edi
pop edi
pop ebx
leave
ret 8

Function at 0x406615
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x4364cf
call fcn.0041ac28
sub esp, 0x38
push esi
push edi
lea esi, [ebp - 0x44]
call fcn.0040688b
and dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44], ebx
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
movsd dword es:[edi], dword [esi]
push 0x8004667e
push ebx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 8]
push 0x33
push 0x478
push dword [eax + 0x20]
push ebx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x406671
xor esi, esi
jmp 0x4066b2
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x10]
push eax
push 0x1002
mov edi, 0xffff
push edi
push ebx
mov dword [ebp - 0x10], 0x2ee0
call esi
push 4
lea eax, [ebp - 0x10]
push eax
push 0x1001
push edi
push ebx
call esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
add esi, 4
call fcn.004068bd
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.0040435f
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x406774
Capabilities:
Send data
Send data on socket

Disassembly:
cmp dword [esp + 8], 0
push ebx
push esi
jne 0x4067df
cmp dword [edi + 0x28], 0
je 0x4067ea
lea ebx, [edi + 0x20]
mov esi, dword [ebx]
add esi, 8
push 0
push dword [esi + 0x2ee0]
push esi
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4067d2
mov ecx, dword [esi + 0x2ee0]
cmp eax, ecx
jge 0x4067c3
sub ecx, eax
push ecx
add eax, esi
push eax
push esi
mov dword [esi + 0x2ee0], ecx
call fcn.00417c30
add esp, 0xc
jmp 0x40678b
mov ecx, ebx
call fcn.004068e0
cmp dword [edi + 0x28], 0
jne 0x406786
jmp 0x4067ea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4067ea
mov esi, dword [esp + 0xc]
mov eax, edi
call fcn.004040d1
pop esi
pop ebx
ret 8
Function at 0x4089bb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [0x44e138], 0xffffffff
je 0x408aa4
push esi
lea eax, [ebp - 8]
push edi
push eax
call fcn.00418fcd
lea eax, [ebp - 8]
push eax
call fcn.004198a1
mov esi, eax
push esi
push str.__y__m__d__H:_M:_S_
lea eax, [ebp - 0x58]
push 0x3f
push eax
call fcn.00419886
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x18]
push str._08X
push eax
call fcn.00419e84
mov eax, dword [0x44e13c]
add esp, 0xc
cmp eax, dword [esi + 0x1c]
je 0x408a4f
push ebx
push esi
call fcn.0040889a
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x408a4e
push dword [esi + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, dword [0x44e138]
push 0x44e13c
call esi
push ebx
push 0x44e138
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00417ba0
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
push dword [0x44e138]
call esi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00417ba0
pop ecx
push eax
lea eax, [ebp - 0x58]
push eax
push dword [0x44e138]
call esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x44e138]
call esi
pop edi
pop esi
leave
ret

Function at 0x408d8d
Capabilities:
Hash data using sha1

Disassembly:
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
ret
Function at 0x40f4fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40f551
call fcn.00432149
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40f551
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40f547
xor eax, eax
jmp 0x40f66a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40f581
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40f581
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40f667
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40f5ae
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041076a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40f667
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40f5f7
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40f5f7
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40f5f1
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041076a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40f657
and dword [ebp + 0xc], 0
jmp 0x40f657
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40f657
push 0xc
call fcn.0042c159
mov esi, eax
test esi, esi
pop ecx
je 0x40f639
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40f63b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40f652
push dword [ebp - 8]
call fcn.00427994
jmp 0x40f657
call fcn.0042796b
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40f5bc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x418382
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041af40
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41841d
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x450138]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41841d
cmp eax, 1
je 0x41843e
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41841d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4183ea
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x418419
xor eax, eax
inc eax
jmp 0x41845d
cmp edi, eax
jae 0x418421
xor eax, eax
jmp 0x41845d
cmp eax, esi
jae 0x418428
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x450138]
jmp 0x418441
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a548
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43a8e0
call fcn.0041b24c
mov edi, 0x94
mov eax, edi
call fcn.0041af40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x450138], ecx
mov eax, dword [esi + 4]
mov dword [0x450144], eax
mov edx, dword [esi + 8]
mov dword [0x450148], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x45013c], esi
cmp ecx, 2
je 0x41a5a8
or esi, 0x8000
mov dword [0x45013c], esi
shl eax, 8
add eax, edx
mov dword [0x450140], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41a5e3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a5e3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41a5fb
cmp eax, 0x20b
je 0x41a5e8
mov dword [ebp - 0x1c], esi
jmp 0x41a60f
cmp dword [ecx + 0x84], 0xe
jbe 0x41a5e3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41a609
cmp dword [ecx + 0x74], 0xe
jbe 0x41a5e3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041c66a
pop ecx
test eax, eax
jne 0x41a623
push 0x1c
call fcn.0041a524
pop ecx
call fcn.0041e05e
test eax, eax
jne 0x41a634
push 0x10
call fcn.0041a524
pop ecx
call fcn.00420e05
mov dword [ebp - 4], esi
call fcn.00420c07
test eax, eax
jge 0x41a64d
push 0x1b
call fcn.0041a4ff
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x451b50], eax
call fcn.00420ae5
mov dword [0x450128], eax
call fcn.00420a43
test eax, eax
jge 0x41a673
push 8
call fcn.0041a4ff
pop ecx
call fcn.00420810
test eax, eax
jge 0x41a684
push 9
call fcn.0041a4ff
pop ecx
push 1
call fcn.0041b0a9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41a69a
push eax
call fcn.0041a4ff
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004207b3
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41a6bb
movzx eax, word [ebp - 0x40]
jmp 0x41a6be
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00426cba
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41a6dc
push edi
call fcn.0041b1d6
call fcn.0041b1f8
jmp 0x41a70e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041b287
ret