joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f660
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b5e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046ef87
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00474620
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00475b3c
test eax, eax
je 0x43f77c
mov ecx, dword [esp + 0x3c]
call fcn.0047464d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f740
push edi
mov ecx, esi
call fcn.00471cae
mov ecx, esi
call fcn.0043f920
cmp dword [esp + 0x38], 1
jne 0x43f775
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00471de9
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x441970
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4419a3
push esi
call fcn.0044fd10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44199c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441a29
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441a12
mov eax, dword [esi + 8]
test eax, eax
je 0x4419c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x441a0e
cmp eax, 2
je 0x441a12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4419ba
cmp eax, 3
je 0x4419ed
cmp eax, 1
jne 0x4419ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4419ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4419ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441a50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441a38
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441a50
add esp, 4
pop esi
ret

Function at 0x4422c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4422e1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4422e1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4422e1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46fd7d
Capabilities:
Get graphical window text

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

Function at 0x47146b
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 0x4714ad
call fcn.00476f27
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4714ad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4714a4
xor eax, eax
jmp 0x4714b5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004714bb
pop edi
pop esi
pop ebx
ret 4
Function at 0x477457
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 0x477485
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4774a3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004773bd
jmp 0x4774a3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4774a3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004773bd
test edi, edi
mov eax, edi
jne 0x47748d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4014f3
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x441010]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
push 2
push ebx
mov dword [esp + 0x98], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x401741
and dword [esp + 0x90], ebx
lea eax, [esp + 0x90]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [esp + 0x94]
push dword [eax]
call fcn.004017a3
call fcn.00408110
mov edi, eax
xor eax, eax
inc eax
cmp dword [esp + 0xa4], 0x19
mov dword [esp + 0x14], eax
jbe 0x40159b
push 0x19
mov ebx, eax
lea ecx, [esp + 0x98]
push 0
lea eax, [esp + 0x20]
push eax
call fcn.0040174e
mov edx, str.onetastic:download_macro_
mov ecx, eax
call fcn.004017ed
test al, al
je 0x40159b
xor eax, eax
inc eax
mov byte [esp + 0x13], al
mov ebx, eax
jmp 0x4015a0
mov byte [esp + 0x13], 0
test bl, 1
je 0x4015b1
lea ecx, [esp + 0x18]
and ebx, 0xfffffffe
call fcn.004014c0
cmp byte [esp + 0x13], 0
je 0x40162e
push 0x43b5e8
push 0xffffffffffffffff
push 0x19
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xa4]
call fcn.0040174e
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.004010bb
lea ecx, [esp + 0x1c]
mov dword [esp], 0x43b5ec
mov esi, eax
call fcn.004017a3
lea edx, [esp + 0x18]
lea ecx, [esp + 0x48]
call fcn.00401060
mov edx, esi
mov ecx, eax
call fcn.00404f70
lea ecx, [esp + 0x48]
call fcn.004014c0
lea ecx, [esp + 0x18]
call fcn.004014c0
lea ecx, [esp + 0x60]
call fcn.004014c0
lea ecx, [esp + 0x30]
call fcn.004014c0
jmp 0x401706
mov eax, dword [esp + 0xa4]
cmp eax, 0xb
ja 0x401668
push 0xffffffffffffffff
add eax, 0xfffffff6
lea ecx, [esp + 0x98]
push eax
lea eax, [esp + 0x38]
or ebx, 2
push eax
call fcn.0040174e
mov edx, str..onetastic
mov ecx, eax
call fcn.004017ed
test al, al
jne 0x401668
mov byte [esp + 0x14], al
test bl, 2
je 0x401676
lea ecx, [esp + 0x30]
call fcn.004014c0
cmp byte [esp + 0x14], 0
je 0x401716
push 0x43b5e8
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x80]
call fcn.00404f90
pop ecx
mov edx, eax
lea ecx, [esp + 0x4c]
call fcn.00406852
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.004010bb
lea ecx, [esp + 0x1c]
mov dword [esp], 0x43b5ec
mov esi, eax
call fcn.004017a3
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
call fcn.00401060
mov edx, esi
mov ecx, eax
call fcn.00404f70
lea ecx, [esp + 0x30]
call fcn.004014c0
lea ecx, [esp + 0x18]
call fcn.004014c0
lea ecx, [esp + 0x60]
call fcn.004014c0
lea ecx, [esp + 0x48]
call fcn.004014c0
lea ecx, [esp + 0x78]
call fcn.004018d4
push 0
push 0
push 0x500
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x94]
call fcn.004014c0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0xac]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bdc5
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.0040bbc0
int3
Function at 0x401900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x441010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x441af8], 0
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x808], esi
mov edi, edx
mov dword [ebp - 0x808], esi
jne 0x4019df
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xorps xmm0, xmm0
mov dword [ebp - 0x810], 0
lea ecx, [ebp - 0x804]
mov dword [ebp - 0x80c], 0
movups xmmword [ebp - 0x820], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401970
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x820]
call fcn.0040184f
lea eax, [ebp - 0x820]
mov ecx, 0x441ae8
push eax
call fcn.00401c30
mov ecx, dword [ebp - 0x80c]
cmp ecx, 8
jb 0x4019df
mov edx, dword [ebp - 0x820]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4019d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4019fc
push ecx
push edx
call fcn.0040bdd3
add esp, 8
push edi
mov ecx, esi
call fcn.00401ce0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.0040bdc5
mov esp, ebp
pop ebp
ret
call fcn.0040f0dc
int3
Function at 0x403830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x403862
jl 0x403855
test ecx, ecx
jne 0x403862
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x403922
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00404ad0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4038ce
jg 0x40388d
test esi, esi
je 0x4038ce
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4038a5
mov eax, dword [esp + 0x10]
jl 0x40389f
cmp eax, esi
jae 0x4038a5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040e800
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x4038ef
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40390b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x403874
jl 0x40390b
test ecx, ecx
jne 0x403874
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x403960
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x403960
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0040e800
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x4039c9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x403986
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x4039b4
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00412f38
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4039c9
cmp edi, eax
ja 0x403992
test edi, edi
je 0x4039c9
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00412f38
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405f80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e460
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x441010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040bde1
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00426f88
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c765
Capabilities:
Parse pe header

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

Function at 0x41841b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x441010]
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 0x418466
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004185ba
test al, al
jne 0x418460
sub edx, 2
cmp edx, edi
jne 0x418446
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x418488
lea eax, [edi + 2]
cmp edx, eax
je 0x418488
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00418367
add esp, 0x10
jmp 0x418582
push esi
lea ecx, [ebp - 0x255]
call fcn.004185ba
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 0x4184cb
push dword [ebp - 0x25c]
jmp 0x418478
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 0x418508
cmp word [ebp - 0x226], 0
je 0x418529
cmp word [ebp - 0x226], ax
jne 0x418508
cmp word [ebp - 0x224], 0
je 0x418529
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00418367
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x418575
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4184e2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41855d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x418582
push 0x418197
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00421f90
add esp, 0x10
jmp 0x418552
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.0040bdc5
leave
ret

Function at 0x419018
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x419029
pop esi
ret
push ebx
push edi
push esi
call fcn.00418fe1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00417e42
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x419051
push ebx
push esi
push edi
call fcn.0040e800
add esp, 0xc
push 0
call fcn.00417e90
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x419415
Capabilities:
Set environment variable

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

Function at 0x41ca73
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4333d8
push 0x4333d0
push str.FlsAlloc
push 0x1e
call fcn.0041c8e0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41caa7
push dword [ebp + 8]
mov ecx, esi
call dword [0x4301a4]
call esi
jmp 0x41caad
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41caf1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4333e8
push 0x4333e0
push str.FlsGetValue
push 0x20
call fcn.0041c8e0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41cb28
push dword [ebp + 8]
mov ecx, esi
call dword [0x4301a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41f0a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ed44

Function at 0x41f0ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041eed3

Function at 0x41f552
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c8c0
mov eax, dword [0x441010]
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.0041d933
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41f594
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41f6f0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427f50
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 + 0x442b10]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042034d
mov ecx, dword [esi*4 + 0x442b10]
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 0x41f6e9
cmp eax, dword [edi + ecx + 0x24]
jne 0x41f6e9
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 0x41f6e9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042034d
add esp, 0x14
test edx, edx
jl 0x41f6e9
jg 0x41f65f
test eax, eax
jb 0x41f6e9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41f6e9
jl 0x41f679
cmp dword [ebp - 0x1008], eax
ja 0x41f6e9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41f697
test ebx, ebx
je 0x41f6d0
cmp ecx, edi
jae 0x41f6d0
mov al, byte [ecx]
cmp al, 0xd
jne 0x41f6b1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41f6bd
cmp byte [ecx + 1], 0xa
jne 0x41f6bd
inc ecx
jmp 0x41f6bd
movzx eax, al
movsx eax, byte [eax + 0x4417b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41f697
cmp edx, ebx
jne 0x41f697
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41f6ee
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040bdc5
leave
ret
Function at 0x41f7eb
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 + 0x442b10]
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 0x41f82b
cmp byte [ebx], 0xa
jne 0x41f82b
or byte [eax + edi + 0x28], 4
jmp 0x41f830
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41f92e
mov al, byte [edx]
cmp al, 0x1a
je 0x41f910
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41f85f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41f884
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41f88e
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 0x41f841
jmp 0x41f92e
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 0x41f90b
cmp dword [ebp - 0xc], 0
je 0x41f90b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x442b10]
test byte [eax + edi + 0x28], 0x48
je 0x41f8e5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41f8d0
mov byte [esi], dl
jmp 0x41f8e1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x442b10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41f92e
cmp byte [ebp - 1], 0xa
jne 0x41f8f4
cmp esi, ebx
jne 0x41f8f4
mov byte [esi], 0xa
jmp 0x41f92d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042036b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41f92e
mov byte [esi], 0xd
jmp 0x41f92d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x442b10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f92a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f92e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret