joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001dd90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x10], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x10], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], 0x67452301
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], 0xefcdab89
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x98badcfe
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x10021b40
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10020ff0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100f0024], 0
jne 0x10021b7d
cmp dword [0x100f0030], 0
je 0x10021b7d
mov eax, dword [0x100f0030]
mov dword [0x100f0024], eax
cmp dword [0x100f0024], 0
je 0x10021bfa
mov ecx, dword [0x100f0024]
cmp dword [ecx + 8], 0
je 0x10021bfa
mov edx, dword [0x100f0024]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x10021bfa
mov ecx, dword [0x100f0024]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x10021bfa
mov eax, dword [0x100f0024]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10021bc9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10021bd0
xor eax, eax
jmp 0x10021d19
mov ecx, dword [0x100f0024]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10021d19
mov edx, dword [0x100f0030]
mov dword [0x100f0024], edx
jmp 0x10021c16
mov eax, dword [0x100f0024]
mov ecx, dword [eax + 4]
mov dword [0x100f0024], ecx
cmp dword [0x100f0024], 0
je 0x10021c56
cmp dword [0x100f0024], 0
je 0x10021c54
mov edx, dword [0x100f0024]
cmp dword [edx + 8], 0
je 0x10021c54
mov eax, dword [0x100f0024]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10021c54
mov edx, dword [0x100f0024]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10021c54
jmp 0x10021bae
jmp 0x10021c08
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10021af0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10021d17
mov eax, dword [ebp - 0x18]
mov dword [0x100f0024], eax
mov ecx, dword [0x100f0024]
mov dword [ecx], 0x52727464
mov edx, dword [0x100f0024]
mov dword [edx + 8], 0
mov eax, dword [0x100f0024]
mov ecx, dword [0x100f0030]
mov dword [eax + 4], ecx
mov edx, dword [0x100f0024]
mov dword [0x100f0030], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100f0024]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10021ce7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10021d07
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x10021cde
mov eax, dword [0x100f0024]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x10021bae
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10021ee0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100f0034], eax
je 0x10021efe
mov eax, 0x10dd
jmp 0x10021fe1
mov eax, dword [0x100f002c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10021f7d
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10021f5a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10021f5a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10021d20
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10021f06
mov dword [0x100f002c], 0
call fcn.10021870
mov ecx, dword [0x100f0020]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10021fcb
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10021f95
mov dword [0x100f0020], 0
mov dword [0x100f0034], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10022510
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100f0038], 0
je 0x10022529
mov eax, dword [0x100f0038]
jmp 0x100225cb
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1002253b
xor eax, eax
jmp 0x100225cb
push 8
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10022593
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1002257c
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100f0038], eax
mov dword [0x100f001c], 0
mov eax, dword [ebp - 8]
jmp 0x100225cb
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100225ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1002255c
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100f0020]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100f0020], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100382f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x88], 0
je 0x10038340
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x88]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x88], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x100383d3
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x8c]
add ecx, 0x28
xor edx, edx
push edx
push ecx
call fcn.10027130
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
jne 0x100383a1
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
sub ecx, 1
xor esi, esi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x98]
cdq
push edx
push eax
push esi
push ecx
call fcn.100ced90
push edx
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.10025b90
add esp, 0x10
mov eax, 7
jmp 0x100383f6
mov edx, 0x28
shl edx, 0
add edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov ecx, 0x20
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], cx
mov eax, 1
mov ecx, dword [ebp - 4]
mov word [ecx + 0x1e], ax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100c3860
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d184b
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x100e7034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.100c3f00
add esp, 8
cmp byte [0x100ef901], 0
mov dword [ebp - 4], 0
je 0x100c3985
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [esi + 0x14], 0x10
jb 0x100c38f0
mov ecx, dword [esi]
jmp 0x100c38f2
mov ecx, esi
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push ecx
cmovae eax, dword [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x12c]
push str.__d._d._s._s___s_n
push eax
call fcn.100c4510
add esp, 0x1c
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x118], 0x10
jb 0x100c396a
push dword [ebp - 0x12c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
mov eax, dword [0x100ef908]
test eax, eax
jne 0x100c39b5
push 0x18
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [0x100ef908], eax
xorps xmm0, xmm0
movdqu xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x100ef908]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.100ca130
lea ecx, [ebp - 0x144]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
jne 0x100c39df
push eax
push eax
call fcn.100c34c0
add esp, 8
push dword [0x100ef908]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.100ca130
cmp dword [esi + 0x10], 0
mov edi, eax
je case.default.0x100c3a0d
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0xc]
call edx
mov ecx, dword [ebp + 8]
cmp ecx, eax
jg case.default.0x100c3a0d
cmp ecx, 3
ja case.default.0x100c3a0d
jmp dword [ecx*4 + 0x100c3a6c]
push esi
mov ecx, edi
call fcn.100c9bf0
jmp case.default.0x100c3a0d
push esi
mov ecx, edi
call fcn.100ca200
jmp case.default.0x100c3a0d
push esi
mov ecx, edi
call fcn.100ca6d0
jmp case.default.0x100c3a0d
push esi
mov ecx, edi
call fcn.100c9f30
cmp dword [ebp - 0x130], 0x10
jb 0x100c3a51
push dword [ebp - 0x144]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ce74b
mov esp, ebp
pop ebp
ret
Function at 0x100c4300
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1950
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100e7034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.100c4e80
add esp, 4
cmp dword [ebp + 0x18], 0
jle 0x100c44dc
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.10001870
call fcn.100c4740
add esp, 0x18
test al, al
je 0x100c437f
mov bl, 1
jmp 0x100c44de
call fcn.100c4ab0
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10008760
mov esi, eax
add esp, 0xc
lea eax, [ebp + 8]
cmp eax, esi
je 0x100c43cc
cmp dword [ebp + 0x1c], 8
jb 0x100c43af
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.100049e0
cmp dword [ebp - 0x14], 8
jb 0x100c43dd
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [ebp + 8]
push eax
call fcn.100c4950
mov ecx, dword [ebp + 0x18]
mov esi, 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
cmp ecx, esi
jbe 0x100c448d
cmp ecx, esi
jbe 0x100c44d1
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + esi*2], 0x5c
jne 0x100c4484
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.100081b0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.10001870
call fcn.100c4740
add esp, 0x18
test al, al
jne 0x100c446c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x100c4481
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp + 0x18]
inc esi
cmp ecx, esi
ja 0x100c4407
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call edi
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.10001870
call fcn.100c4740
add esp, 0x18
test al, al
je 0x100c44dc
mov bl, 1
jmp 0x100c44de
push str.invalid_string_position
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x100c44ef
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ce74b
mov esp, ebp
pop ebp
ret
Function at 0x100cc7a0
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d25f9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100e7034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.100068b0
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.100068b0
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.100068b0
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.100ce6d0
add esp, 4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.100ce440
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100cdf20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x100ef9fc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x100cdf74
push esi
push 0x10
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x100cdf4a
mov ecx, eax
call fcn.100cd6e0
mov esi, eax
jmp 0x100cdf4c
xor esi, esi
push dword [0x100ef9fc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100cdf64
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x100ef9fc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a1004]
jne 0x40100a
repz ret
jmp fcn.004015a1

Function at 0x409543
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004031c9
and dword [ebp - 4], 0
cmp dword [0x4a3284], 0
mov ebx, eax
jne 0x4095f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4096a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4096a5
push eax
call fcn.00403157
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a3284], eax
call esi
push eax
call fcn.00403157
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a3288], eax
call esi
push eax
call fcn.00403157
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a328c], eax
call esi
push eax
call fcn.00403157
pop ecx
mov dword [0x4a3294], eax
test eax, eax
je 0x4095f4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403157
pop ecx
mov dword [0x4a3290], eax
mov eax, dword [0x4a3290]
cmp eax, ebx
je 0x40964c
cmp dword [0x4a3294], ebx
je 0x40964c
push eax
call fcn.004031d2
push dword [0x4a3294]
mov esi, eax
call fcn.004031d2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40964c
test edi, edi
je 0x40964c
call esi
test eax, eax
je 0x409643
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409643
test byte [ebp - 0xc], 1
jne 0x40964c
or dword [ebp + 0x10], 0x200000
jmp 0x409685
mov eax, dword [0x4a3288]
cmp eax, ebx
je 0x409685
push eax
call fcn.004031d2
pop ecx
test eax, eax
je 0x409685
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409685
mov eax, dword [0x4a328c]
cmp eax, ebx
je 0x409685
push eax
call fcn.004031d2
pop ecx
test eax, eax
je 0x409685
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a3284]
call fcn.004031d2
pop ecx
test eax, eax
je 0x4096a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4096a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404548
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040684c
test esi, esi
jne 0x404580
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406988
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405dc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f1050], 0
je 0x405e29
cmp word [0x4f132c], 0xd7b2
jne 0x405df1
cmp dword [0x4f1334], 0
jbe 0x405df1
mov eax, 0x4f1328
call dword [0x4f1344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405e54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ee030], 0
jne 0x405e45
push 0
push 0x4ee794
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fd4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4ee034], 0
je 0x405ffa
mov edx, esi
mov eax, ebx
call dword [0x4ee034]
jmp 0x406009
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4f1051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f9c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408614
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40877b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040684c
cmp si, word [0x4ee7dc]
jb 0x4086ae
cmp si, word [0x4ee9dc]
ja 0x4086ae
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4086ae
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4ee7dc]
jae 0x408688
mov edi, ebx
dec edi
jmp 0x4086a9
cmp si, word [ebx*8 + 0x4ee7dc]
jbe 0x408698
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4086a9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4ee7e0]
call fcn.00408524
jmp 0x4086ae
cmp edi, dword [ebp - 0xc]
jae 0x408672
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40875d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40875d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a34
push dword [ebp - 0x164]
push 0x408798
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a34
push dword [ebp - 0x168]
push 0x4087a8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a34
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406dec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408782
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406844
ret
Function at 0x408934
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408a39
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f3b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4f3b70]
jne 0x408980
mov eax, esi
mov edx, 0x4f3b74
mov ecx, 0x55
call fcn.00406a34
push 0x4f3b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408a23
push 0x4f3b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.0040684c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089f1
cmp byte [0x4f3b54], 0
je 0x4089b6
mov edx, esi
mov eax, ebx
call fcn.00408814
jmp 0x4089f1
mov edx, esi
mov eax, ebx
call fcn.00408614
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4089f1
cmp dword [esi], 0
je 0x4089da
mov eax, esi
mov edx, 0x408a54
call fcn.00406c48
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408614
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c48
push 0x4f3b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4f3b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.004068d8
push eax
push 0x4f3b74
call sub.kernel32.dll_lstrcpynW
push 0x4f3b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a40
lea eax, [ebp - 4]
call fcn.0040683c
ret