joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56cc40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
lea edx, [eax + 0x50]
lea ecx, [eax + 8]
push edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x3ff00000
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0x3ff00000
xor eax, eax
fld qword [ecx]
fadd qword [edx]
add eax, 8
add ecx, 8
sub edx, 8
cmp eax, 0x20
fsub qword [esp + eax + 0x48]
fstp qword [esp + eax + 0x50]
fld qword [ecx - 8]
fsub qword [edx + 8]
fadd qword [esp + eax + 0x78]
fstp qword [esp + eax + 0x80]
jle 0x56cc82
mov eax, dword [0x5f2fa0]
mov ecx, dword [0x5f2fa4]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x50]
mov dword [esp + 0x14], ecx
push 5
mov eax, ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], ebx
lea edi, [esp + 0x60]
call fcn.0056ce70
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov dword [esp + 0x44], edx
mov esi, 0x5f2fa0
cmp esi, 0x5f3130
jge 0x56ce3d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 8]
add esi, 8
fstp qword [esp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], ecx
push 5
mov ecx, eax
push edi
push ecx
push edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call fcn.0056ce70
fst qword [esp + 0x58]
fld qword [esp + 0x38]
fmul st(1)
add esp, 0x10
fcomp qword [0x594300]
fnstsw ax
test ah, 0x41
je 0x56ce2b
fstp st(0)
sub esi, 8
mov ebx, 2
fld qword [esp + 0x38]
fadd qword [esp + 0x10]
push 5
push edi
fmul qword [0x593668]
fstp qword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.0056ce70
fld st(0)
fmul qword [esp + 0x58]
add esp, 0x10
fcomp qword [0x594300]
fnstsw ax
test ah, 0x41
je 0x56cda4
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
fstp qword [esp + 0x28]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
jmp 0x56cdb8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
fstp qword [esp + 0x48]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
dec ebx
jne 0x56cd54
fld qword [esp + 0x38]
fsub qword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
add eax, 8
fmul qword [esp + 0x48]
fld qword [esp + 0x28]
fsub qword [esp + 0x48]
mov dword [esp + 0x44], eax
inc edi
mov dword [esp + 0x1c], edi
lea edi, [esp + 0x80]
fdivp st(1)
fsubr qword [esp + 0x10]
fst qword [esp + 0x28]
fld st(0)
fstp qword [eax - 8]
mov eax, 1
sub eax, ecx
mov dword [esp + 0x34], eax
jne 0x56ce0e
lea edi, [esp + 0x50]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
fstp qword [esp + 0x10]
push 5
push edi
push ecx
push edx
call fcn.0056ce70
mov ebx, dword [esp + 0x2c]
add esp, 0x10
cmp ebx, 0xa
jl 0x56ccef
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xa
fstp st(0)
jge 0x56ce63
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov edx, 0xa
mov esi, dword [ecx + eax]
mov dword [eax], esi
mov esi, dword [ecx + eax + 4]
mov dword [eax + 4], esi
add eax, 8
dec edx
jne 0x56ce51
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6ccb3f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x60778dd0
call fcn.006ce3a8
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x607796c8
mov dword [esi + 4], 0x607796a4
mov dword [esi + 8], 0x60779688
mov dword [esi + 0xc], 0x60779628
mov dword [esi + 0x10], 0x60779600
mov dword [esi + 0x14], 0x607795c4
mov dword [esi + 0x18], 0x60779598
mov dword [esi + 0x1c], 0x60779588
mov dword [esi + 0x20], 0x60779560
mov dword [esi + 0x24], 0x60779550
mov dword [esi + 0x28], 0x60779538
mov dword [esi + 0x2c], 0x60779508
mov dword [esi + 0x30], 0x607794f4
mov dword [esi + 0x34], 0x607794e4
mov dword [esi + 0x7c], 0x607794d8
and dword [ebp - 4], 0
mov dword [esi + 0x9c], 1
call fcn.006c71e9
push 0x6077c57c
call dword [0x60779120]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.006c6f43
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x407450
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4074e1
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4074e1
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi], 0x4550
jne 0x4074e1
cmp dword [eax + edi + 0x7c], 0
je 0x4074e1
mov eax, dword [eax + edi + 0x78]
xor esi, esi
add eax, edi
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
add ecx, edi
mov ebx, dword [eax + 0x18]
add edx, edi
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0x1c]
add ecx, edi
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x4074e1
mov eax, dword [edx + esi*4]
mov ecx, dword [ebp + 0xc]
add eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4074d0
test dl, dl
je 0x4074cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4074d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4074b0
xor eax, eax
jmp 0x4074d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4074ea
mov edx, dword [ebp + 8]
inc esi
cmp esi, ebx
jb 0x4074a8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d7d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a41d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x45e5c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00427b9b
mov edi, eax
add esp, 4
test edi, edi
je 0x40d86d
push 1
mov dword [ebp - 4], 0
call fcn.004256a5
add esp, 4
mov dword [edi + 4], eax
jmp 0x40d86f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00403040
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x40d8ca
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x40d8ca
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x40d8e6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40d909
cmp byte [ebp + 0xc], 0
je 0x40d8f5
push esi
call fcn.00425e96
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x40d915
mov esi, str.ios_base::badbit_set
jmp 0x40d925
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0040dd70
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00404220
push 0x45ac28
lea eax, [ebp - 0x28]
push eax
call fcn.00428e8d
int3
Function at 0x41b580
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x45e5c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x90]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x94], ebx
push eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x90], 0x67452301
mov dword [ebp - 0x8c], 0xefcdab89
mov dword [ebp - 0x88], 0x98badcfe
mov dword [ebp - 0x84], 0x10325476
call fcn.00423320
lea ecx, [ebp - 0x90]
call fcn.0041bf20
movups xmm0, xmmword [ebp - 0x38]
xor esi, esi
lea edi, [ebp - 0x28]
movups xmmword [ebp - 0xa8], xmm0
movzx eax, byte [ebp + esi - 0xa8]
push eax
push str._02X
push edi
call fcn.00424d70
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x41b602
xorps xmm0, xmm0
mov byte [ebp - 8], 0
movups xmmword [ebx], xmm0
lea ecx, [ebp - 0x28]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b640
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
mov ecx, ebx
call fcn.00401d20
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427eed
mov esp, ebp
pop ebp
ret

Function at 0x41bef0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xf
jbe 0x41befe
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41bf0e
xor al, al
pop ebp
ret
shr eax, 4
not al
and al, 1
pop ebp
ret
Function at 0x41d710
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x45e5c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x45fef0]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x45f988]
cmp eax, dword [ecx + 4]
jg 0x41d8d7
cmp dword [0x45e4c8], 0
jne 0x41d8ba
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.0041e0b0
test al, al
jne 0x41d7c9
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00403d70
mov esi, eax
add esp, 0xc
cmp esi, 0x45e4b8
je 0x41d8b1
mov ecx, dword [0x45e4cc]
cmp ecx, 0xf
jbe 0x41d86e
mov edx, dword [0x45e4b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41d864
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d90d
jmp 0x41d864
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.004298e0
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41d837
cmp dword [ebp - 0x240], esi
je 0x41d82b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41d810
jmp 0x41d837
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00403d70
add esp, 0x10
mov esi, eax
cmp esi, 0x45e4b8
pop edi
jmp 0x41d786
push ecx
push edx
call fcn.00427bcb
add esp, 8
mov dword [0x45e4c8], 0
mov dword [0x45e4cc], 0xf
mov byte [0x45e4b8], 0
movups xmm0, xmmword [esi]
movups xmmword [0x45e4b8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x45e4c8], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.004048b0
pop esi
push 0x45e4b8
mov ecx, ebx
call fcn.00403a00
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00427eed
mov esp, ebp
pop ebp
ret
push 0x45f988
call fcn.00427e89
add esp, 4
cmp dword [0x45f988], 0xffffffff
jne 0x41d74d
push 0x44bbc0
call fcn.00427e23
push 0x45f988
call fcn.00427e38
add esp, 8
jmp 0x41d74d
call fcn.0042cb4f
int3
Function at 0x41d920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44aca6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x45e5c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.004298e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.00429b6b
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d9a5
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x41da9e
call fcn.00401db0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004225d0
push eax
push esi
mov byte [ebp - 4], 1
call fcn.0041daf0
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0xf
jbe 0x41da4f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41da45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dae3
push ecx
push edx
call fcn.00427bcb
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x41dac6
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41dabc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dae3
jmp 0x41dabc
call fcn.00401db0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.004225d0
add esp, 8
jmp 0x41da6a
push ecx
push edx
call fcn.00427bcb
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427eed
mov esp, ebp
pop ebp
ret
call fcn.0042cb4f
int3
Function at 0x4250b9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4250e0
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4250e3
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00425095
pop esi
leave
ret 8

Function at 0x42865b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42869a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42869a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42869a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42869a
cmp dword [ecx + 0x74], 0xe
jbe 0x42869a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4357a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004280d0
mov eax, dword [0x45e5c0]
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.0043bd97
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4357e4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x435940
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427f00
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 + 0x4606a8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0043e03b
mov ecx, dword [esi*4 + 0x4606a8]
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 0x435939
cmp eax, dword [edi + ecx + 0x24]
jne 0x435939
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 0x435939
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043e03b
add esp, 0x14
test edx, edx
jl 0x435939
jg 0x4358af
test eax, eax
jb 0x435939
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x435939
jl 0x4358c9
cmp dword [ebp - 0x1008], eax
ja 0x435939
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4358e7
test ebx, ebx
je 0x435920
cmp ecx, edi
jae 0x435920
mov al, byte [ecx]
cmp al, 0xd
jne 0x435901
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43590d
cmp byte [ecx + 1], 0xa
jne 0x43590d
inc ecx
jmp 0x43590d
movzx eax, al
movsx eax, byte [eax + 0x45e880]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4358e7
cmp edx, ebx
jne 0x4358e7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43593e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00427eed
leave
ret

Function at 0x43af3f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4517a0
push 0x451798
push str.FlsAlloc
push 0x1e
call fcn.0043ad89
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43af73
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c20c]
call esi
jmp 0x43af79
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43afbd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4517b0
push 0x4517a8
push str.FlsGetValue
push 0x20
call fcn.0043ad89
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43aff4
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c20c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43d092
Capabilities:
Read file on windows

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

Function at 0x43d09d
Capabilities:
Read file on windows

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

Function at 0x43d4d9
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 + 0x4606a8]
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 0x43d519
cmp byte [ebx], 0xa
jne 0x43d519
or byte [eax + edi + 0x28], 4
jmp 0x43d51e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x43d61c
mov al, byte [edx]
cmp al, 0x1a
je 0x43d5fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x43d54d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43d572
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x43d57c
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 0x43d52f
jmp 0x43d61c
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 0x43d5f9
cmp dword [ebp - 0xc], 0
je 0x43d5f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4606a8]
test byte [eax + edi + 0x28], 0x48
je 0x43d5d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43d5be
mov byte [esi], dl
jmp 0x43d5cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4606a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43d61c
cmp byte [ebp - 1], 0xa
jne 0x43d5e2
cmp esi, ebx
jne 0x43d5e2
mov byte [esi], 0xa
jmp 0x43d61b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043e059
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43d61c
mov byte [esi], 0xd
jmp 0x43d61b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4606a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43d618
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43d61c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43d625
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 + 0x4606a8]
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 0x43d668
cmp word [esi], dx
jne 0x43d668
or byte [edi + eax + 0x28], 4
jmp 0x43d66d
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 0x43d7c0
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 0x43d7a0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x43d6af
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43d6e5
cmp eax, edx
jae 0x43d6f1
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 0x43d687
jmp 0x43d7c0
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 0x43d79c
cmp dword [ebp - 0x14], 0
je 0x43d79c
mov eax, dword [ebx*4 + 0x4606a8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x43d774
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x43d73d
mov word [esi], cx
jmp 0x43d770
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4606a8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4606a8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4606a8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x43d7c0
pop ebx
cmp word [ebp - 4], bx
jne 0x43d785
cmp esi, dword [ebp + 0xc]
jne 0x43d785
mov word [esi], bx
jmp 0x43d7bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043e059
add esp, 0x10
cmp word [ebp - 4], bx
je 0x43d7c0
push 0xd
jmp 0x43d7b9
mov ecx, dword [ebx*4 + 0x4606a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43d7b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43d7c0
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 0x440047
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043ffc9
Function at 0x441819
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 0x4418b6
push ebx
push esi
call fcn.004417e2
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.0043f5ee
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x441863
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4418b5
push edi
push eax
call fcn.0043e1dc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x441883
call fcn.0043a9a9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4418b4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043f5ee
add esp, 0x20
test eax, eax
jne 0x4418a2
push edi
call fcn.0043a9a9
jmp 0x4418aa
push ebx
call fcn.0043a9a9
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