joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425fbc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x4260b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4260cc
call fcn.00416024
mov eax, dword [0x42ae4c]
cmp dword [eax], 0
jg 0x426093
lea eax, [ebp - 0xc]
call fcn.00420aec
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 0x4260f8
call fcn.004044bc
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402840
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004077a0
push dword [ebp - 0x10]
lea edx, [ebp - 0x18]
mov eax, dword [0x42adf0]
mov eax, dword [eax]
call fcn.0041a30c
push dword [ebp - 0x18]
push dword [ebp - 4]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404530
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, 0x426120
call fcn.004044bc
mov eax, dword [ebp - 0x1c]
call fcn.00416024
push 0
mov eax, dword [ebp - 8]
call fcn.00404670
push eax
call sub.kernel32.dll_WinExec
push 0
push 0x3e8
xor eax, eax
call fcn.0040f22c
mov eax, 0x426138
call fcn.00416024
push 0
push 0
push 2
mov eax, dword [0x42ad88]
mov eax, dword [eax]
push eax
call sub.user32.dll_PostMessageA
mov eax, 0x42615c
call fcn.00416024
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4260bf
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004041f0
ret
Function at 0x427074
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42720f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.004103f0
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x41976c]
call fcn.00419f50
call fcn.0041a70c
mov dword [ebp - 0xc], eax
mov ebx, 0x46
mov eax, dword [ebp - 0xc]
add eax, 0xffffff4f
sub eax, 2
jae 0x4270c9
add ebx, 0x34
mov esi, 0x14
mov edi, 0x154
mov dword [ebp - 8], 0x12
push ebx
push esi
push edi
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, dword [0x42b660]
push eax
push 0
mov edx, 0x427220
mov eax, 0x427224
mov ecx, 0x50000000
call fcn.00406260
mov edx, dword [0x42aec8]
mov dword [edx], eax
mov ebx, 0x46
mov esi, 0x26
mov edi, 0x188
mov dword [ebp - 8], 0xd
push 0x50000000
push ebx
push esi
push edi
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, dword [0x42b660]
push eax
push 0
mov edx, 0x42722c
xor ecx, ecx
xor eax, eax
call fcn.00406208
mov edx, dword [0x42ae08]
mov dword [edx], eax
mov ebx, 0x1a0
mov eax, dword [ebp - 0xc]
add eax, 0xffffff4f
sub eax, 2
jae 0x427168
mov ebx, 0x46
mov esi, 0x14
mov edi, 0x2e
mov dword [ebp - 8], 0xd
push 0x40000000
push ebx
push esi
push edi
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, dword [0x42b660]
push eax
push 0
mov edx, 0x42722c
xor ecx, ecx
xor eax, eax
call fcn.00406208
mov edx, dword [0x42ada8]
mov dword [edx], eax
push 0
push 0x3e8
push 1
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetTimer
mov edx, dword [0x42add8]
mov dword [edx], eax
push 0x427240
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xfffffffffffffff5
call sub.gdi32.dll_CreateFontA
push 0
push eax
push 0x30
mov eax, dword [0x42aec8]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427216
lea eax, [ebp - 0x10]
call fcn.004041cc
ret
Function at 0x4274fc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4276e5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, 0x4276fc
call fcn.00410be4
test eax, eax
jl 0x42753a
neg eax
mov edx, dword [0x42ae68]
mov dword [edx], eax
call sub.comctl32.dll_InitCommonControls
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x28
call fcn.00402d70
mov dword [ebp - 0x50], 0x427380
mov eax, dword [0x42b660]
mov dword [ebp - 0x44], eax
mov eax, dword [0x42ad24]
call fcn.00404670
mov dword [ebp - 0x30], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x3c], eax
push 0x427708
mov eax, dword [0x42b660]
push eax
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], 8
lea eax, [ebp - 0x54]
push eax
call sub.user32.dll_RegisterClassA
mov esi, 0x1ec
mov edi, 0x6e
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
mov edx, edi
mov eax, esi
call fcn.00411ccc
mov dword [ebp - 0xc], 0x2c80000
lea edx, [ebp - 0x58]
xor eax, eax
call fcn.004103f0
mov ecx, dword [ebp - 0x58]
mov dl, 1
mov eax, dword [0x41976c]
call fcn.00419f50
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x42771c
mov edx, 0x427740
mov eax, ebx
call fcn.0041a600
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push esi
push edi
push 0
push 0
mov eax, dword [0x42b660]
push eax
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404670
push eax
mov eax, dword [0x42ad24]
call fcn.00404670
mov edx, eax
xor eax, eax
pop ecx
call fcn.00406208
mov edx, dword [0x42ad88]
mov dword [edx], eax
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.0041a804
mov eax, dword [ebp - 0x5c]
push eax
mov eax, ebx
call fcn.0041a70c
push eax
mov eax, ebx
call fcn.0041a784
mov edx, eax
pop ecx
pop eax
call fcn.0041218c
mov eax, dword [0x42ad88]
cmp dword [eax], 0
je 0x42769b
push 0
mov eax, dword [0x42ad88]
mov eax, dword [eax]
push eax
call sub.user32.dll_ShowWindow
jmp 0x427688
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_DispatchMessageA
cmp byte [0x42ad2c], 0
jne 0x42769b
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x42766d
push 1
mov eax, dword [0x42ad88]
mov eax, dword [eax]
push eax
call sub.user32.dll_KillTimer
mov al, 1
call fcn.004153d4
call fcn.00415298
xor edx, edx
mov eax, 0x2b
call fcn.00416104
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4276ec
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004041f0
lea eax, [ebp - 0x10]
call fcn.004041cc
ret
Function at 0x427978
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x427980
xor eax, eax
push ebp
push 0x427a8c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.00402840
lea eax, [ebp - 0x10]
call fcn.0041f7a4
push dword [ebp - 0x10]
push 0x427aa0
push 0x427aac
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00407828
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404530
push 0
mov eax, dword [ebp - 8]
call fcn.00404670
push eax
mov eax, dword [ebp - 4]
call fcn.00404670
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x18]
call fcn.00410894
push dword [ebp - 0x18]
push 0x427ab8
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402840
push dword [ebp - 0x1c]
push 0x427ae0
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404530
push dword [ebp - 0xc]
push 0x427af0
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00402840
push dword [ebp - 0x20]
push 0x427b08
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404530
push 0
push dword [ebp - 8]
push 0x427b14
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00407098
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404530
mov eax, dword [ebp - 0x24]
call fcn.00404670
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427a93
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.004041f0
ret
Function at 0x4ea650
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8d000]
mov dword [edi + 0xcf740], 0x5c513c37
push edi
jmp 0x4ea67a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ea681
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ea670
mov eax, 1
add ebx, ebx
jne 0x4ea693
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ea6a4
jne 0x4ea6c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ea6c3
dec eax
add ebx, ebx
jne 0x4ea6b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ea688
add ebx, ebx
jne 0x4ea6bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ea715
xor ecx, ecx
sub eax, 3
jb 0x4ea6db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ea74a
sar eax, 1
mov ebp, eax
jmp 0x4ea6e6
add ebx, ebx
jne 0x4ea6e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ea6b4
inc ecx
add ebx, ebx
jne 0x4ea6f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ea6b4
add ebx, ebx
jne 0x4ea701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ea6f6
jne 0x4ea712
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ea6f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ea734
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ea726
jmp 0x4ea676
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ea734
add edi, ecx
jmp 0x4ea676
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ea752
cmp byte [edi], 0x11
jne 0x4ea752
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 0x4ea757
lea edi, [esi + 0xe3000]
mov eax, dword [edi]
or eax, eax
je 0x4ea7cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xef6b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xef830]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ea784
mov ecx, edi
jns 0x4ea7b3
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 + 0xef834]
or eax, eax
je 0x4ea7c9
mov dword [ebx], eax
add ebx, 4
jmp 0x4ea7a1
call dword [esi + 0xef844]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4ea800
cmp al, 0xef
ja 0x4ea7f3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4ea7d5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4ea7e2
mov ebp, dword [esi + 0xef838]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x4ea834
sub esp, 0xffffff80
jmp 0x420577
Function at 0x4023d0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4225d0]
xor eax, esp
mov dword [esp + 4], eax
push 0x41d3df
push dword [esp + 0x20]
call fcn.0040d64d
add esp, 8
mov dword [esp], eax
mov eax, 0x78c74688
mov ebp, 0x8be6f483
mov ebx, 0x920754fd
nop word cs:[eax + eax]
nop
cmp eax, 0xc1cc8e02
jle 0x4024e0
cmp eax, 0x3603c7ef
jg 0x402440
cmp eax, 0xc1cc8e03
je 0x40258b
cmp eax, 0x24cdd96c
jne 0x402410
jmp 0x4024c8
cmp eax, 0x3603c7f0
je 0x402468
cmp eax, 0x78c74688
jne 0x402410
cmp dword [esp], 0
mov eax, 0x3603c7f0
mov ecx, 0xae488a00
cmove eax, ecx
cmp eax, 0xc1cc8e02
jg 0x40241b
jmp 0x4024e0
push 2
push 0
push dword [esp + 8]
call fcn.0040da4a
add esp, 0xc
push dword [esp]
call fcn.0040dd6d
add esp, 4
mov esi, eax
push dword [esp]
call fcn.0040d4f8
add esp, 4
push 0x41d3df
push dword [esp + 0x20]
call fcn.0040d64d
add esp, 8
mov edi, eax
push esi
call fcn.0040e3c2
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
push edi
push esi
push 1
push eax
call fcn.0040d839
add esp, 0x10
push edi
call fcn.0040d4f8
add esp, 4
mov eax, 0xc1cc8e03
cmp eax, 0xc1cc8e02
jg 0x40241b
nop dword [eax + eax]
cmp eax, 0x8be6f483
je 0x402535
cmp eax, 0x920754fd
je 0x402547
cmp eax, 0xae488a00
jne 0x402410
mov eax, dword [0x422ff4]
lea ecx, [eax - 1]
imul ecx, eax
mov eax, ecx
xor eax, 0xfffffffe
test eax, ecx
mov eax, 0x8be6f483
sete cl
cmove eax, ebx
cmp dword [0x422ff8], 0xa
setl dl
cmovge eax, ebp
xor dl, cl
cmovne eax, ebx
cmp eax, 0xc1cc8e02
jg 0x40241b
jmp 0x4024e0
mov eax, 0x920754fd
cmp eax, 0xc1cc8e02
jg 0x40241b
jmp 0x4024e0
mov eax, dword [0x422ff4]
mov esi, 0x24cdd96c
lea ecx, [eax - 1]
imul ecx, eax
mov eax, ecx
xor eax, 0xfffffffe
test eax, ecx
mov eax, 0x8be6f483
sete cl
cmove eax, esi
cmp dword [0x422ff8], 0xa
setl dl
cmovge eax, ebp
xor dl, cl
cmovne eax, esi
cmp eax, 0xc1cc8e02
jg 0x40241b
jmp 0x4024e0
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00409273
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40a43c
Capabilities:
Parse pe header

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

Function at 0x40ddf9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00414c80
mov eax, dword [0x4225d0]
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.00413726
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40de3b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x40df97
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00414bd0
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 + 0x423e00]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004149fb
mov ecx, dword [esi*4 + 0x423e00]
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 0x40df90
cmp eax, dword [ecx + edi + 0x24]
jne 0x40df90
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 0x40df90
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004149fb
add esp, 0x14
test edx, edx
jl 0x40df90
jg 0x40df06
test eax, eax
jb 0x40df90
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x40df90
jl 0x40df20
cmp dword [ebp - 0x1008], eax
ja 0x40df90
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x40df3e
test ebx, ebx
je 0x40df77
cmp ecx, edi
jae 0x40df77
mov al, byte [ecx]
cmp al, 0xd
jne 0x40df58
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40df64
cmp byte [ecx + 1], 0xa
jne 0x40df64
inc ecx
jmp 0x40df64
movzx eax, al
movsx eax, byte [eax + 0x422d60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40df3e
cmp edx, ebx
jne 0x40df3e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x40df95
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409273
leave
ret

Function at 0x40f440
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41adcc
push 0x41adc4
push str.FlsAlloc
push 0x1f
call fcn.0040fb5e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f806
push dword [ebp + 8]
mov ecx, esi
call dword [section..spec]
call esi
jmp 0x40f80c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f850
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41addc
push 0x41add4
push str.FlsGetValue
push 0x21
call fcn.0040fb5e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f887
push dword [ebp + 8]
mov ecx, esi
call dword [section..spec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40f88f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ade4
push 0x41addc
push str.FlsSetValue
push 0x22
call fcn.0040fb5e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f8c9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..spec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x412e6d
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 0x412f0a
push ebx
push esi
call fcn.00412f0d
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.00412d71
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x412eb7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x412f09
push edi
push eax
call fcn.00411885
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x412ed7
call fcn.00410d0b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x412f08
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00412d71
add esp, 0x20
test eax, eax
jne 0x412ef6
push edi
call fcn.00410d0b
jmp 0x412efe
push ebx
call fcn.00410d0b
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 0x4144fc
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 + 0x423e00]
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 0x41453c
cmp byte [ebx], 0xa
jne 0x41453c
or byte [edi + eax + 0x28], 4
jmp 0x414541
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 0x414640
mov dl, byte [eax]
cmp dl, 0x1a
je 0x414623
inc eax
cmp dl, 0xd
je 0x41456d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x414593
cmp eax, ecx
jae 0x4145a1
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 0x414555
jmp 0x414640
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 0x41461e
cmp dword [ebp - 0x10], 0
je 0x41461e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x423e00]
test byte [eax + edi + 0x28], 0x48
je 0x4145f8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4145e3
mov byte [esi], dl
jmp 0x4145f4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x423e00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414640
cmp byte [ebp - 1], 0xa
jne 0x414607
cmp esi, ebx
jne 0x414607
mov byte [esi], 0xa
jmp 0x41463f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041499d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414640
mov byte [esi], 0xd
jmp 0x41463f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x423e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41463d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414640
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414649
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 + 0x423e00]
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 0x41468f
cmp word [ebx], dx
jne 0x41468f
or byte [eax + edi + 0x28], 4
jmp 0x414694
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 0x4147f7
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 0x4147d7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4146d5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41470b
cmp eax, edx
jae 0x414719
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 0x4146b0
jmp 0x4147f7
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 0x4147d2
cmp dword [ebp - 0x18], 0
je 0x4147d2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x423e00]
test byte [eax + edi + 0x28], 0x48
je 0x4147a8
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 0x41476c
mov word [esi], cx
jmp 0x4147a3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x423e00]
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 + 0x423e00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x423e00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4147f7
pop eax
cmp word [ebp - 4], ax
jne 0x4147b8
cmp esi, ebx
jne 0x4147b8
mov word [esi], ax
jmp 0x4147f4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041499d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4147f7
push 0xd
pop eax
jmp 0x4147b3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x423e00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4147f1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4147f7
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret