joyce8/EMBER2024-capa huggingface dataset:
Function at 0x592ae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x80b088]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x592c25
sub esp, 0x70
mov ecx, dword [edx + 8]
mov dword [esp + 0x44], ecx
mov ebx, dword [edx + 0x14]
mov dword [esp + 0x40], ebx
mov ebp, dword [edx + 4]
mov dword [esp + 0x68], ebp
mov esi, dword [edx + 0x10]
mov dword [esp + 0x64], esi
mov edi, dword [edx + 0x1c]
mov dword [esp + 0x38], edi
mov eax, dword [edx + 0x20]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x5c], eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x30], eax
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x34], edx
lea edx, [ecx - 1]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
jmp 0x592be7
mov dword [esp + 0x3c], edx
lea ecx, [esi + edx*8]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x24], ebp
call sym.go_types._Context_.update
mov eax, dword [esp + 0x3c]
lea edx, [eax - 1]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
mov ebp, esi
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
test edx, edx
jl 0x592bfd
cmp edx, ecx
jae 0x592c1d
mov ebp, dword [ebp + edx*4]
cmp edx, ebx
jb 0x592b5e
jmp 0x592c14
mov eax, dword [esp + 0x48]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x80], eax
add esp, 0x70
ret
mov eax, edx
mov ecx, ebx
call sym.runtime.panicIndex
mov eax, edx
call sym.runtime.panicIndex
nop
call sym.runtime.morestack
jmp sym.go_types._Checker_.instance.func1
Function at 0x5ca420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x80b088]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5ca5f0
sub esp, 0x34
mov dword [esp], 0
lea eax, [0x63ef02]
mov dword [esp + 4], eax
mov dword [esp + 8], 9
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
call sym.runtime.concatstring2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
cmp dword [ebx + 0x70], edx
jne 0x5ca57d
mov ebp, dword [ebx + 0x74]
cmp ebp, 0x39
jne 0x5ca4c7
cmp dword [ebx + 0x7c], 1
jne 0x5ca4c7
mov esi, dword [ebx + 0x78]
cmp byte [esi], 0xa
jne 0x5ca4c7
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
lea eax, [0x640fb7]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0xf
call sym.runtime.concatstring2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x5ca575
lea esi, [ebp - 3]
cmp esi, 7
ja 0x5ca50d
mov edx, dword [ebx + 0x78]
mov ebp, dword [ebx + 0x7c]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
lea eax, [0x63ea75]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebp
call sym.runtime.concatstring3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x5ca575
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov dword [esp], ebp
call sym.github.com_goplus_gop_token.Token.String
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], edx
lea edx, [0x63ef0b]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 9
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
lea eax, [0x68a634]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 1
call sym.runtime.concatstring4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
movzx ebp, byte [0x80af3f]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5ca5d8
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov edx, dword [0x7ddd60]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call sym.github.com_qiniu_x_log._Logger_.Output
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call sym.github.com_goplus_gop_parser._parser_.error
add esp, 0x34
ret
call sym.runtime.morestack_noctxt
jmp sym.github.com_goplus_gop_parser._parser_.errorExpected
Function at 0x5ca920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x80b088]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5caa8c
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x74]
cmp ecx, 0x34
je 0x5caa83
mov edx, dword [esp + 0x3c]
cmp edx, ecx
je 0x5caa7a
cmp ecx, 0x39
jne 0x5ca9bc
cmp dword [eax + 0x7c], 1
jne 0x5ca9af
mov ecx, dword [eax + 0x78]
cmp byte [ecx], 0xa
je 0x5ca973
mov ecx, 0xb
lea edx, [0x63f9cc]
jmp 0x5ca9c7
mov dword [esp], 0
lea eax, [0x63f9cc]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xb
lea eax, [0x640fc6]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0xf
call sym.runtime.concatstring2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, eax
jmp 0x5ca9c7
mov ecx, 0xb
lea edx, [0x63f9cc]
jmp 0x5ca9c7
mov ecx, 0xb
lea edx, [0x63f9cc]
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
lea eax, [0x63dc52]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 4
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
call sym.runtime.concatstring3
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x30]
mov ebx, dword [edx + 0x70]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call sym.github.com_goplus_gop_parser._parser_.error
movzx eax, byte [0x80af3f]
test al, al
je 0x5caa71
mov eax, dword [0x7ddd60]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 2
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
call sym.github.com_qiniu_x_log._Logger_.Output
mov byte [esp + 0x40], 1
add esp, 0x2c
ret
mov byte [esp + 0x40], 0
add esp, 0x2c
ret
mov byte [esp + 0x40], 1
add esp, 0x2c
ret
call sym.runtime.morestack_noctxt
jmp sym.github.com_goplus_gop_parser._parser_.atComma
Function at 0x5e1f20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x80b088]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5e20c1
sub esp, 0x54
mov edx, dword [esp + 0x68]
test edx, edx
je 0x5e1f56
mov edx, dword [esp + 0x6c]
test edx, edx
jbe 0x5e20b7
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x5e1f5a
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], eax
nop
nop
lea edx, [0x61e8e0]
mov dword [esp], edx
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
mov dword [eax + 0x18], 1
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x10], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x14], ebx
movzx ebp, byte [esp + 0x64]
xchg ebp, eax
mov byte [esp + 0x18], al
xchg ebp, eax
mov byte [esp + 0x19], 1
call sym.github.com_goplus_gop_format.parse
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
test eax, eax
jne 0x5e2085
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
test eax, eax
jne 0x5e2005
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.github.com_goplus_gop_ast.SortImports
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
mov ebx, dword [0x7b26f8]
mov ebp, dword [0x7b26fc]
mov esi, dword [0x7b2700]
mov edi, dword [esp + 0x44]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
call sym.github.com_goplus_gop_format.format
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebp
add esp, 0x54
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x54
ret
xor eax, eax
mov ecx, eax
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.github.com_goplus_gop_format.Source
Function at 0x10001000
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
mov esi, ecx
mov dword [ebp - 4], 0
push 0x80000000
push esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000109b
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea esi, [edi + 1]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push 0
push eax
mov dword [ebp - 8], eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 8]
add esp, 0xc
test edi, edi
je 0x1000107d
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000108e
add esi, dword [ebp - 4]
sub edi, dword [ebp - 4]
jne 0x10001062
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
push str.Error_loading_file__s.
call fcn.10001130
push esi
push str.Error_opening_file__s.
call fcn.10001130
int3

Function at 0x100010b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 4
push 0
push 0
mov esi, ecx
mov edi, edx
push 2
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001116
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001109
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x100010e0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
push str.Error_writing_to_file__s.
call fcn.10001130
push esi
push str.Error_creating_file__s.
call fcn.10001130
int3
Function at 0x100011c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push 0x1000
push 0
call esi
push 0x80
push 0
mov edi, eax
call esi
mov ecx, dword [section..data]
mov esi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
test ecx, ecx
je 0x1000120b
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [edi], 0
je 0x1000120b
inc esi
cmp byte [esi], 0
jne 0x10001205
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.T:_d_
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esi], 0
je 0x10001238
inc esi
cmp byte [esi], 0
jne 0x10001232
mov eax, esi
sub eax, edi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_wvsprintfA]
add dword [ebp - 4], eax
push 0
push 0x80
push 4
push 0
push 3
push 4
push str.gglog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push esi
push edi
push eax
push 0x40
mov edi, ecx
mov dword [ebp - 4], edx
push ebx
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp eax, 0x10004740
je 0x10001c9e
nop dword [eax + eax]
push ebx
push eax
push edi
call sub.msvcrt.dll_memcpy
inc esi
add esp, 0xc
cmp esi, 5
je 0x10001c9e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
jmp 0x10001c80
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push dword [ebp + 0xc]
push str.Patch___Code_:__s___d__r_n
call fcn.100011c0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], edx
push eax
mov edi, ecx
xor ebx, ebx
push 0x40
push 4
push edi
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
cmp esi, eax
je 0x10001d06
mov ebx, 1
mov dword [edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 8]
cmp eax, str.9A7
je 0x10001d44
cmp eax, str.992
je 0x10001d44
cmp eax, str.9A0
je 0x10001d44
cmp eax, 0x100047a4
je 0x10001d44
push ebx
push eax
push str.Patch__Code_:__s___d__r_n
call fcn.100011c0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002b90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov ebx, ecx
xor edi, edi
lea ecx, [edi + ebx]
call fcn.10003710
add edi, eax
cmp edi, 6
jb 0x10002ba0
lea esi, [edi + 6]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push ebx
push eax
mov dword [ebp - 8], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, ebx
sub ecx, eax
sub ecx, 5
mov dword [eax + edi + 1], ecx
lea ecx, [ebp - 4]
push ecx
push 0x40
push esi
mov byte [eax + edi], 0xe9
mov byte [eax + edi + 5], 0xc3
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
call edi
lea eax, [ebp - 4]
mov dword [ebp - 0x14], 0xe9
push eax
push 0x40
push 6
push ebx
mov word [ebp - 0x10], 0xc300
call edi
test eax, eax
je 0x10002c5d
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub eax, ebx
sub eax, 5
push 0
mov dword [ebp - 0x13], eax
lea eax, [ebp - 0x14]
push 6
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10002c6e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 6
push ebx
call edi
test eax, eax
je 0x10002c7f
push 6
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
pop ebx
test eax, eax
je 0x10002c90
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_install_hook:_VirtualProtect_failed.___08x_
call fcn.10001130
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_install_hook:_WriteProcessMemory_failed.___08x_
call fcn.10001130
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_install_hook:_VirtualProtect_failed.___08x_
call fcn.10001130
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_install_hook:_FlushInstructionCache_failed.___08x_
call fcn.10001130
int3
Function at 0x407290
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.00409e60
test esi, esi
jne 0x4072c6
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.00409fe8
jmp 0x4072e4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004071d4
mov edi, eax
test esi, esi
je 0x4072e4
cmp dword [ebx], 0
je 0x4072e4
dec esi
jmp 0x4072cd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408a74
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.00408f34
mov byte [esp], al
cmp byte [esp], 0
jne 0x408bfd
test edi, edi
je 0x408bfd
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408b3d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408b18
cmp edi, 0xffffffff
je 0x408ad9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408ad9
mov byte [esp], 0
jmp 0x408bfd
cmp dword [esi], 1
jg 0x408b18
cmp dword [esi], 0
jne 0x408b0a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408b0a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408bfd
lea eax, [esp + 0xc]
call fcn.00408730
dec ebp
test ebp, ebp
jg 0x408abe
cmp edi, 0xffffffff
je 0x408b3d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408b3b
mov byte [esp], 0
jmp 0x408bfd
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408a82
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408b3d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408c78
mov edx, eax
mov ebx, dword [0x8b38fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408ba1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408b9f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408ba1
xor edi, edi
cmp byte [esp], 0
je 0x408bc7
mov ebx, dword [esi]
test bl, 1
jne 0x408bdd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ba7
mov byte [esp + 1], 1
jmp 0x408bdd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408bc7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408b54
cmp byte [esp], 0
je 0x408bfd
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 0x409abc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x8b305c], 0
je 0x409b23
cmp word [0x8b3348], 0xd7b2
jne 0x409ae5
cmp dword [0x8b3350], 0
jbe 0x409ae5
mov eax, 0x8b3344
call dword [0x8b3360]
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, 0x409b50
call fcn.0040a724
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x88a036], 0
jne 0x409b3f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409d20
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 [0x88a038], 0
je 0x409d4b
mov edx, edi
mov eax, esi
call dword [0x88a038]
mov ebx, eax
jmp 0x409d5c
mov eax, 8
call fcn.00406f10
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x8b305d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409ce8
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 0x409d8c
mov eax, ebx
call fcn.00406f2c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d014
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 0x40d179
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409e60
cmp si, word [0x88aa10]
jb 0x40d0ac
cmp si, word [0x88ac10]
ja 0x40d0ac
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d0ac
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x88aa10]
jae 0x40d086
mov edi, ebx
dec edi
jmp 0x40d0a7
cmp si, word [ebx*8 + 0x88aa10]
jbe 0x40d096
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d0a7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x88aa14]
call fcn.0040cf34
jmp 0x40d0ac
cmp edi, dword [ebp - 8]
jae 0x40d070
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d15b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d15b
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.0040aafc
push dword [ebp - 0x160]
push 0x40d194
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aafc
push dword [ebp - 0x164]
push 0x40d1a4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aafc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ad34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d180
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409ec0
ret