joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b490
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0xc], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x43b5e3
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.0043b390
mov ecx, dword [ebx + 4]
lea eax, [edi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x43b5b6
movzx eax, byte [ecx + 8]
mov edx, dword [edx]
xor eax, 0x811c9dc5
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp - 4], eax
cmp ebx, esi
jne 0x43b52e
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x43b5a9
mov eax, dword [eax + 4]
movzx edi, word [ecx + 8]
cmp di, word [eax + 8]
jne 0x43b56a
mov eax, dword [eax]
mov dword [ebp - 8], eax
cmp eax, ecx
je 0x43b562
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 8]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ecx
jmp 0x43b5a9
mov edi, eax
cmp ebx, eax
je 0x43b586
mov eax, dword [eax + 4]
mov edi, eax
movzx esi, word [ecx + 8]
cmp si, word [eax + 8]
mov esi, dword [ebp + 8]
je 0x43b5bf
cmp ebx, eax
jne 0x43b570
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 8]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], ecx
mov ebx, dword [ebp - 0xc]
mov ecx, edx
cmp edx, esi
jne 0x43b4f2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x43b5a9
push str.invalid_hash_bucket_count
call fcn.004476a9
int3
Function at 0x44d2d3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45b5dc
push 0x45b5d4
push str.FlsAlloc
push 0x1e
call fcn.0044d1b1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44d307
push dword [ebp + 8]
mov ecx, esi
call dword [0x457308]
call esi
jmp 0x44d30d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44d351
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45b5ec
push 0x45b5e4
push str.FlsGetValue
push 0x20
call fcn.0044d1b1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44d388
push dword [ebp + 8]
mov ecx, esi
call dword [0x457308]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44ec1b
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 0x44ecb8
push ebx
push esi
call fcn.0044ebe4
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.0044cf84
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44ec65
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44ecb7
push edi
push eax
call fcn.0044cc71
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44ec85
call fcn.0044cc37
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44ecb6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044cf84
add esp, 0x20
test eax, eax
jne 0x44eca4
push edi
call fcn.0044cc37
jmp 0x44ecac
push ebx
call fcn.0044cc37
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 0x4bf370
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x87000]
push edi
jmp 0x4bf38a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4bf391
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf380
mov eax, 1
add ebx, ebx
jne 0x4bf3a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4bf3b4
jne 0x4bf3d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3d3
dec eax
add ebx, ebx
jne 0x4bf3c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4bf398
add ebx, ebx
jne 0x4bf3cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4bf425
xor ecx, ecx
sub eax, 3
jb 0x4bf3eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bf45a
sar eax, 1
mov ebp, eax
jmp 0x4bf3f6
add ebx, ebx
jne 0x4bf3f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3c4
inc ecx
add ebx, ebx
jne 0x4bf404
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3c4
add ebx, ebx
jne 0x4bf411
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bf406
jne 0x4bf422
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bf406
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bf444
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bf436
jmp 0x4bf386
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bf444
add edi, ecx
jmp 0x4bf386
pop esi
mov edi, esi
mov ecx, 0x45bb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4bf462
cmp byte [edi], 0xe
jne 0x4bf462
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4bf467
lea edi, [esi + 0xbc000]
mov eax, dword [edi]
or eax, eax
je 0x4bf4df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc2758]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc2888]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4bf494
mov ecx, edi
jns 0x4bf4c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc2890]
or eax, eax
je 0x4bf4d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4bf4b1
call dword [esi + 0xc288c]
mov ebp, dword [esi + 0xc2894]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4bf513
sub esp, 0xffffff80
jmp 0x465196
Function at 0x4019d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x443040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xf8]
push eax
push 0xf1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov cl, byte [ebp + edx - 0xf8]
mov byte [eax], cl
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0xf8]
sub ecx, 0x40
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
lea eax, [ebp - 0xf8]
push eax
push 0x438230
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00401f00
add esp, 0xc
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x14]
push eax
push str._sSDIR_s_
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.00401f00
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042089e
mov esp, ebp
pop ebp
ret
Function at 0x401f40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x5c], 0x30
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x54], 0x402130
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x44], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x40], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x443008
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx + eax]
test edx, edx
je 0x40202c
lea eax, [ebp - 8]
push eax
push 0x4439e0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00401cd0
add esp, 0xc
mov edx, 0xf1
shl edx, 0
add edx, 0x4439e0
push edx
push 0x438460
push 0x4c8b00
call fcn.00401f00
add esp, 0xc
mov eax, 0xf1
shl eax, 1
add eax, 0x4439e0
push eax
push 0x438464
push 0x444170
call fcn.00401f00
add esp, 0xc
jmp 0x402047
push 0
push str.Fehlende_Eingabe
push str.Eine_Kommandozeile_fehlt_in_SUMWN.EXE
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402128
push 0x4384a4
push str.D:P3TFHTEST
call fcn.00426e66
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402068
mov byte [ebp - 1], 1
jmp 0x40206c
mov byte [ebp - 1], 0
mov cl, byte [ebp - 1]
mov byte [0x44427e], cl
cmp dword [ebp - 0xc], 0
je 0x402089
mov edx, dword [ebp - 0xc]
push edx
call fcn.00426d7f
add esp, 4
jmp 0x402090
mov byte [0x44427e], 0
push 0x4384b8
push 0x4384c4
push 0x4c8628
call fcn.00401f00
add esp, 0xc
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov ecx, dword [0x443004]
push ecx
mov edx, dword [section..data]
push edx
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Summe_LF_GZT
push 0x443008
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x402125
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4020fb
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x421215
Capabilities:
Parse pe header

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

Function at 0x42b0fb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43b2b4
push 0x43b2ac
push str.FlsAlloc
push 0x1f
call fcn.0042afd7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b12f
push dword [ebp + 8]
mov ecx, esi
call dword [0x438184]
call esi
jmp 0x42b135
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42b179
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43b2c4
push 0x43b2bc
push str.FlsGetValue
push 0x21
call fcn.0042afd7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b1b0
push dword [ebp + 8]
mov ecx, esi
call dword [0x438184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42b1b8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43b2cc
push 0x43b2c4
push str.FlsSetValue
push 0x22
call fcn.0042afd7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b1f2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x438184]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42be6a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x4c9560]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42beaa
cmp byte [ebx], 0xa
jne 0x42beaa
or byte [edi + eax + 0x28], 4
jmp 0x42beaf
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42bfae
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42bf91
inc eax
cmp dl, 0xd
je 0x42bedb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42bf01
cmp eax, ecx
jae 0x42bf0f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42bec3
jmp 0x42bfae
push 0
lea eax, [ebp - 0x10]
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 0x42bf8c
cmp dword [ebp - 0x10], 0
je 0x42bf8c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4c9560]
test byte [eax + edi + 0x28], 0x48
je 0x42bf66
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42bf51
mov byte [esi], dl
jmp 0x42bf62
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c9560]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42bfae
cmp byte [ebp - 1], 0xa
jne 0x42bf75
cmp esi, ebx
jne 0x42bf75
mov byte [esi], 0xa
jmp 0x42bfad
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042cb8a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42bfae
mov byte [esi], 0xd
jmp 0x42bfad
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4c9560]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42bfab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42bfae
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42bfb7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4c9560]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42bffd
cmp word [ebx], dx
jne 0x42bffd
or byte [eax + edi + 0x28], 4
jmp 0x42c002
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42c165
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42c145
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42c043
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42c079
cmp eax, edx
jae 0x42c087
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42c01e
jmp 0x42c165
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c140
cmp dword [ebp - 0x18], 0
je 0x42c140
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4c9560]
test byte [eax + edi + 0x28], 0x48
je 0x42c116
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42c0da
mov word [esi], cx
jmp 0x42c111
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4c9560]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4c9560]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4c9560]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42c165
pop eax
cmp word [ebp - 4], ax
jne 0x42c126
cmp esi, ebx
jne 0x42c126
mov word [esi], ax
jmp 0x42c162
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042cb8a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42c165
push 0xd
pop eax
jmp 0x42c121
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4c9560]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42c15f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42c165
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42cf54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00420ac0
mov eax, dword [0x443040]
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.0042a3c7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42cf96
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42d0f2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00436bc0
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 + 0x4c9560]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0042cb6c
mov ecx, dword [esi*4 + 0x4c9560]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x42d0eb
cmp eax, dword [ecx + edi + 0x24]
jne 0x42d0eb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d0eb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042cb6c
add esp, 0x14
test edx, edx
jl 0x42d0eb
jg 0x42d061
test eax, eax
jb 0x42d0eb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42d0eb
jl 0x42d07b
cmp dword [ebp - 0x1008], eax
ja 0x42d0eb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42d099
test ebx, ebx
je 0x42d0d2
cmp ecx, edi
jae 0x42d0d2
mov al, byte [ecx]
cmp al, 0xd
jne 0x42d0b3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42d0bf
cmp byte [ecx + 1], 0xa
jne 0x42d0bf
inc ecx
jmp 0x42d0bf
movzx eax, al
movsx eax, byte [eax + 0x4432a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42d099
cmp edx, ebx
jne 0x42d099
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42d0f0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042089e
leave
ret
Function at 0x42f84c
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 0x42f8e9
push ebx
push esi
call fcn.0042f815
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.0042f7a9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42f896
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f8e8
push edi
push eax
call fcn.004291f5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42f8b6
call fcn.004291bb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f8e7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042f7a9
add esp, 0x20
test eax, eax
jne 0x42f8d5
push edi
call fcn.004291bb
jmp 0x42f8dd
push ebx
call fcn.004291bb
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 0x435515
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00435491
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x435684
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x435684
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x435639
jg 0x435571
test eax, eax
je 0x43562f
push 1
push 0x1000
call fcn.0042b386
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x435594
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x435626
push 0x8000
push ebx
call fcn.00428609
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4355bd
jg 0x4355b8
cmp ecx, 0x1000
jb 0x4355bd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042da45
add esp, 0x10
cmp eax, 0xffffffff
je 0x435602
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4355b8
jl 0x4355e9
test ecx, ecx
jne 0x4355aa
push dword [ebp - 0xc]
push ebx
call fcn.00428609
push esi
call fcn.004291bb
add esp, 0xc
xor ebx, ebx
jmp 0x435692
cmp byte [edi + 0x24], 0
je 0x435619
cmp dword [edi + 0x20], 5
jne 0x435619
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x435624
mov ebx, dword [edi + 0x18]
jmp 0x435626
xor ebx, ebx
push esi
call fcn.004291bb
pop ecx
jmp 0x435692
test ecx, ecx
jg 0x4355fb
jl 0x435639
test eax, eax
jae 0x4355fb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042cb8a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x435659
cmp byte [edi + 0x1c], 0
je 0x4355fb
jmp 0x43568a
push ebx
call fcn.0042fcb6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4355fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x435692
cmp byte [edi + 0x1c], 0
je 0x43568f
mov ebx, dword [edi + 0x18]
jmp 0x435692
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042cb8a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x436a10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x436a3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x436a3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret