joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401870
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x40c990]
test eax, eax
jne 0x401892
mov eax, dword [0x40c948]
cmp dword [eax + 0x5c], 0
jne 0x40188b
mov eax, 8
jmp 0x40188e
mov eax, dword [eax + 0x34]
test eax, eax
je 0x401895
xor al, al
ret
mov eax, ecx
neg eax
push ebx
mov ebx, dword [0x40c984]
push esi
neg eax
and eax, 3
mov esi, edi
neg esi
sbb esi, esi
and esi, 0x40
lea esi, [esi + ebx + 0x36]
mov dword [0x40c94c], 0
mov dword [0x40c950], eax
mov dword [0x40c99e], esi
mov dword [0x40c960], ecx
mov dword [0x40c964], edx
test edi, edi
je 0x4018dc
mov eax, edi
jmp 0x4018ea
test edx, edx
jge 0x4018e2
neg edx
lea eax, [eax + ecx*2]
add eax, ecx
imul eax, edx
mov dword [0x40c970], eax
add eax, esi
mov esi, dword [sym.imp.MSVCR90.dll_fwrite]
mov dword [0x40c996], eax
mov eax, dword [0x40c954]
push eax
push 1
push 0xe
push 0x40c994
call esi
add esp, 0x10
cmp eax, 1
je 0x401939
mov esi, dword [0x40c948]
push 0xe
push str.Error_writing__u_BMP_file_header_bytes._n
call fcn.004074a0
add esp, 8
pop esi
mov dword [0x40c990], 0x1e
xor al, al
pop ebx
ret
mov ecx, dword [0x40c954]
push ecx
push 1
push 0x28
push 0x40c95c
call esi
add esp, 0x10
cmp eax, 1
je 0x401977
mov esi, dword [0x40c948]
push 0x28
push str.Error_writing__u_BMP_information_header_bytes._n
call fcn.004074a0
add esp, 8
pop esi
mov dword [0x40c990], 0x1f
xor al, al
pop ebx
ret
test edi, edi
je 0x4019ba
mov edx, dword [0x40c954]
mov eax, dword [0x40c98c]
push edx
push 1
push 0x40
push eax
call esi
add esp, 0x10
cmp eax, 1
je 0x4019ba
mov esi, dword [0x40c948]
push 0x40
push str.Error_writing__u_BMP_color_table_bytes._n
call fcn.004074a0
add esp, 8
pop esi
mov dword [0x40c990], 0x20
xor al, al
pop ebx
ret
mov eax, dword [0x40c988]
test eax, eax
je 0x401a06
mov ecx, dword [0x40c954]
mov edx, dword [0x40c984]
push ecx
push 1
push edx
push eax
call esi
add esp, 0x10
cmp eax, 1
je 0x401a06
mov eax, dword [0x40c984]
mov esi, dword [0x40c948]
push eax
push str.Error_writing__u_BMP_extra_header_bytes._n
call fcn.004074a0
add esp, 8
pop esi
mov dword [0x40c990], 0x21
xor al, al
pop ebx
ret
pop esi
mov al, 1
pop ebx
ret
Function at 0x4074ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4074f6
repz ret
jmp fcn.004078d9
Function at 0x407570
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 0x407601
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x407601
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi], 0x4550
jne 0x407601
cmp dword [eax + edi + 0x7c], 0
je 0x407601
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 0x407601
mov eax, dword [edx + esi*4]
mov ecx, dword [ebp + 0xc]
add eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4075f0
test dl, dl
je 0x4075ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4075f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4075d0
xor eax, eax
jmp 0x4075f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40760a
mov edx, dword [ebp + 8]
inc esi
cmp esi, ebx
jb 0x4075c8
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 0x40d8f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b33d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x45f5c0]
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.00428a6e
mov edi, eax
add esp, 4
test edi, edi
je 0x40d98d
push 1
mov dword [ebp - 4], 0
call fcn.00426578
add esp, 4
mov dword [edi + 4], eax
jmp 0x40d98f
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.00403090
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 0x40d9ea
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x40d9ea
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x40da06
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 0x40da29
cmp byte [ebp + 0xc], 0
je 0x40da15
push esi
call fcn.00426d69
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 0x40da35
mov esi, str.ios_base::badbit_set
jmp 0x40da45
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.0040de90
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00404310
push 0x45c094
lea eax, [ebp - 0x28]
push eax
call fcn.00429d5d
int3
Function at 0x41c410
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x45f5c0]
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.004241b0
lea ecx, [ebp - 0x90]
call fcn.0041cdb0
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.00425c40
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x41c492
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 0x41c4d0
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
mov ecx, ebx
call fcn.00401d00
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428dc0
mov esp, ebp
pop ebp
ret

Function at 0x41cd80
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 0x41cd8e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41cd9e
xor al, al
pop ebp
ret
shr eax, 4
not al
and al, 1
pop ebp
ret
Function at 0x41e5a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x45f5c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x460ef0]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x460988]
cmp eax, dword [ecx + 4]
jg 0x41e767
cmp dword [0x45f4c8], 0
jne 0x41e74a
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.0041ef40
test al, al
jne 0x41e659
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00403e60
mov esi, eax
add esp, 0xc
cmp esi, 0x45f4b8
je 0x41e741
mov ecx, dword [0x45f4cc]
cmp ecx, 0xf
jbe 0x41e6fe
mov edx, dword [0x45f4b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e6f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e79d
jmp 0x41e6f4
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.0042a7b0
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 0x41e6c7
cmp dword [ebp - 0x240], esi
je 0x41e6bb
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41e6a0
jmp 0x41e6c7
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.00403e60
add esp, 0x10
mov esi, eax
cmp esi, 0x45f4b8
pop edi
jmp 0x41e616
push ecx
push edx
call fcn.00428a9e
add esp, 8
mov dword [0x45f4c8], 0
mov dword [0x45f4cc], 0xf
mov byte [0x45f4b8], 0
movups xmm0, xmmword [esi]
movups xmmword [0x45f4b8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x45f4c8], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.004049a0
pop esi
push 0x45f4b8
mov ecx, ebx
call fcn.00403af0
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00428dc0
mov esp, ebp
pop ebp
ret
push 0x460988
call fcn.00428d5c
add esp, 4
cmp dword [0x460988], 0xffffffff
jne 0x41e5dd
push 0x44cad0
call fcn.00428cf6
push 0x460988
call fcn.00428d0b
add esp, 8
jmp 0x41e5dd
call fcn.0042da1f
int3
Function at 0x41e7b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bbc6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x45f5c0]
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.0042a7b0
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.0042aa3b
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 0x41e835
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 0x41e92e
call fcn.00401d90
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00423460
push eax
push esi
mov byte [ebp - 4], 1
call fcn.0041e980
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0xf
jbe 0x41e8df
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41e8d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e973
push ecx
push edx
call fcn.00428a9e
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 0x41e956
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e94c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e973
jmp 0x41e94c
call fcn.00401d90
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.00423460
add esp, 8
jmp 0x41e8fa
push ecx
push edx
call fcn.00428a9e
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.00428dc0
mov esp, ebp
pop ebp
ret
call fcn.0042da1f
int3
Function at 0x425f89
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 0x425fb0
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x425fb3
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.00425f65
pop esi
leave
ret 8

Function at 0x42952b
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00428fa0
mov eax, dword [0x45f5c0]
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.0043cc67
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4366b4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x436810
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00428dd0
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 + 0x4616a8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0043ef0b
mov ecx, dword [esi*4 + 0x4616a8]
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 0x436809
cmp eax, dword [edi + ecx + 0x24]
jne 0x436809
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 0x436809
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043ef0b
add esp, 0x14
test edx, edx
jl 0x436809
jg 0x43677f
test eax, eax
jb 0x436809
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x436809
jl 0x436799
cmp dword [ebp - 0x1008], eax
ja 0x436809
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4367b7
test ebx, ebx
je 0x4367f0
cmp ecx, edi
jae 0x4367f0
mov al, byte [ecx]
cmp al, 0xd
jne 0x4367d1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4367dd
cmp byte [ecx + 1], 0xa
jne 0x4367dd
inc ecx
jmp 0x4367dd
movzx eax, al
movsx eax, byte [eax + 0x45f880]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4367b7
cmp edx, ebx
jne 0x4367b7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43680e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00428dc0
leave
ret

Function at 0x43be0f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4527b0
push 0x4527a8
push str.FlsAlloc
push 0x1e
call fcn.0043bc59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43be43
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d20c]
call esi
jmp 0x43be49
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43be8d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4527c0
push 0x4527b8
push str.FlsGetValue
push 0x20
call fcn.0043bc59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43bec4
push dword [ebp + 8]
mov ecx, esi
call dword [0x44d20c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43df62
Capabilities:
Read file on windows

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

Function at 0x43df6d
Capabilities:
Read file on windows

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

Function at 0x43e3a9
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 + 0x4616a8]
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 0x43e3e9
cmp byte [ebx], 0xa
jne 0x43e3e9
or byte [eax + edi + 0x28], 4
jmp 0x43e3ee
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x43e4ec
mov al, byte [edx]
cmp al, 0x1a
je 0x43e4ce
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x43e41d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43e442
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x43e44c
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 0x43e3ff
jmp 0x43e4ec
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 0x43e4c9
cmp dword [ebp - 0xc], 0
je 0x43e4c9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4616a8]
test byte [eax + edi + 0x28], 0x48
je 0x43e4a3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43e48e
mov byte [esi], dl
jmp 0x43e49f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4616a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43e4ec
cmp byte [ebp - 1], 0xa
jne 0x43e4b2
cmp esi, ebx
jne 0x43e4b2
mov byte [esi], 0xa
jmp 0x43e4eb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043ef29
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43e4ec
mov byte [esi], 0xd
jmp 0x43e4eb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4616a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43e4e8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43e4ec
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43e4f5
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 + 0x4616a8]
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 0x43e538
cmp word [esi], dx
jne 0x43e538
or byte [edi + eax + 0x28], 4
jmp 0x43e53d
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 0x43e690
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 0x43e670
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x43e57f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43e5b5
cmp eax, edx
jae 0x43e5c1
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 0x43e557
jmp 0x43e690
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 0x43e66c
cmp dword [ebp - 0x14], 0
je 0x43e66c
mov eax, dword [ebx*4 + 0x4616a8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x43e644
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x43e60d
mov word [esi], cx
jmp 0x43e640
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4616a8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4616a8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4616a8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x43e690
pop ebx
cmp word [ebp - 4], bx
jne 0x43e655
cmp esi, dword [ebp + 0xc]
jne 0x43e655
mov word [esi], bx
jmp 0x43e68d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043ef29
add esp, 0x10
cmp word [ebp - 4], bx
je 0x43e690
push 0xd
jmp 0x43e689
mov ecx, dword [ebx*4 + 0x4616a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43e687
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43e690
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 0x440f19
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00440e9b
Function at 0x4426e9
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 0x442786
push ebx
push esi
call fcn.004426b2
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.004404c0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x442733
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x442785
push edi
push eax
call fcn.0043f0ae
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x442753
call fcn.0043b879
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x442784
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004404c0
add esp, 0x20
test eax, eax
jne 0x442772
push edi
call fcn.0043b879
jmp 0x44277a
push ebx
call fcn.0043b879
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