joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446b34
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x446be1
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x45c914], 1
jae 0x446bd3
xor eax, eax
mov dword [0x45c53c], eax
xor eax, eax
mov dword [0x45c544], eax
xor eax, eax
mov dword [0x45c548], eax
mov byte [0x45c54e], 2
mov byte [0x45c54f], 2
mov byte [0x45c550], 3
mov word [0x45c8ec], 0
mov word [0x45c8fc], 1
call fcn.00444db0
test al, al
je 0x446b9c
call fcn.00444de0
call fcn.00444ea4
mov eax, 0x45c554
mov edx, 0x446bec
call fcn.004429c2
mov eax, 0x45c720
mov edx, 0x446bec
call fcn.004429c2
call sub.KERNEL32.dll_GetCommandLineA
mov dword [0x45c534], eax
call fcn.004436b4
mov dword [0x45c530], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446be8
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x44813c
call fcn.0044948c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x448158
test bl, 1
je 0x448158
call fcn.0044e980
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x448324
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00449060
test byte [ebp + 0xd], 0xc0
jne 0x448348
mov eax, dword [0x4594f8]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x448355
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x448382
je 0x448394
sub ecx, 0x100
je 0x4483a2
sub ecx, 0x100
je 0x4483a9
sub ecx, 0x100
je 0x44839b
jmp 0x4483b0
sub ecx, 0x600
je 0x4483a9
sub ecx, 0x100
je 0x448394
jmp 0x4483b0
mov edi, 1
jmp 0x4483b5
mov edi, 2
jmp 0x4483b5
mov edi, 4
jmp 0x4483b5
mov edi, 5
jmp 0x4483b5
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4483dc
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x458f74]
test al, 0x80
je 0x4483d5
mov ebx, 0x80
jmp 0x4483ee
mov ebx, 1
jmp 0x4483ee
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4483ee
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x448400
je 0x448409
dec eax
je 0x448412
jmp 0x44841b
mov dword [ebp - 4], 0x80000000
jmp 0x44842a
mov dword [ebp - 4], 0x40000000
jmp 0x44842a
mov dword [ebp - 4], 0xc0000000
jmp 0x44842a
push 1
call fcn.00449420
pop ecx
mov ebx, eax
jmp 0x448516
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x448446
sub eax, 0x10
je 0x44844d
sub eax, 0x10
je 0x448456
sub eax, 0x10
je 0x44845f
jmp 0x44845f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x448466
mov dword [ebp - 8], 1
jmp 0x448466
mov dword [ebp - 8], 2
jmp 0x448466
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4484cf
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4484c4
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x4484c4
add ebx, 0xffffffb2
push ebx
call fcn.00449420
pop ecx
mov ebx, eax
jmp 0x448516
mov edi, esi
push edi
call fcn.00448288
pop ecx
test eax, eax
je 0x4484e3
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4484ef
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00449160
add esp, 8
mov ebx, eax
inc eax
jne 0x448516
push 4
call fcn.00449420
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
call fcn.00449094
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e714
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x45a47c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x44e7cc
cmp byte [0x4552f3], 0
je 0x44e786
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.0044e660
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44e76f
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.0044e660
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44e76f
lea ebx, [ebp - 0x54]
jmp 0x44e770
inc ebx
call fcn.0044e6cc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x44e7ed
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x45a480
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004471d8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x45a483
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x44e7ed
cmp dword [0x45a47c], 0xffffffff
je 0x44e7ed
mov eax, dword [0x45a47c]
test eax, eax
je 0x44e7ed
cmp byte [eax], 0
je 0x44e7ed
push esi
push eax
call fcn.0044e87c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ee84
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x45d1a8], 0
jne 0x44ef05
cmp dword [0x45d1c4], 0
jne 0x44eeb4
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x45d1c4], eax
test eax, eax
jne 0x44eeb4
push str.GetEnvironmentStrings_failed
call fcn.0044e804
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x45d1c4]
jmp 0x44eec8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004471d8
pop ecx
mov edi, eax
test eax, eax
jne 0x44eec0
lea edi, [ebp + 1]
push edi
call fcn.00446fc4
pop ecx
mov ebx, eax
mov dword [0x45d1ac], ebx
test ebx, ebx
jne 0x44eef2
xor eax, eax
jmp 0x44efc8
push edi
mov edx, dword [0x45d1c4]
push edx
push ebx
call fcn.00447088
add esp, 0xc
jmp 0x44ef25
xor esi, esi
mov ebx, dword [0x45d1a8]
jmp 0x44ef1f
push eax
call fcn.004471d8
pop ecx
test eax, eax
jne 0x44ef1b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x44ef0f
lea ebx, [esi + 4]
push 4
mov dword [0x45d1b0], ebx
inc ebx
push ebx
call fcn.00446bf0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x44ef48
xor eax, eax
jmp 0x44efc8
cmp dword [0x45d1a8], 0
jne 0x44ef79
xor esi, esi
mov ebx, dword [0x45d1ac]
mov eax, dword [esp]
mov ebp, eax
jmp 0x44ef6a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004471d8
pop ecx
mov edi, eax
test eax, eax
jne 0x44ef60
jmp 0x44efaa
xor esi, esi
mov ebx, dword [0x45d1a8]
mov eax, dword [esp]
mov edi, eax
jmp 0x44efa4
push eax
call fcn.004471d8
pop ecx
test eax, eax
je 0x44ef99
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x44ef9d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x44ef88
mov eax, dword [0x45d1a8]
test eax, eax
je 0x44efba
push eax
call fcn.00446fd4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x45d1a8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4af4ae
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push dword fs:[0x30]
pop ecx
push dword [ecx + 0xc]
pop ecx
push dword [ecx + 0x1c]
pop ecx
push dword [ecx]
pop ecx
push dword [ecx + 8]
pop eax
pop ecx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, ebx
movzx eax, word [ebx + 0x3c]
add ebx, eax
mov ebx, dword [ebx + 0x78]
add ebx, edx
or edi, edi
je 0x4af536
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
add esi, edx
push ebx
xor ebx, ebx
lodsd eax, dword [esi]
add eax, edx
push esi
push edi
xchg edi, esi
xchg edi, eax
lodsb al, byte [esi]
or al, al
jne 0x4af515
cmp byte [edi], 0
je 0x4af51e
jmp 0x4af51c
cmp byte [edi], al
jne 0x4af51c
inc edi
jmp 0x4af509
mov al, 1
pop edi
pop esi
or al, al
je 0x4af527
inc ebx
loop 0x4af501
xchg ebx, eax
pop ebx
mov esi, dword [ebx + 0x24]
add esi, edx
inc eax
shl eax, 1
add esi, eax
movzx ecx, word [esi]
mov esi, dword [ebx + 0x1c]
add esi, edx
sub ecx, dword [ebx + 0x10]
xchg ecx, eax
shl eax, 2
add esi, eax
mov eax, dword [esi]
add eax, edx
pop esi
pop edi
pop edx
pop ecx
pop ebx
leave
ret 8
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x78c176fd
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x42af34ba
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x41fe40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
jmp 0x41fe5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fe61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fe50
mov eax, 1
add ebx, ebx
jne 0x41fe73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fe68
jne 0x41fe84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fe68
xor ecx, ecx
sub eax, 3
jb 0x41fe98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ff0a
mov ebp, eax
add ebx, ebx
jne 0x41fea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41feb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fed4
inc ecx
add ebx, ebx
jne 0x41fec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41feb5
jne 0x41fed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41feb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fef4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41fee5
jmp 0x41fe56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fef4
add edi, ecx
jmp 0x41fe56
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ff12
cmp byte [edi], 9
jne 0x41ff12
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 0x41ff17
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41ff8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x207c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x208a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ff44
mov ecx, edi
jns 0x41ff73
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 + 0x208b0]
or eax, eax
je 0x41ff89
mov dword [ebx], eax
add ebx, 4
jmp 0x41ff61
call dword [esi + 0x208ac]
mov ebp, dword [esi + 0x208b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x41ffc3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x8f541b7
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x6fca260b
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402c86
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x432180]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x48707c]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402ced
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004033f7
lea ecx, [esp + 0x1c]
call fcn.00402a16
cmp eax, dword [esp + 0x14]
je 0x402d05
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403e30
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402cbd
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409180
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403e30
jmp 0x402cef

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x48707c], eax
push 0x27
mov esi, 0x484c60
mov edx, 0x547
push 0x432c30
mov ecx, esi
call fcn.00402805
push 1
push 0x42dd9c
call fcn.004011cb
add esp, 0x10
mov edx, 0x8aafdc01
call fcn.00402c86
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x402e20
lea ecx, [esp + 0x10]
call fcn.004047f3
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], 1
test ecx, ecx
je 0x402e2a
cmp byte [ecx + 0x6c], 0
jne 0x402e2a
mov eax, dword [ecx]
push 1
call dword [eax + 8]
lea ecx, [esp + 0x10]
call fcn.00402f73
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 4
pop ecx
call fcn.0040277a
int3
Function at 0x4080c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4080e9
jl 0x4080e0
test edi, edi
jne 0x4080e9
xor eax, eax
xor edx, edx
jmp 0x4081aa
cmp dword [ebx + 0x38], 0
je 0x4080fe
push eax
push edi
push dword [ebp + 8]
call fcn.004081b0
jmp 0x4081aa
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408145
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408145
cmp eax, edi
jb 0x40811f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a300
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40814b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40819f
mov ecx, ebx
call fcn.0040791a
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40818a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041167d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40819f
jmp 0x40815d
test edx, edx
je 0x40819f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041167d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x409ff0
Capabilities:
Parse pe header

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

