joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411698
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4116e5
xor ebx, ebx
jmp 0x4116da
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407f9c
test eax, eax
jne 0x4116d9
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x41178f
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4116bb
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4116f1
je 0x4116fa
jmp 0x411703
call fcn.0040ece8
mov esi, eax
jmp 0x411705
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x411705
xor esi, esi
test si, si
je 0x41178f
xor ebx, ebx
jmp 0x41172b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x41172a
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x41178f
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x411712
xor ebx, ebx
jmp 0x411784
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x411783
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x411778
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.0041166c
push eax
mov eax, esi
call fcn.0041166c
pop edx
cmp edx, eax
jne 0x411783
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x41178f
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x41173a
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x414f34
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415009
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415024
push ebx
push 0x415034
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405370
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x414fb4
mov al, 0x69
call fcn.00414bac
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00414f08
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x414fbd
call fcn.00414f08
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415010
lea eax, [ebp - 4]
call fcn.00404ebc
ret
Function at 0x415124
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151ef
jmp 0x4151e3
cmp dword [esi + 0x10], 0x1000
jne 0x4151cf
test byte [esi + 0x15], 1
jne 0x4151cf
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x415180
cmp ebp, 2
je 0x415180
cmp ebp, 0x10
je 0x415180
cmp ebp, 0x20
jne 0x41519c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41519c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4151ad
mov eax, dword [esi]
add eax, ebx
call fcn.0041511c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4151a0
cmp byte [esp + 4], 0
je 0x4151cf
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151ef
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x415155
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401d60
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
xor byte [esi + section..syhua], 0xc5
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x86
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x3e
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xcb
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xb1
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x84
push str.ujdishXABh78373377
call fcn.004010e0
xor byte [esi + section..syhua], 0x47
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x9f
push str.ujdishXABh78373377
call fcn.004010e0
xor byte [esi + section..syhua], 0xe2
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xd2
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x77
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x7f
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x60
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xa2
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x14
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x35
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xab
add esp, 0x40
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xe3
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x10
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x7e
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x32
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xc9
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x1c
push str.ujdishXABh78373377
call fcn.004010e0
xor byte [esi + section..syhua], 0xa9
push str.ujdishXABh78373377
call fcn.004010e0
xor byte [esi + section..syhua], 0xfa
push str.ujdishXABh78373377
call fcn.004010e0
xor byte [esi + section..syhua], 0x23
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x72
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x25
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x46
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x55
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xb8
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x70
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xb5
add esp, 0x40
push str.ujdishXABh78373377
call fcn.004010e0
xor byte [esi + section..syhua], 0xb8
push str.ujdishXABh78373377
call fcn.004010e0
inc esi
add esp, 8
cmp esi, 0x2c00
jb 0x401d63
pop esi
ret
Function at 0x401fc0
Capabilities:
Encode data using xor
Hash data using murmur2
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
mov eax, dword [0x433010]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov ebx, dword [0x437c00]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], edx
mov eax, dword [ebx + 0x3c]
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ecx + ebx + 0x20]
add ecx, ebx
mov dword [esp + 0x28], ecx
add eax, ebx
mov dword [esp + 0x14], eax
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x40219a
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x3c], 0
mov eax, edx
mov dword [esp + 0x40], 0
movups xmmword [esp + 0x2c], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402031
sub eax, esi
lea ecx, [esp + 0x2c]
push eax
push edx
call fcn.004044f0
mov edi, dword [esp + 0x3c]
lea ebx, [esp + 0x2c]
mov esi, edi
xor esi, 0x36c
cmp dword [esp + 0x40], 0x10
cmovae ebx, dword [esp + 0x2c]
push ebx
shr edi, 2
push edi
push str._x_and__p
call fcn.004010e0
add esp, 0xc
xor edx, edx
test edi, edi
je 0x4020a1
nop word [eax + eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e995
inc edx
imul esi, esi, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor esi, ecx
cmp edx, edi
jl 0x402080
mov eax, dword [esp + 0x3c]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x4020cb
sub eax, 1
je 0x4020c1
sub eax, 1
jne 0x4020d9
movsx ecx, byte [ebx + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebx + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebx + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e995
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x20]
je 0x402149
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
add eax, 4
mov dword [esp + 0x14], eax
cmp ecx, 0x10
jb 0x402138
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40212a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021b3
push ecx
push edx
call fcn.00407219
mov eax, dword [esp + 0x1c]
add esp, 8
mov ebx, dword [esp + 0x18]
inc ebp
cmp ebp, dword [esp + 0x24]
jb 0x402010
jmp 0x40219a
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
cmp ecx, 0x10
jb 0x40219a
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402190
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4021b3
push ecx
push edx
call fcn.00407219
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004071d6
add esp, 0x3c
ret
call fcn.0040e4ed
int3
Function at 0x4060df
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 0x406100
jl 0x4060f7
test edi, edi
jne 0x406100
xor eax, eax
xor edx, edx
jmp 0x4061c1
cmp dword [ebx + 0x38], 0
je 0x406115
push eax
push edi
push dword [ebp + 8]
call fcn.004061c7
jmp 0x4061c1
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40615c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40615c
cmp eax, edi
jb 0x406136
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408240
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 0x406162
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4061b6
mov ecx, ebx
call fcn.00405947
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4061a1
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040f00e
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 0x4061b6
jmp 0x406174
test edx, edx
je 0x4061b6
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040f00e
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 0x4079ca
Capabilities:
Parse pe header

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

Function at 0x41468d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428ac8
push 0x428ac0
push str.FlsAlloc
push 0x1e
call fcn.004144fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4146c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x425130]
call esi
jmp 0x4146c7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41470b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428ad8
push 0x428ad0
push str.FlsGetValue
push 0x20
call fcn.004144fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414742
push dword [ebp + 8]
mov ecx, esi
call dword [0x425130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x417fa8
Capabilities:
Read file on windows

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

Function at 0x4183a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407d40
mov eax, dword [0x433010]
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.00415bb1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4183e4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418540
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423ca0
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 + 0x434b40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419399
mov ecx, dword [esi*4 + 0x434b40]
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 0x418539
cmp eax, dword [edi + ecx + 0x24]
jne 0x418539
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 0x418539
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419399
add esp, 0x14
test edx, edx
jl 0x418539
jg 0x4184af
test eax, eax
jb 0x418539
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418539
jl 0x4184c9
cmp dword [ebp - 0x1008], eax
ja 0x418539
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4184e7
test ebx, ebx
je 0x418520
cmp ecx, edi
jae 0x418520
mov al, byte [ecx]
cmp al, 0xd
jne 0x418501
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41850d
cmp byte [ecx + 1], 0xa
jne 0x41850d
inc ecx
jmp 0x41850d
movzx eax, al
movsx eax, byte [eax + 0x4332a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4184e7
cmp edx, ebx
jne 0x4184e7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41853e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004071d6
leave
ret
Function at 0x418837
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 + 0x434b40]
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 0x418877
cmp byte [ebx], 0xa
jne 0x418877
or byte [eax + edi + 0x28], 4
jmp 0x41887c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41897a
mov al, byte [edx]
cmp al, 0x1a
je 0x41895c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4188ab
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4188d0
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4188da
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 0x41888d
jmp 0x41897a
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 0x418957
cmp dword [ebp - 0xc], 0
je 0x418957
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x434b40]
test byte [eax + edi + 0x28], 0x48
je 0x418931
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41891c
mov byte [esi], dl
jmp 0x41892d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x434b40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41897a
cmp byte [ebp - 1], 0xa
jne 0x418940
cmp esi, ebx
jne 0x418940
mov byte [esi], 0xa
jmp 0x418979
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004193b7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41897a
mov byte [esi], 0xd
jmp 0x418979
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x434b40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418976
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41897a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418983
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 + 0x434b40]
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 0x4189c6
cmp word [esi], dx
jne 0x4189c6
or byte [edi + eax + 0x28], 4
jmp 0x4189cb
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 0x418b1e
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 0x418afe
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x418a0d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418a43
cmp eax, edx
jae 0x418a4f
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 0x4189e5
jmp 0x418b1e
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 0x418afa
cmp dword [ebp - 0x14], 0
je 0x418afa
mov eax, dword [ebx*4 + 0x434b40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x418ad2
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x418a9b
mov word [esi], cx
jmp 0x418ace
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x434b40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x434b40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x434b40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418b1e
pop ebx
cmp word [ebp - 4], bx
jne 0x418ae3
cmp esi, dword [ebp + 0xc]
jne 0x418ae3
mov word [esi], bx
jmp 0x418b1b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004193b7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418b1e
push 0xd
jmp 0x418b17
mov ecx, dword [ebx*4 + 0x434b40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418b15
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418b1e
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 0x41cb2d
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 0x41cbca
push ebx
push esi
call fcn.0041caf6
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.0041b77b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41cb77
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cbc9
push edi
push eax
call fcn.00414cc0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41cb97
call fcn.0041421f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cbc8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b77b
add esp, 0x20
test eax, eax
jne 0x41cbb6
push edi
call fcn.0041421f
jmp 0x41cbbe
push ebx
call fcn.0041421f
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 0x423aa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423acd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423acd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x408946
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
or edx, edx
sub edx, ecx
call fcn.00408964
sub ecx, edx
and ecx, edx
xor dword [esi], eax
inc esi
cmp esi, edi
jne fcn.00408946
ret