joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428ea0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464e7d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x47e700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 4], 0
call fcn.00428800
mov edx, eax
test edx, edx
jne 0x428edf
xor ecx, ecx
jmp 0x428ef3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428ee4
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x480164
call fcn.004095e0
lea eax, [ebp + 8]
mov dword [0x480140], 1
push str.TRUE
push eax
mov dword [0x48013c], 0
call fcn.00410de0
add esp, 8
test al, al
je 0x428f32
mov dword [0x480144], 1
call fcn.00429200
or edi, 0xffffffff
test al, al
je 0x429028
cmp dword [0x4801d0], 0
je 0x428f60
push ecx
mov ecx, esp
push 0x469c48
call fcn.004015b0
call fcn.00429060
add esp, 4
push 0
push 0
push 0x428110
call fcn.0044c781
add esp, 0xc
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4801d0], 0
je 0x42900b
cmp dword [0x480148], 0
je 0x429014
push 0x96
lea eax, [ebp - 0x14]
mov ecx, 0x480160
push eax
call fcn.0040f620
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040b340
mov edx, dword [ebp - 0x14]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428fd4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov eax, esp
lea ecx, [ebp - 0x10]
push ecx
push 0x469c4c
push eax
call fcn.0040c5f0
add esp, 0xc
call fcn.00416880
mov edx, dword [ebp - 0x10]
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42900b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x480148], 0
jne 0x429021
cmp dword [0x48014c], 0
jne 0x429021
push 0
jmp 0x429023
push 0xffffffffffffffff
call fcn.00428830
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x429040
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42a87d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x42a8a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42a8ad
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.0040c5e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004350de
int3
Function at 0x42ab88
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x42ab99
xor eax, eax
jmp 0x42abb5
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42abba
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.0040c5e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004350de
int3

Function at 0x42ac58
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x4665bc]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x42ac8b
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.0040c5e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004350de
int3

Function at 0x42ad64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x42ad8f
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42ad95
cmp dword [ebp - 4], esi
jne 0x42adac
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.0040c5e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004350de
lea ecx, [edi + 0xc]
call fcn.0040c5e0
push eax
push 0xffffffffffffffff
push 0xd
call fcn.00434d34
int3
Function at 0x433eb7
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov edx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
inc eax
push edi
xor edi, edi
mov dword [ebp - 8], edx
inc edi
mov dword [ebp - 4], eax
lea ebx, [ecx + 0xc]
cmp dword [ecx + 8], edi
jle 0x433f33
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x433ef8
mov eax, dword [edx + 0x10]
cmp dword [eax + edi*8 + 4], esi
je 0x433ef8
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x433f26
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x433f29
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x433f20
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4665bc]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
and dword [eax + edi*4], 0
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 8]
jl 0x433edc
test eax, eax
je 0x433f7a
lea esi, [edx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add ecx, 0x14
push edi
call fcn.00434191
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4665bc]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4341e3
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x4655e8
call fcn.004388a8
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4342da
cmp edi, dword [ebx + 0xc]
jge 0x4342da
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x43423a
cmp edi, dword [esi + 8]
jl 0x4342c8
cmp dword [ebp + 0xc], 0
je 0x4342c8
xor edi, edi
jmp 0x43426c
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.00433c9b
mov esi, eax
test esi, esi
je 0x434254
mov dword [esi], vtable.CThreadData.0
jmp 0x434256
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.0042a19e
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x434288
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x434294
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x434301
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.0043d3f0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4342da
cmp edi, dword [esi + 8]
jge 0x4342da
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0043880d
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00429c27
int3
Function at 0x43546e
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x47e700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.0043d3f0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.0044c976
push eax
call fcn.00402f40
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x46b1fc]
je 0x4355cc
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4355e0
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4355e0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x43552a
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x43551e
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.00435275
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x435525
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43552c
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004355e4
test eax, eax
je 0x435553
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004350fc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x435557
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004355e4
test eax, eax
je 0x43557e
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004350fc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x435582
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004355e4
test eax, eax
je 0x4355aa
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004350fc
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4355ac
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4355be
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4355cc
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438287
leave
ret 4
xor eax, eax
jmp 0x4355cf

Function at 0x438ffc
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x439900
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43985f
xor esi, esi
jmp 0x439900
cmp eax, 3
je 0x439870
push 0
push edi
call fcn.00439908
test eax, eax
jne 0x439858
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x4398ed
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x439889
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x439882
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x4398ed
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0043982f
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x4398ff
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4398e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x4398da
xor esi, esi
inc esi
jmp 0x4398ff
test esi, esi
jle 0x4398ff
movzx esi, si
or esi, 0x80070000
jmp 0x4398ff
xor esi, esi
jmp 0x4398ff
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work66_s_srclibsdutildirutil.cpp
call fcn.004392be
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43992c
test al, 0x10
je 0x43992c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x439929
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x43bce8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x43bd09
jl 0x43bd00
test edi, edi
jne 0x43bd09
xor eax, eax
xor edx, edx
jmp 0x43bdca
cmp dword [ebx + 0x38], 0
je 0x43bd1e
push eax
push edi
push dword [ebp + 8]
call fcn.0043bdd0
jmp 0x43bdca
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x43bd65
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x43bd65
cmp eax, edi
jb 0x43bd3f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0043ce70
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x43bd6b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x43bdbf
mov ecx, ebx
call fcn.0043b4a8
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x43bdaa
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00450e06
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x43bdbf
jmp 0x43bd7d
test edx, edx
je 0x43bdbf
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00450e06
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x43bebf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x43bee1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043bfa4
jmp 0x43bf9f
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x43bf07
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x43bf0c
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x43bf6c
jg 0x43bf21
test esi, esi
je 0x43bf6c
test ecx, ecx
jl 0x43bf67
jg 0x43bf2b
test eax, eax
je 0x43bf67
cmp edi, ecx
jg 0x43bf3d
jl 0x43bf35
cmp esi, eax
jae 0x43bf3d
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.0043ce70
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x43bf6f
mov ecx, dword [ebp + 8]
jmp 0x43bf79
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x43bf93
jg 0x43bf79
test esi, esi
je 0x43bf93
cmp dword [ebx + 0x4c], 0
je 0x43bf93
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0044a132
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x45b04d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045aec3

Function at 0x461790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4617bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4617bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407258
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a500
test esi, esi
jne 0x40728e
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.0040a688
jmp 0x4072ac
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040719c
mov edi, eax
test esi, esi
je 0x4072ac
cmp dword [ebx], 0
je 0x4072ac
dec esi
jmp 0x407295
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x409114
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004095d4
mov byte [esp], al
cmp byte [esp], 0
jne 0x40929d
test edi, edi
je 0x40929d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4091dd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4091b8
cmp edi, 0xffffffff
je 0x409179
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409179
mov byte [esp], 0
jmp 0x40929d
cmp dword [esi], 1
jg 0x4091b8
cmp dword [esi], 0
jne 0x4091aa
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4091aa
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40929d
lea eax, [esp + 0xc]
call fcn.00408dd0
dec ebp
test ebp, ebp
jg 0x40915e
cmp edi, 0xffffffff
je 0x4091dd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4091db
mov byte [esp], 0
jmp 0x40929d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409122
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4091dd
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409318
mov edx, eax
mov ebx, dword [0x75d8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409241
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40923f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409241
xor edi, edi
cmp byte [esp], 0
je 0x409267
mov ebx, dword [esi]
test bl, 1
jne 0x40927d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409247
mov byte [esp + 1], 1
jmp 0x40927d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409267
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4091f4
cmp byte [esp], 0
je 0x40929d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a15c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x75d05c], 0
je 0x40a1c3
cmp word [0x75d348], 0xd7b2
jne 0x40a185
cmp dword [0x75d350], 0
jbe 0x40a185
mov eax, 0x75d344
call dword [0x75d360]
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
mov eax, 0x40a1f0
call fcn.0040ae5c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x750032], 0
jne 0x40a1df
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a3c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x750034], 0
je 0x40a3eb
mov edx, edi
mov eax, esi
call dword [0x750034]
mov ebx, eax
jmp 0x40a3fc
mov eax, 8
call fcn.00406ed8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x75d05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a388
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a42c
mov eax, ebx
call fcn.00406ef4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40dae4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40dc49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a500
cmp si, word [0x750a10]
jb 0x40db7c
cmp si, word [0x750c10]
ja 0x40db7c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40db7c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x750a10]
jae 0x40db56
mov edi, ebx
dec edi
jmp 0x40db77
cmp si, word [ebx*8 + 0x750a10]
jbe 0x40db66
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40db77
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x750a14]
call fcn.0040da04
jmp 0x40db7c
cmp edi, dword [ebp - 8]
jae 0x40db40
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40dc2b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40dc2b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b2c0
push dword [ebp - 0x160]
push 0x40dc64
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b2c0
push dword [ebp - 0x164]
push 0x40dc74
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b2c0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b4f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc50
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a560
ret
Function at 0x40ddfc
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 0x40df00
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x75fc14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x75fc2c]
jne 0x40de48
mov eax, esi
mov edx, 0x75fc2e
mov ecx, 0x55
call fcn.0040b2c0
push 0x75fc14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40deea
push 0x75fc14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a500
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40deb7
cmp byte [0x75fc10], 0
je 0x40de7c
mov edx, esi
mov eax, ebx
call fcn.0040dce0
jmp 0x40deb7
mov edx, esi
mov eax, ebx
call fcn.0040dae4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40deb7
cmp dword [esi], 0
je 0x40dea0
mov eax, esi
mov edx, 0x40df18
call fcn.0040b418
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dae4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b418
push 0x75fc14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x75fc2c], bx
mov eax, dword [esi]
call fcn.0040b204
mov ecx, eax
mov eax, 0x75fc2e
mov edx, 0xaa
call fcn.0040d964
push 0x75fc14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df07
lea eax, [ebp - 4]
call fcn.0040a500
ret