Function at 0x417210
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429b68
push 0x429b60
push str.FlsAlloc
push 0x1e
call fcn.004170da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417244
push dword [ebp + 8]
mov ecx, esi
call dword [0x426158]
call esi
jmp 0x41724a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41728e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429b78
push 0x429b70
push str.FlsGetValue
push 0x20
call fcn.004170da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4172c5
push dword [ebp + 8]
mov ecx, esi
call dword [0x426158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41a818
Capabilities:
Read file on windows

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

Function at 0x41ac12
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a250
mov eax, dword [0x432180]
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.00418734
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ac54
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41adb0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424b50
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 + 0x486d40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041bc09
mov ecx, dword [esi*4 + 0x486d40]
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 0x41ada9
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ada9
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 0x41ada9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bc09
add esp, 0x14
test edx, edx
jl 0x41ada9
jg 0x41ad1f
test eax, eax
jb 0x41ada9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ada9
jl 0x41ad39
cmp dword [ebp - 0x1008], eax
ja 0x41ada9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41ad57
test ebx, ebx
je 0x41ad90
cmp ecx, edi
jae 0x41ad90
mov al, byte [ecx]
cmp al, 0xd
jne 0x41ad71
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41ad7d
cmp byte [ecx + 1], 0xa
jne 0x41ad7d
inc ecx
jmp 0x41ad7d
movzx eax, al
movsx eax, byte [eax + 0x432460]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41ad57
cmp edx, ebx
jne 0x41ad57
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41adae
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409180
leave
ret
Function at 0x41b0a7
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 + 0x486d40]
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 0x41b0e7
cmp byte [ebx], 0xa
jne 0x41b0e7
or byte [eax + edi + 0x28], 4
jmp 0x41b0ec
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b1ea
mov al, byte [edx]
cmp al, 0x1a
je 0x41b1cc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b11b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b140
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b14a
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 0x41b0fd
jmp 0x41b1ea
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 0x41b1c7
cmp dword [ebp - 0xc], 0
je 0x41b1c7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486d40]
test byte [eax + edi + 0x28], 0x48
je 0x41b1a1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b18c
mov byte [esi], dl
jmp 0x41b19d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486d40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b1ea
cmp byte [ebp - 1], 0xa
jne 0x41b1b0
cmp esi, ebx
jne 0x41b1b0
mov byte [esi], 0xa
jmp 0x41b1e9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041bc27
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b1ea
mov byte [esi], 0xd
jmp 0x41b1e9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486d40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b1e6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b1ea
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret