joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497a10
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x4be460]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp], 0x4a24d0
call sym._pthread_mutex_init
mov dword [esp], str.GLIBCXX_TUNABLES
mov dword [0x4a24d4], 0
mov dword [0x4a24d8], 0
mov dword [0x4a24dc], 0
call sym._getenv
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], str.obj_size
mov ebx, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 9
mov dword [esp + 0x24], str.obj_count
mov dword [esp + 0x28], 0x40
test eax, eax
jne 0x497ab6
jmp 0x497b87
mov dword [esp], ebx
mov dword [esp + 4], 0x3a
call sym._strchr
mov ebx, eax
test eax, eax
je 0x497b30
xor eax, eax
cmp byte [ebx], 0x3a
sete al
add ebx, eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
xor eax, 0x62696c67
xor edx, 0x2e787863
or eax, edx
jne 0x497aa0
mov eax, dword [ebx + 7]
mov edx, dword [ebx + 0xb]
xor eax, 0x5f68652e
xor edx, 0x6c6f6f70
or eax, edx
jne 0x497aa0
cmp byte [ebx + 0xf], 0x2e
jne 0x497aa0
add ebx, 0x10
lea esi, [esp + 0x14]
lea ebp, [esp + 0x2c]
mov edi, dword [esi]
mov eax, dword [esi + 4]
test edi, edi
je 0x497b17
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._memcmp
test eax, eax
jne 0x497b21
cmp byte [ebx + edi], 0x3d
je 0x497bb5
add esi, 0xc
cmp esi, ebp
jne 0x497afa
jmp 0x497aa0
mov eax, dword [esp + 0x28]
mov edx, 0x100
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
cmove eax, ecx
add eax, 0x2c
imul eax, edx
lea ebx, [eax*4]
mov dword [0x4a24dc], ebx
test ebx, ebx
jne 0x497b96
mov dword [esp], sym.___tcf_0
call dbg.atexit
mov eax, dword [esp + 0x2c]
sub eax, dword [0x4be460]
jne 0x497c00
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x4a24dc], 0x3200
mov ebx, 0x3200
mov dword [esp], ebx
call sym._malloc
mov dword [0x4a24d8], eax
test eax, eax
je 0x497bf3
xor edx, edx
mov dword [0x4a24d4], eax
mov dword [eax], ebx
mov dword [eax + 4], edx
jmp 0x497b63
lea eax, [esp + 0x10]
xor ebp, ebp
mov dword [esp + 4], eax
lea eax, [ebx + edi + 1]
mov dword [esp + 8], ebp
mov dword [esp], eax
call sym._strtoul
mov ebx, dword [esp + 0x10]
movzx edx, byte [ebx]
cmp dl, 0x3a
je 0x497be3
test dl, dl
jne 0x497aa0
test eax, eax
js 0x497aa0
mov dword [esi + 8], eax
jmp 0x497aa0
xor ecx, ecx
mov dword [0x4a24dc], ecx
jmp 0x497b63
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x463c80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x447015
lea edi, [esi - 0x46015]
push edi
or ebp, 0xffffffff
jmp 0x463ca2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x463ca9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x463c98
mov eax, 1
add ebx, ebx
jne 0x463cbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x463cb0
jne 0x463ccc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x463cb0
xor ecx, ecx
sub eax, 3
jb 0x463ce0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x463d52
mov ebp, eax
add ebx, ebx
jne 0x463ceb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x463cf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x463d1c
inc ecx
add ebx, ebx
jne 0x463d08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x463cfd
jne 0x463d19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x463cfd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x463d3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x463d2d
jmp 0x463c9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x463d3c
add edi, ecx
jmp 0x463c9e
pop esi
mov edi, esi
mov ecx, 0x18
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x463d5a
cmp byte [edi], 2
jne 0x463d5a
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 0x463d5f
lea edi, [esi + 0x61000]
mov eax, dword [edi]
or eax, eax
je 0x463dce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x63000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x63080]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x463d8c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x63088]
or eax, eax
je 0x463dc8
mov dword [ebx], eax
add ebx, 4
jmp 0x463da9
call dword [esi + 0x63084]
mov ebp, dword [esi + 0x6308c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x463e02
sub esp, 0xffffff80
jmp 0x40129c
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003475d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.10006650
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.10006650
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10006650
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700

Function at 0x4011f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40414d], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.trast
push str.bask
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401238
xor eax, eax
jmp 0x401253
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4025a0
Capabilities:
Terminate process

Disassembly:
mov ecx, 0x404240
push ecx
jmp fcn.004025ab
Function at 0x403252
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x4026b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
test eax, eax
je 0x40328f
push 0x4026d0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40328f
push ebx
push ebx
push 1
push ebx
mov ecx, esi
call dword [0x410158]
call esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebx
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [0x40e53c], ecx
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, eax
call fcn.004037f2
mov esi, dword [ebp + 8]
neg al
mov edi, dword [ebp + 0xc]
sbb al, al
inc al
mov byte [ebp - 1], al
cmp esi, 2
jne 0x403309
mov edx, dword [edi + 4]
mov ecx, ebx
movzx eax, byte [edx + ecx]
mov esi, 0x4026e4
cmp al, byte [esi + ecx]
mov esi, dword [ebp + 8]
jne 0x4032ec
inc ecx
cmp ecx, 3
jne 0x4032d3
jmp 0x4032ff
cmp byte [edx], 0x2f
jne 0x40331b
cmp byte [edx + 1], 0x3f
jne 0x40331b
movzx eax, byte [edx + 2]
test al, al
jne 0x40331b
mov edx, 0x4028b8
jmp 0x40342f
cmp esi, 1
jg 0x40331b
xor ecx, ecx
mov edx, 0x4028b8
inc ecx
jmp 0x403431
mov ecx, dword [edi + 4]
mov al, byte [ecx]
cmp al, 0x2d
je 0x403338
cmp al, 0x2f
je 0x403338
xor ecx, ecx
mov edx, 0x4028b8
inc ecx
call fcn.004035f0
mov ecx, dword [edi + 4]
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 8], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x403340
sub edx, dword [ebp - 8]
cmp edx, 2
je 0x40335f
xor ecx, ecx
mov edx, 0x4028b8
inc ecx
call fcn.004035f0
mov ecx, dword [edi + 4]
mov al, byte [ecx + 1]
cmp al, 0x61
je 0x4033e1
cmp al, 0x67
jne 0x40330e
cmp byte [ebp - 1], bl
jne 0x403379
cmp esi, 5
je 0x403383
cmp esi, 6
jmp 0x403381
cmp esi, 6
je 0x403383
cmp esi, 7
jne 0x40330e
mov eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, ebx
mov dword [ebp - 8], eax
cmp esi, 6
jne 0x4033cc
push 0x4026f0
push dword [edi + 0x14]
call fcn.00403de0
pop ecx
pop ecx
test eax, eax
je 0x4033ba
mov eax, dword [ebp - 8]
or ebx, 0xffffffff
jmp 0x4033cc
mov ecx, dword [edi + 0x14]
call fcn.0040343b
mov ecx, dword [edi + 0x14]
mov ebx, eax
call fcn.004034cf
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0xc]
call fcn.004038df
add esp, 0xc
jmp 0x40342a
cmp byte [ebp - 1], bl
jne 0x4033f0
cmp esi, 4
je 0x4033fe
cmp esi, 5
jmp 0x4033f8
cmp esi, 5
je 0x4033fe
cmp esi, 6
jne 0x40330e
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp esi, 5
jne 0x40341f
mov ecx, dword [edi + 0x10]
call fcn.0040343b
mov ecx, dword [ebp - 0x10]
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov edx, ecx
mov ecx, eax
push ebx
call fcn.0040399e
pop ecx
mov edx, 0x4026e8
xor ecx, ecx
call fcn.004035f0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035f0
Capabilities:
Accept command line arguments
Terminate process
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
je 0x403698
xor esi, esi
test ebx, ebx
jne 0x403614
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x403662
mov dword [ebp - 4], 0x40273c
js 0x403624
mov dword [ebp - 4], 0x40274c
push 0x1000
call fcn.00403c3a
mov esi, eax
pop ecx
test esi, esi
jne 0x40363a
pop edi
pop esi
pop ebx
leave
ret
push edi
push ebx
push dword [ebp - 4]
push 0x1000
push esi
call fcn.004031f0
add esp, 0x14
test eax, eax
jns 0x403659
xor eax, eax
mov byte [esi], 0
inc eax
jmp 0x403660
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, esi
mov ecx, dword [0x40e53c]
push 0
test ecx, ecx
je 0x40367d
lea edx, [ebp - 4]
push edx
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40368d
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test esi, esi
je 0x403698
push esi
call fcn.00403d34
pop ecx
call dword [sym.imp.msi.dll_MsiConfigureFeatureA]
xor eax, eax
test ebx, ebx
setne al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40373d
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
or dword [ebp - 8], 0xffffffff
mov eax, ecx
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x18], edx
push ecx
xor edi, edi
mov dword [ebp - 0x10], eax
push eax
mov esi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
je 0x4037c0
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x403783
push 8
pop edi
or ebx, 0xffffffff
jmp 0x4037d6
push esi
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4037c0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0x402780
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x4037c8
cmp dword [ebp - 0x14], edi
je 0x4037c8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
jmp 0x4037cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or ebx, 0xffffffff
test esi, esi
je 0x4037d6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4037df
mov dword [eax], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4037eb
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404492
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call fcn.004042dd
mov esi, eax
test esi, esi
je 0x40460f
push 0x4012e4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4012f0
push esi
mov dword [0x40db4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4012fc
push esi
mov dword [0x40db50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401308
push esi
mov dword [0x40db54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x40db4c], 0
mov dword [0x40db58], eax
je 0x404508
cmp dword [0x40db50], 0
je 0x404508
cmp dword [0x40db54], 0
je 0x404508
test eax, eax
jne 0x404530
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x40db50], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x40db54], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x40db4c], 0x404050
mov dword [0x40db58], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x40d580], eax
cmp eax, 0xffffffff
je 0x404614
push dword [0x40db50]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x404614
call fcn.00404842
push dword [0x40db4c]
call fcn.00404102
push dword [0x40db50]
mov dword [0x40db4c], eax
call fcn.00404102
push dword [0x40db54]
mov dword [0x40db50], eax
call fcn.00404102
push dword [0x40db58]
mov dword [0x40db54], eax
call fcn.00404102
add esp, 0x10
mov dword [0x40db58], eax
call fcn.00406e75
test eax, eax
je 0x40460f
push 0x404180
push dword [0x40db4c]
call fcn.0040408d
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x410158]
call esi
mov dword [0x40d57c], eax
cmp eax, 0xffffffff
je 0x40460f
push 0x214
push 1
call fcn.00406edc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40460f
push edi
push dword [0x40d57c]
push dword [0x40db54]
call fcn.0040408d
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x410158]
call esi
test eax, eax
jne 0x404619
push edi
call fcn.00406877
pop ecx
call fcn.0040462c
xor eax, eax
pop edi
pop esi
ret
push 0
push edi
call fcn.004043b9
pop ecx
pop ecx
or dword [edi + 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x404616
Function at 0x404a91
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
cmp edi, dword [esi*8 + section..text]
je 0x404ab0
inc esi
cmp esi, 0x17
jb 0x404aa1
cmp esi, 0x17
jae 0x404bf0
push 3
call fcn.00407ede
pop ecx
cmp eax, 1
je 0x404bba
push 3
call fcn.00407ede
pop ecx
test eax, eax
jne 0x404ae3
cmp dword [0x40d560], 1
je 0x404bba
cmp edi, 0xfc
je 0x404bf0
push 0x4018e0
push 0x314
mov edi, 0x40db90
push edi
call fcn.00407def
add esp, 0xc
test eax, eax
je 0x404b18
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004067d1
add esp, 0x14
push 0x104
push 0x40dba9
push ebx
mov byte [0x40dcad], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404b5b
push 0x4018fc
push 0x2fb
push 0x40dba9
call fcn.00407def
add esp, 0xc
test eax, eax
je 0x404b5b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004067d1
add esp, 0x14
push 0x401914
push 0x314
push edi
call fcn.00407e5f
add esp, 0xc
test eax, eax
je 0x404b7f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004067d1
add esp, 0x14
push dword [esi*8 + 0x401004]
push 0x314
push edi
call fcn.00407e5f
add esp, 0xc
test eax, eax
je 0x404ba5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004067d1
add esp, 0x14
push 0x12010
push 0x401918
push edi
call fcn.00407f2d
add esp, 0xc
jmp 0x404bf0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, eax
test edx, edx
je 0x404bf0
cmp edx, 0xffffffff
je 0x404bf0
mov esi, dword [esi*8 + 0x401004]
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404bd9
push ebx
lea eax, [ebp - 4]
sub ecx, edi
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405345
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x4053d7
xor edx, edx
push esi
mov esi, edi
cmp word [edi], dx
je 0x40537a
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x405375
add esi, 2
movzx ecx, word [esi]
test cx, cx
jne 0x405362
push ebx
push edx
push edx
push edx
sub esi, edi
push edx
sar esi, 1
inc esi
push esi
push edi
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
je 0x4053cc
push eax
call fcn.00405765
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4053cc
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push ebx
push esi
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4053c1
push ebx
call fcn.00406877
pop ecx
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x4053d5
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret
Function at 0x407950
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40798e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407986
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407990
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407976
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407a60
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407a91
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407a91
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407a91
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret