joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e220
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x4b8344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x80
push 0
push eax
mov dword [ebp - 0x90c], edi
call sub.VCRUNTIME140.dll_memset
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [edi]
mov dword [ebp - 0x908], ebx
mov esi, dword [ebx + 0x150]
mov eax, dword [esi + 0x1eb4]
sub eax, dword [esi + 0x1eb0]
add eax, 2
push eax
lea eax, [esi + 0x1cb0]
push eax
push 0x3c
push ebx
call fcn.0046d7b0
mov eax, dword [esi + 0x1eb0]
add esp, 0x28
mov cl, byte [eax]
inc eax
mov dword [esi + 0x1eb0], eax
cmp cl, 0x18
je 0x46e408
cmp cl, 0x23
je 0x46e3e2
cmp cl, 0x27
jne 0x46e496
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.0045d6c0
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov edi, 4
mov eax, 0x800
test esi, esi
je 0x46e381
nop
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46e307
sub ecx, ebx
lea ebx, [edi + 1]
add ebx, ecx
cmp ebx, 0x7fa
jae 0x46e36f
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push edx
call fcn.00408d10
add esp, 0x10
test eax, eax
je 0x46e36f
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.0045d6c0
add esp, 0x1c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x46e300
mov ebx, dword [ebp - 0x908]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, edi
push str._c_c
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.0045d6c0
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [ebp - 0x904]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x46e3dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00451490
add esp, 0xc
push edi
jmp 0x46e484
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46e3f0
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x46e429
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46e413
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.0045d6c0
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push esi
push eax
push dword [edi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x46e480
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00451490
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push ebx
call fcn.0046d7b0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d915
mov esp, ebp
pop ebp
ret
Function at 0x46f0e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4b8344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x508]
mov ebx, dword [eax]
lea edi, [esi + 0x15c]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x8c], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [edi]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x46f173
push dword [ebp - 0x8c]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x46f1a6
push str.Received_too_short_packet
push ebx
call fcn.00451490
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d915
mov esp, ebp
pop ebp
ret
push edi
call fcn.0046ece0
movzx eax, ax
add esp, 4
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x46f1c1
jmp dword [eax*4 + 0x46f2f4]
cmp edx, 4
jle case.0x46f1c1.4
push edi
call fcn.0046ecc0
movzx ecx, word [esi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x46f1c1.4
lea eax, [edx - 4]
push eax
mov eax, dword [edi]
mov edi, dword [ebp - 0x88]
add eax, 4
push eax
push 1
push edi
call fcn.00451380
add esp, 0x10
mov dword [ebp - 0x88], eax
test eax, eax
je 0x46f22f
push 5
push esi
call fcn.0046fab0
mov eax, dword [ebp - 0x88]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d915
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.0045b150
add esp, 0xc
jmp 0x46f2bf
push edi
call fcn.0046ecc0
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [edi]
add eax, 4
push eax
push 0x481f58
push ebx
call fcn.00451570
add esp, 0x10
jmp case.0x46f1c1.4
lea eax, [edx - 2]
push eax
mov eax, dword [edi]
add eax, 2
push eax
push esi
call fcn.0046ee90
add esp, 0xc
test eax, eax
je case.0x46f1c1.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d915
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x488388
push ebx
call fcn.00451490
add esp, 0xc
mov edi, dword [ebp - 0x88]
push edi
call fcn.0045b500
add esp, 4
test eax, eax
je 0x46f193
push 5
push esi
call fcn.0046fab0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.0047d915
mov esp, ebp
pop ebp
ret
Function at 0x46fab0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x46fac2
jmp dword [edx*4 + 0x46fb18]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0046f570
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0046f310
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0046fcd0
push str.TFTP_finished
push 0x481f58
push eax
call fcn.00451570
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x488388
push eax
call fcn.00451490
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x479820
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x479853
push 0x2e
push edi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x479851
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x47a780
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x47a790
sub esi, ecx
je 0x47a7aa
lea ebx, [esi + esi]
push ebx
call dword [0x4b82c0]
add esp, 4
jmp 0x47a7ba
push 0x481e6d
call dword [0x4b82cc]
add esp, 4
xor ebx, ebx
mov edi, eax
test edi, edi
jne 0x47a7ca
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0xc]
push edi
call fcn.0047a870
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x47a847
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x47a83c
push 0
push ebx
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x4b82c4]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47a8a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b8344]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x47a937
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
push edi
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.0047a9a0
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.0047cd50
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x47a949
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d915
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0047d915
mov esp, ebp
pop ebp
ret

Function at 0x47cd50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x47cda0
push ebx
mov ebx, dword [ebp + 8]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
and dl, 2
movzx ecx, cl
cmp dl, 2
cmovb ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x47cd62
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x47ce00
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4b82c0]
mov edi, eax
add esp, 4
test edi, edi
jne 0x47ce2d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x47ce77
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x47ce7d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x47cedb
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x47cea0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x47cf07
mov eax, dword [esi + 4]
push 1
push 0x48cb7e
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x48cb7f
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x47cee0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001dddc
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x1003f498
call fcn.1001f4f0
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x1001de6a
call fcn.10020d22
or eax, eax
jne 0x1001de00
xor eax, eax
jmp 0x1001df38
call fcn.10021eff
test eax, eax
jne 0x1001de10
call fcn.10020d40
jmp 0x1001ddf9
call fcn.100249f5
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10046b30], eax
call fcn.10024eed
mov dword [0x10044c8c], eax
call fcn.1002112d
or eax, eax
jns 0x1001de3a
call fcn.10021bdd
jmp 0x1001de09
call fcn.10024e32
test eax, eax
js 0x1001de63
call fcn.10024bbc
test eax, eax
js 0x1001de63
push 0
call fcn.1001dbac
pop ecx
or eax, eax
jne 0x1001de63
inc dword [0x10044c88]
jmp 0x1001df35
call fcn.10021372
jmp 0x1001de33
xor edi, edi
cmp eax, edi
jne 0x1001decb
cmp dword [0x10044c88], edi
jle 0x1001ddf9
dec dword [0x10044c88]
mov dword [ebp - 4], edi
cmp dword [0x10044c80], edi
jne 0x1001de8e
call fcn.1001ddaf
cmp dword [ebp + 0x10], edi
jne 0x1001dea2
call fcn.10021372
call fcn.10021bdd
call fcn.10020d40
mov dword [ebp - 4], 0xfffffffe
call fcn.1001deb5
jmp 0x1001df35
cmp eax, 2
jne 0x1001df29
call fcn.10021ba9
push 0x214
push 1
call fcn.1002160c
pop esi
mov esi, eax
pop ecx
cmp esi, edi
je 0x1001ddf9
push esi
push dword [0x10041678]
push dword [0x10045450]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
call eax
test eax, eax
je 0x1001df1d
push edi
push esi
call fcn.10021c1a
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
jmp 0x1001df35
push esi
call fcn.1001ca1c
pop ecx
jmp 0x1001ddf9
cmp eax, 3
jne 0x1001df35
push edi
call fcn.10021e90
pop ecx
xor eax, eax
inc eax
call fcn.1001f535
ret 0xc

Function at 0x1001e847
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, 0xc0000417
mov edi, edi
push 1
push esi
push 2
call fcn.1001e71e
sub esp, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x1001fb45
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10041510]
jne 0x1001fb4f
repz ret
jmp fcn.10026c72

Function at 0x10020dfc
Capabilities:
Write file on windows

Disassembly:
mov esi, esi
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x10041510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.10020dd6
pop ecx
xor ebx, ebx
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x1fc], esi
je 0x10020f9c
push 3
call fcn.10027450
cmp eax, 1
pop ecx
je 0x10020f48
push 3
call fcn.10027450
or eax, eax
pop ecx
jne 0x10020e5a
cmp dword [0x10044c98], 1
je 0x10020f48
cmp edi, 0xfc
je 0x10020f9c
push str.Runtime_Error__n_nProgram:
push 0x314
mov esi, 0x10044cc8
push esi
call fcn.100273ed
add esp, 0xc
test eax, eax
jne 0x10020f3e
push 0x104
mov edi, 0x10044cfa
push edi
push ebx
mov word [0x10044f02], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
test eax, eax
jne 0x10020ec6
push str._program_name_unknown_
push ebx
push edi
call fcn.100273ed
sub esp, 0xfffffff4
test eax, eax
je 0x10020ec6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1001e847
push edi
call fcn.100273d2
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10020efd
push edi
call fcn.100273d2
lea eax, [eax*2 + 0x10044c84]
mov ecx, eax
sub ecx, edi
push 3
sar ecx, 1
push 0x1002ffdc
sub ebx, ecx
push ebx
push eax
call fcn.10027305
add esp, 0x14
test eax, eax
jne 0x10020eba
push 0x1002ffd4
mov edi, 0x314
push edi
push esi
call fcn.10027290
sub esp, 0xfffffff4
or eax, eax
jne 0x10020eba
push dword [ebp - 0x1fc]
push edi
push esi
call fcn.10027290
sub esp, 0xfffffff4
or eax, eax
jne 0x10020eba
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push esi
call fcn.10027124
add esp, 0xc
jmp 0x10020f9c
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x10020ec1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x10020f9c
cmp edi, 0xffffffff
je 0x10020f9c
xor eax, eax
mov cl, byte [esi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [esi + eax*2], bx
je 0x10020f75
inc eax
cmp eax, 0x1f4
jb 0x10020f5d
push ebx
lea esi, [ebp - 0x1fc]
push esi
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.1001f460
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.1001fb45
leave
ret
Function at 0x10022de7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10022e09
call fcn.1001cf4c
mov dword [eax], 0x16
call fcn.1001e899
jmp 0x10022f03
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x10022f03
test al, 0x40
jne 0x10022f03
test al, 2
je 0x10022e2b
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x10022f03
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x10022e41
push esi
call fcn.1002157e
pop ecx
jmp 0x10022e46
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.10021558
pop ecx
push eax
call fcn.10028567
mov dword [esi + 4], eax
add esp, 0xc
test eax, eax
je 0x10022ef2
cmp eax, 0xffffffff
je 0x10022ef2
test byte [esi + 0xc], 0x82
jne 0x10022ec7
push esi
call fcn.10021558
cmp eax, 0xffffffff
pop ecx
je 0x10022eb2
push esi
call fcn.10021558
pop ecx
cmp eax, 0xfffffffe
je 0x10022eb2
push edi
push esi
call fcn.10021558
sar eax, 5
push esi
lea edi, [eax*4 + 0x10046a20]
call fcn.10021558
pop ecx
and eax, 0x1f
shl eax, 6
add eax, dword [edi]
pop ebp
pop edi
jmp 0x10022eb7
mov eax, 0x10041518
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x10022ec7
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x10022ee5
mov eax, dword [esi + 0xc]
test al, 8
je 0x10022ee5
test eax, 0x400
jne 0x10022ee5
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x10022f06
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
and dword [esi + 4], 0
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x10024a70
Capabilities:
Parse pe header

Disassembly:
mov ecx, 0x5a4d
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov edi, edi
cmp word [edx], cx
je 0x10024a86
pop ebp
xor eax, eax
ret
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x10024a82
xor edx, edx
mov eax, 0x10b
cmp word [ecx + 0x18], ax
pop ebp
sete dl
mov eax, edx
ret

Function at 0x10024ab0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, esp
mov ebx, ebx
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x3c]
add edx, eax
xor ecx, ecx
movzx eax, word [edx + 0x14]
push ebp
push edi
lea eax, [eax + edx + 0x18]
movzx edi, word [edx + 6]
or edi, edi
push ebx
je 0x10024aed
mov edx, dword [esi + 0xc]
mov esi, dword [eax + 0xc]
cmp edx, esi
jb 0x10024ae5
mov ebp, dword [eax + 8]
add ebp, esi
cmp edx, ebp
jb 0x10024aef
inc ecx
sub eax, 0xffffffd8
cmp ecx, edi
jb 0x10024ad5
xor eax, eax
pop ebx
pop edi
pop ebp
pop esi
ret
Function at 0x10024eed
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push edi
mov esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x10024f09
xor eax, eax
jmp 0x10024f80
cmp word [edi], bx
je 0x10024f1e
sub eax, 0xfffffffe
cmp word [eax], bx
jne 0x10024f0e
add eax, 2
cmp word [eax], bx
jne 0x10024f0e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
sub eax, edi
sar eax, 1
push ebx
inc eax
push ebx
push ebx
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10024f76
push eax
call fcn.100215c7
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10024f76
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
or eax, eax
jne 0x10024f6a
push dword [ebp - 4]
call fcn.1001ca1c
pop ecx
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 4]
jmp 0x10024f7f
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret

Function at 0x10026c72
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edi, edi
sub esp, 0x328
mov dword [0x10045778], eax
mov dword [0x10045774], ecx
mov dword [0x10045770], edx
mov dword [0x1004576c], ebx
mov dword [0x10045768], esi
mov dword [0x10045764], edi
mov word [0x10045790], ss
mov word [0x10045784], cs
mov word [0x10045760], ds
mov word [0x1004575c], es
mov word [0x10045758], fs
mov word [0x10045754], gs
pushfd
pop dword [0x10045788]
mov eax, dword [ebp]
mov dword [0x1004577c], eax
mov eax, dword [ebp + 4]
mov dword [0x10045780], eax
lea eax, [ebp + 8]
mov dword [0x1004578c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x100456c8], 0x10001
mov eax, dword [0x10045780]
mov dword [0x1004567c], eax
mov dword [0x10045670], 0xc0000409
mov dword [0x10045674], 1
mov eax, dword [0x10041510]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10041514]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x100456c0], eax
push 1
call fcn.10025cbb
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x100305d8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x100456c0], 0
jne 0x10026d64
push 1
call fcn.10025cbb
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret