joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4282cd
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x808
lea eax, [ebp - 0x80c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x80c]
push 0
push 0x404
push eax
call fcn.00428281
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x40af1c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.msvcrt.dll__putws]
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429960
leave
ret

Function at 0x4295d3
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x42dae0
call fcn.0042a138
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x42f050
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x429625
cmp eax, esi
jne 0x429618
xor esi, esi
inc esi
mov edi, esi
jmp 0x429628
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4295fc
xor esi, esi
inc esi
cmp dword [0x42f054], esi
jne 0x42963a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x429674
cmp dword [0x42f054], ebx
jne 0x42966e
mov dword [0x42f054], esi
push 0x401020
push 0x401014
call fcn.004297ae
pop ecx
pop ecx
test eax, eax
je 0x429674
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x42979e
mov dword [0x42ecf0], esi
cmp dword [0x42f054], esi
jne 0x429697
push 0x401010
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x42f054], 2
test edi, edi
jne 0x4296a4
xor eax, eax
mov ecx, 0x42f050
xchg dword [ecx], eax
cmp dword [0x42f060], 0
je 0x4296d0
push 0x42f060
call fcn.00429f90
pop ecx
test eax, eax
je 0x4296d0
push ebx
push 2
push ebx
mov esi, dword [0x42f060]
mov ecx, esi
call dword [0x43058c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x42965d
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x42973b
test ax, ax
je 0x42970a
test edx, edx
jne 0x42973b
test ax, ax
je 0x42970a
cmp ax, si
ja 0x42970a
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x4296f5
test byte [ebp - 0x3c], 1
je 0x429716
movzx eax, word [ebp - 0x38]
jmp 0x429719
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x42ecec], eax
cmp dword [0x42ed04], 0
jne 0x429783
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x42974c
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x4296e4
cmp dword [0x42ecf0], 0
jne 0x429797
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x42ecec]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004c5000
jmp 0x4295d3
Function at 0x29a051e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x29a051f8
pop dword [ebp - 0x3c]
mov eax, 0x684b8952
sub eax, 0x3eab375a
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xf470f1db
sub dword [ebp - 0x4c], 0xa61eac90
mov dword [ebp - 0x48], 0x14aff721
add dword [ebp - 0x48], 0x1d835524
mov dword [ebp - 0x44], 0xbf717432
sub dword [ebp - 0x44], 0x73253004
mov dword [ebp - 0x40], 0x3f0ebce5
add dword [ebp - 0x40], 0xc0f1431b
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x243027bc
sub dword [ebp - 0x4c], 0xafbdbe66
mov dword [ebp - 0x48], 0xe6d8d5d7
add dword [ebp - 0x48], 0x5a938b9e
mov dword [ebp - 0x44], 0xa6078e9f
add dword [ebp - 0x44], 0xbd67ddcd
mov dword [ebp - 0x40], 0x5b620f8
add dword [ebp - 0x40], 0xfa49df08
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x39770
push 0
call eax
mov ecx, 0x17c1689d
sub ecx, 0x17c1242f
xor ebx, ebx
add ebx, eax
mov esi, 0x29a22000
add esi, dword [ebp - 0x3c]
mov edx, 0xb630f0ca
add edx, 0x7def7a21
mov edi, dword [esi]
add dword [ebp - 0x28], edi
xor edi, edx
mov dword [ebp - 8], 0x8fa8170a
mov dword [ebx], edi
sub dword [ebp - 0x1c], edx
add ebx, 0x559aa191
sub ebx, 0x559aa18d
add esi, 0x10b09050
sub esi, 0x10b0904c
loop 0x29a0530c
add eax, 0xcf73c4e7
add eax, 0x308d3fa4
mov ebx, eax
add eax, 5
mov ecx, 0x29a00000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x1002b470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x1002b47f
pop dword [ebp - 0x38]
mov eax, 0xf7d5f7e3
sub eax, 0xe7d34364
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x90d59474
sub dword [ebp - 0x48], 0x42834f29
mov dword [ebp - 0x44], 0xaa3d7f54
sub dword [ebp - 0x44], 0x780a330f
mov dword [ebp - 0x40], 0xfa8d659e
sub dword [ebp - 0x40], 0xae412170
mov dword [ebp - 0x3c], 0x9c158999
sub dword [ebp - 0x3c], 0x9c158999
lea eax, [ebp - 0x48]
push eax
mov eax, 0x56199143
add eax, 0xb9efcfbd
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xd48c935e
sub dword [ebp - 0x48], 0x601a2a08
mov dword [ebp - 0x44], 0x22feb506
sub dword [ebp - 0x44], 0xe1925391
mov dword [ebp - 0x40], 0xd78d11c9
sub dword [ebp - 0x40], 0x741da55d
mov dword [ebp - 0x3c], 0x99044782
sub dword [ebp - 0x3c], 0x99044782
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x44674fde
add eax, 0xcba21132
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x5a5c6
push 0
call eax
mov ecx, 0xfa48d77b
add ecx, 0x5b76fd6
xor ebx, ebx
add ebx, eax
mov edx, 0x27bc08e8
sub edx, 0x17af28e8
add edx, dword [ebp - 0x38]
mov edi, 0x9573551d
add dword [ebp - 8], edi
mov esi, dword [edx]
add esi, edi
xor dword [ebp - 0x2c], eax
mov dword [ebx], esi
add dword [ebp - 0x30], eax
add ebx, 0x2fa5a4cd
sub ebx, 0x2fa5a4c9
add edx, 0xab1415d3
sub edx, 0xab1415cf
loop 0x1002b59d
add eax, 0x11017
xor ebx, ebx
add ebx, eax
add eax, 0x35949958
sub eax, 0x35949953
mov ecx, 0x556e6b40
add ecx, 0xba9194c0
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x100858d9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100858ea
pop esi
ret
push ebx
push edi
push esi
call fcn.1002b470
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1002b470
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10085912
push ebx
push esi
push edi
call fcn.10067180
add esp, 0xc
push 0
call fcn.1002b470
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401d3f
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x401d7e
push edi
mov edi, dword [esp + 0xc]
push str.ZAtgrjtyujtyu
push 0x42be78
call fcn.004010d0
mov al, byte [esi + edi]
add al, 0x5a
xor al, 0x4c
add al, 0x54
xor al, 0x5b
add al, 0xb
xor al, 0x36
sub al, 0x67
xor al, 0xf2
sub al, 0x23
mov byte [esi + edi], al
inc esi
pop ecx
pop ecx
cmp esi, dword [esp + 0x10]
jb 0x401d4d
pop edi
pop esi
ret

Function at 0x401e90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [section.Home], eax
push 0x9385646d
push dword [section.Home]
call fcn.00401eda
pop ecx
pop ecx
mov dword [ebp - 4], eax
jb 0x401eca
jae 0x401eca
jmp 0xfc85aa5c
mov eax, dword [ebp - 4]
jae 0x401ed3
jb 0x401ed3
jmp 0xd13faf13
nop
call eax
pop edi
pop esi
leave
ret

Function at 0x401eda
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x42b020]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401f43
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004014b1
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00401fbe
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x401f5b
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00401c32
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x401f0b
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405609
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00401c32
jmp 0x401f45
Function at 0x401fbe
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
lea ebp, [esi + 0x10]
mov edi, dword [ebp]
mov ebx, edi
xor ebx, dword [esp + 0x1c]
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x10], ebp
jb 0x401fe3
mov esi, dword [esi]
mov dword [esp + 0x18], esi
shr edi, 2
test edi, edi
je 0x40202f
mov ebp, esi
mov esi, edi
push 4
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00406380
imul ecx, dword [esp + 0x28], 0x5bd1e995
add esp, 0xc
imul ebx, ebx, 0x5bd1e995
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e995
xor ebx, eax
mov dword [esp + 0x1c], eax
sub esi, 1
jne 0x401fee
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x402058
sub eax, 1
je 0x40204e
sub eax, 1
jne 0x402066
movsx ecx, byte [esi + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e995
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e995
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop ecx
ret
Function at 0x40475d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40477e
jl 0x404775
test edi, edi
jne 0x40477e
xor eax, eax
xor edx, edx
jmp 0x40483f
cmp dword [ebx + 0x38], 0
je 0x404793
push eax
push edi
push dword [ebp + 8]
call fcn.00404845
jmp 0x40483f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4047da
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4047da
cmp eax, edi
jb 0x4047b4
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00406380
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4047e0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404834
mov ecx, ebx
call fcn.00403e3f
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40481f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040ac7d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x404834
jmp 0x4047f2
test edx, edx
je 0x404834
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040ac7d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406236
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406275
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406275
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406275
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406275
cmp dword [ecx + 0x74], 0xe
jbe 0x406275
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x410596
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4213b8
push 0x4213b0
push str.FlsAlloc
push 0x1e
call fcn.00410403
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4105ca
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e130]
call esi
jmp 0x4105d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x410614
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4213c8
push 0x4213c0
push str.FlsGetValue
push 0x20
call fcn.00410403
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41064b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x411b63
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004119d4

Function at 0x411f5d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406350
mov eax, dword [0x42b020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00410bc9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x411f9f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4120fb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041cb10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42c910]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00412f54
mov ecx, dword [esi*4 + 0x42c910]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4120f4
cmp eax, dword [edi + ecx + 0x24]
jne 0x4120f4
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4120f4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412f54
add esp, 0x14
test edx, edx
jl 0x4120f4
jg 0x41206a
test eax, eax
jb 0x4120f4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4120f4
jl 0x412084
cmp dword [ebp - 0x1008], eax
ja 0x4120f4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4120a2
test ebx, ebx
je 0x4120db
cmp ecx, edi
jae 0x4120db
mov al, byte [ecx]
cmp al, 0xd
jne 0x4120bc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4120c8
cmp byte [ecx + 1], 0xa
jne 0x4120c8
inc ecx
jmp 0x4120c8
movzx eax, al
movsx eax, byte [eax + 0x42b2a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4120a2
cmp edx, ebx
jne 0x4120a2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4120f9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405609
leave
ret
Function at 0x4123f2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x42c910]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x412432
cmp byte [ebx], 0xa
jne 0x412432
or byte [eax + edi + 0x28], 4
jmp 0x412437
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x412535
mov al, byte [edx]
cmp al, 0x1a
je 0x412517
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x412466
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41248b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x412495
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x412448
jmp 0x412535
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412512
cmp dword [ebp - 0xc], 0
je 0x412512
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42c910]
test byte [eax + edi + 0x28], 0x48
je 0x4124ec
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4124d7
mov byte [esi], dl
jmp 0x4124e8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42c910]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x412535
cmp byte [ebp - 1], 0xa
jne 0x4124fb
cmp esi, ebx
jne 0x4124fb
mov byte [esi], 0xa
jmp 0x412534
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00412f72
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x412535
mov byte [esi], 0xd
jmp 0x412534
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42c910]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x412531
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x412535
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41253e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x42c910]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x412581
cmp word [esi], dx
jne 0x412581
or byte [edi + eax + 0x28], 4
jmp 0x412586
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4126d9
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4126b9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4125c8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4125fe
cmp eax, edx
jae 0x41260a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4125a0
jmp 0x4126d9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4126b5
cmp dword [ebp - 0x14], 0
je 0x4126b5
mov eax, dword [ebx*4 + 0x42c910]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41268d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x412656
mov word [esi], cx
jmp 0x412689
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42c910]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42c910]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42c910]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4126d9
pop ebx
cmp word [ebp - 4], bx
jne 0x41269e
cmp esi, dword [ebp + 0xc]
jne 0x41269e
mov word [esi], bx
jmp 0x4126d6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00412f72
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4126d9
push 0xd
jmp 0x4126d2
mov ecx, dword [ebx*4 + 0x42c910]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4126d0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4126d9
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4176fd
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 0x41779a
push ebx
push esi
call fcn.004176c6
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.0041634b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x417747
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417799
push edi
push eax
call fcn.00413151
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x417767
call fcn.004100cb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x417798
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041634b
add esp, 0x20
test eax, eax
jne 0x417786
push edi
call fcn.004100cb
jmp 0x41778e
push ebx
call fcn.004100cb
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 0x41cad0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41cafd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41cafd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404d00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x674192
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x71506c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 7
mov word [edi + 4], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], al
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 0xf
mov byte [edi + 0x34], al
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 0xf
mov byte [edi + 0x4c], al
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], 0xf
mov byte [edi + 0x64], al
mov dword [edi + 0x8c], eax
mov dword [edi + 0x90], 0xf
mov byte [edi + 0x7c], al
lea esi, [edi + 0x94]
mov byte [ebp - 4], 5
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0042fcd5
add esp, 4
cmp dword [ebp + 8], 0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
setne al
mov byte [edi], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4