joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405d70
mov eax, dword [0x472500]
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.00411097
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x412c78
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x412dd4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c420
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 + 0x474018]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041305c
mov ecx, dword [esi*4 + 0x474018]
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 0x412dcd
cmp eax, dword [edi + ecx + 0x24]
jne 0x412dcd
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 0x412dcd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041305c
add esp, 0x14
test edx, edx
jl 0x412dcd
jg 0x412d43
test eax, eax
jb 0x412dcd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x412dcd
jl 0x412d5d
cmp dword [ebp - 0x1008], eax
ja 0x412dcd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x412d7b
test ebx, ebx
je 0x412db4
cmp ecx, edi
jae 0x412db4
mov al, byte [ecx]
cmp al, 0xd
jne 0x412d95
lea eax, [edi - 1]
cmp ecx, eax
jae 0x412da1
cmp byte [ecx + 1], 0xa
jne 0x412da1
inc ecx
jmp 0x412da1
movzx eax, al
movsx eax, byte [eax + 0x472e80]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x412d7b
cmp edx, ebx
jne 0x412d7b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x412dd2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405003
leave
ret
Function at 0x418fd9
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 + 0x474018]
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 0x419019
cmp byte [ebx], 0xa
jne 0x419019
or byte [eax + edi + 0x28], 4
jmp 0x41901e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41911c
mov al, byte [edx]
cmp al, 0x1a
je 0x4190fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41904d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419072
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41907c
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 0x41902f
jmp 0x41911c
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 0x4190f9
cmp dword [ebp - 0xc], 0
je 0x4190f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x474018]
test byte [eax + edi + 0x28], 0x48
je 0x4190d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4190be
mov byte [esi], dl
jmp 0x4190cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x474018]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41911c
cmp byte [ebp - 1], 0xa
jne 0x4190e2
cmp esi, ebx
jne 0x4190e2
mov byte [esi], 0xa
jmp 0x41911b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041307a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41911c
mov byte [esi], 0xd
jmp 0x41911b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x474018]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419118
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41911c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419125
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 + 0x474018]
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 0x419168
cmp word [esi], dx
jne 0x419168
or byte [edi + eax + 0x28], 4
jmp 0x41916d
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 0x4192c0
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 0x4192a0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4191af
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4191e5
cmp eax, edx
jae 0x4191f1
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 0x419187
jmp 0x4192c0
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 0x41929c
cmp dword [ebp - 0x14], 0
je 0x41929c
mov eax, dword [ebx*4 + 0x474018]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419274
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41923d
mov word [esi], cx
jmp 0x419270
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x474018]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x474018]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x474018]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4192c0
pop ebx
cmp word [ebp - 4], bx
jne 0x419285
cmp esi, dword [ebp + 0xc]
jne 0x419285
mov word [esi], bx
jmp 0x4192bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041307a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4192c0
push 0xd
jmp 0x4192b9
mov ecx, dword [ebx*4 + 0x474018]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4192b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4192c0
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 0x41d9d0
Capabilities:
Create thread
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 4
call fcn.00404fc5
add esp, 4
test eax, eax
je 0x41d9ef
mov dword [eax], 0x41d7b0
jmp 0x41d9f1
xor eax, eax
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x401750
push 0
push 0
call fcn.0040a675
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x41da5a
cmp dword [esp + 4], 0
je 0x41da69
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x41da70
push 0
push ecx
push dword [esp + 8]
call fcn.00402832
add esp, 0xc
test eax, eax
jne 0x41da77
push eax
push eax
push eax
push eax
push eax
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
cmp dword [esp + 4], 0
jne 0x41da7e
xor eax, eax
add esp, 8
ret
push 6
mov dword [esp + 8], 0
call fcn.004029e8
push 1
call fcn.004029e8
push 5
call fcn.004029e8
push 2
call fcn.004029e8
call fcn.0040a4dd
int3

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401336
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x4034c0
call fcn.00401978
push 1
call fcn.004014d6
pop ecx
test al, al
jne 0x4011df
push 7
call fcn.00401743
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004014a1
mov byte [ebp - 0x24], al
mov eax, dword [0x40433c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4011d8
test eax, eax
jne 0x401249
mov dword [0x40433c], ecx
push 0x403110
push 0x4030fc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40122c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401330
push 0x4030f8
push 0x4030f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40433c], 2
jmp 0x40124e
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00401633
pop ecx
call fcn.00401737
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40127e
push esi
call fcn.004015a6
pop ecx
test al, al
je 0x40127e
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00401972
call esi
call fcn.0040173d
mov esi, eax
cmp dword [esi], edi
je 0x40129c
push esi
call fcn.004015a6
pop ecx
test al, al
je 0x40129c
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.00401858
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.0040188b
test al, al
jne 0x4012d5
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00401650
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x401330
call fcn.004019be
ret
call fcn.00401050
jmp 0x4011c0

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x2409398c
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x335a7b22
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x4057cc
Capabilities:
Delete file

Disassembly:
push esi
mov ebp, dword [edx + 0x37]
or byte [edi + 0x6f], dh
call fcn.00405bd3
mov edi, eax
and dword [ebp - 1], 0x1f
cmp esi, esi
popfd
and al, 0x10

Function at 0x405bd3
Capabilities:
Encode data using xor

Disassembly:
or ebp, dword [edx]
je 0x405bfb
or bh, bh
adc eax, sym.imp.KERNEL32.DLL_GetFileAttributesW
mov ebx, edx
push ss
fcos
je 0x405bf2
stosb byte es:[edi], al
stosb byte es:[edi], al
hlt
dec esi
invalid
xchg ah, ah
add al, 0

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

Disassembly:
rcl byte [ebx], cl
mov edx, 0x3694ab24
mov ebp, 0x7d3b5f66
and al, 0x90
Function at 0x40c1d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push esi
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0x8c]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x48], 0x3f
mov dword [ebp - 0xa0], 0x21
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18c], ecx
mov edx, dword [ebp - 0x258]
add edx, dword [ebp - 0x11c]
mov dword [ebp - 0x130], edx
movzx eax, word [ebp - 0x24c]
add eax, dword [0x42003c]
mov dword [0x42003c], eax
mov ecx, dword [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0x130]
push edx
mov eax, dword [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0x1d8]
push ecx
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x130]
push eax
call fcn.0040c9b0
add esp, 0x18
mov esi, eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x34
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, 0x4a
sub edx, eax
add edx, dword [ebp - 0x130]
and esi, edx
mov word [ebp - 0xb8], si
movzx eax, word [ebp - 0x1a0]
add eax, dword [ebp - 0x1d8]
add eax, dword [0x420040]
mov dword [0x420040], eax
movzx ecx, word [ebp - 0x1d0]
mov edx, 0x48
sub edx, ecx
movzx eax, word [ebp - 0x1a0]
lea ecx, [eax + edx - 0x4c]
mov word [ebp - 0x1a0], cx
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x200], edx
movzx eax, byte [ebp - 0x111]
mov ecx, dword [ebp - 0x118]
sub ecx, eax
add ecx, 0x4e
mov dword [ebp - 0x1b8], ecx
movzx edx, word [ebp - 0x1a4]
movzx eax, byte [ebp - 0x1a]
lea ecx, [edx + eax - 0x48]
movzx edx, word [ebp - 0x10c]
xor edx, ecx
mov word [ebp - 0x10c], dx
mov eax, dword [ebp - 0x130]
sub eax, 0x29
mov ecx, 0x38
sub ecx, dword [ebp - 0x118]
or eax, ecx
mov word [ebp - 0x14], ax
mov edx, 0x62
sub edx, dword [ebp - 0xc4]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x118], eax
movzx ecx, byte [ebp - 0x12a]
mov edx, dword [ebp - 0x118]
lea eax, [ecx + edx + 2]
movzx ecx, byte [ebp - 0x111]
or eax, ecx
mov byte [ebp - 0x12a], al
lea edx, [ebp - 0xc0]
sub edx, 0x2c
movzx eax, byte [edx]
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x64], 0x5b
movzx ecx, word [ebp - 0x250]
add ecx, 0x23
mov word [ebp - 0xc], cx
movzx edx, word [ebp - 0x120]
movzx eax, word [ebp - 0xe4]
sub edx, eax
sub edx, dword [ebp - 0x118]
mov byte [ebp - 0x12a], dl
mov eax, dword [ebp - 0xec]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cd50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [ebp - 0x118]
or eax, dword [ebp - 0x1c4]
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 0x1c4]
or eax, ecx
mov word [ebp - 0xd8], ax
mov dword [ebp + 0x1c], 0x1d
mov edx, dword [ebp - 0x1c4]
mov eax, dword [ebp - 0x118]
lea ecx, [eax + edx + 0x70]
xor ecx, dword [ebp + 0x18]
mov byte [ebp - 0xc1], cl
mov dword [ebp - 0x25c], 0
jmp 0x40cdb2
mov edx, dword [ebp - 0x25c]
add edx, 1
mov dword [ebp - 0x25c], edx
cmp dword [ebp - 0x25c], 0xe
jge 0x40ce2b
mov dword [ebp + 8], 0x1d
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, 0x5e
mov word [ebp + 0x1c], cx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1d0], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x250]
lea edx, [ecx + eax + 0x45]
mov dword [ebp - 0xf4], edx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x38
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x118]
add edx, 0x45
mov eax, dword [ebp + 0x14]
sub eax, 0x53
and edx, eax
mov word [ebp - 0xb4], dx
mov ecx, dword [ebp + 8]
sub ecx, dword [ebp + 8]
mov dword [ebp - 0x1c4], ecx
jmp 0x40cda3
mov edx, dword [ebp - 0x118]
add edx, 0x39
movzx eax, word [ebp - 0xa8]
sub eax, edx
mov word [ebp - 0xa8], ax
mov ecx, dword [ebp - 0x118]
sub ecx, 0x4d
sub ecx, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x10]
lea eax, [ecx + edx + 0x46]
mov byte [ebp - 0x255], al
mov dword [ebp - 0x164], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
mov dword [ebp + 0x1c], ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx - 0xe]
or ecx, dword [ebp - 0x118]
mov word [ebp - 0x1a0], cx
mov edx, dword [ebp + 0x18]
add edx, 0x3e
mov dword [ebp - 0x1c4], edx
movzx eax, word [ebp - 0xec]
xor eax, 0x2e
add eax, dword [0x420058]
mov dword [0x420058], eax
movzx ecx, byte [ebp - 0x255]
mov edx, 4
sub edx, ecx
sub edx, 0x5c
movzx eax, byte [ebp - 0x21]
xor eax, edx
mov byte [ebp - 0x21], al
mov ecx, 2
mov word [ebp - 0xf0], cx
mov eax, dword [ebp - 0x104]
mov esp, ebp
pop ebp
ret
Function at 0x40ef0a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4279e0]
jne 0x40ef14
repz ret
jmp 0x4119f1
push ebp
mov dword [0x479fe8], eax
mov dword [0x479fe4], ecx
mov dword [0x479fe0], edx
mov dword [0x479fdc], ebx
mov dword [0x479fd8], esi
mov dword [0x479fd4], edi
mov word [0x47a000], ss
mov word [0x479ff4], cs
mov word [0x479fd0], ds
mov word [0x479fcc], es
mov ebp, esp
sub esp, 0x328
mov word [0x479fc8], fs
mov word [0x479fc4], gs
pushfd
mov edi, edi
pop dword [0x479ff8]
mov eax, dword [ebp]
mov dword [0x479fec], eax
mov eax, dword [ebp + 4]
mov dword [0x479ff0], eax
lea eax, [ebp + 8]
mov dword [0x479ffc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x479f38], 0x10001
mov eax, dword [0x479ff0]
mov dword [0x479eec], eax
mov dword [0x479ee0], 0xc0000409
mov dword [0x479ee4], 1
mov eax, dword [0x4279e0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x4279e4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x479f30], eax
push 1
call fcn.00416654
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x41cdc8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x479f30], 0
jne 0x411ae3
push 1
call fcn.00416654
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x4119f1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4279e0]
jne 0x40ef14
repz ret
jmp 0x4119f1
push ebp
mov dword [0x479fe8], eax
mov dword [0x479fe4], ecx
mov dword [0x479fe0], edx
mov dword [0x479fdc], ebx
mov dword [0x479fd8], esi
mov dword [0x479fd4], edi
mov word [0x47a000], ss
mov word [0x479ff4], cs
mov word [0x479fd0], ds
mov word [0x479fcc], es
mov ebp, esp
sub esp, 0x328
mov word [0x479fc8], fs
mov word [0x479fc4], gs
pushfd
mov edi, edi
pop dword [0x479ff8]
mov eax, dword [ebp]
mov dword [0x479fec], eax
mov eax, dword [ebp + 4]
mov dword [0x479ff0], eax
lea eax, [ebp + 8]
mov dword [0x479ffc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x479f38], 0x10001
mov eax, dword [0x479ff0]
mov dword [0x479eec], eax
mov dword [0x479ee0], 0xc0000409
mov dword [0x479ee4], 1
mov eax, dword [0x4279e0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x4279e4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x479f30], eax
push 1
call fcn.00416654
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x41cdc8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x479f30], 0
jne 0x411ae3
push 1
call fcn.00416654
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x411cac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x411cd9
call fcn.0040f9bb
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
call fcn.00412194
add esp, 0x14
jmp 0x411dd0
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x411dd0
test al, 0x40
jne 0x411dd0
test al, 2
je 0x411cfb
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x411dd0
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x411d11
push esi
call fcn.00416f4d
pop ecx
jmp 0x411d16
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.0041202b
pop ecx
push eax
call fcn.00416e50
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, edi
je 0x411dc0
cmp eax, 0xffffffff
je 0x411dc0
test byte [esi + 0xc], 0x82
jne 0x411d95
push esi
call fcn.0041202b
pop ecx
cmp eax, 0xffffffff
je 0x411d80
push esi
call fcn.0041202b
pop ecx
cmp eax, 0xfffffffe
je 0x411d80
push esi
call fcn.0041202b
sar eax, 5
push esi
lea edi, [eax*4 + 0x47a800]
call fcn.0041202b
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [edi]
pop ecx
jmp 0x411d85
mov eax, 0x427f38
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x411d95
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x411db3
mov eax, dword [esi + 0xc]
test al, 8
je 0x411db3
test eax, 0x400
jne 0x411db3
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x411dd3
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], edi
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret

Function at 0x412194
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x47a208]
call fcn.00413a18
pop ecx
test eax, eax
je 0x4121ac
pop ebp
jmp eax
push 2
call fcn.00416654
pop ecx
pop ebp
jmp fcn.0041206c

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x413f6b
call fcn.0040f9ce
mov dword [eax], esi
call fcn.0040f9bb
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00412194
add esp, 0x14
push 0x16
pop eax
jmp 0x413fc0
test dword [ebp + 0xc], 0xfffffff9
jne 0x413f47
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f9e1
pop ecx
call fcn.0040f9bb
mov eax, dword [eax]
jmp 0x413fc0
test al, 0x10
jne 0x413fbe
test al, 1
je 0x413fbe
test byte [ebp + 0xc], 2
je 0x413fbe
call fcn.0040f9ce
mov dword [eax], 5
call fcn.0040f9bb
mov dword [eax], 0xd
jmp 0x413f8f
xor eax, eax
pop esi
pop ebp
ret