joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402baa
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
mov eax, dword [0x40ea9c]
mov ecx, dword [0x40eaa0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi + 0xa4], 0
push edi
mov edi, dword [esi + 0x34]
mov dword [esp + 0x18], eax
mov dword [0x40ea94], eax
mov dword [0x40ea98], ecx
je 0x402c15
push str.80_49_126_64_64_62_106_25_96_88_90_60
call fcn.004010dd
pop ecx
push eax
push str.77_29_94_122_112_19_53_106_34_80_89_51
call fcn.004010dd
pop ecx
push eax
call ebp
push eax
call ebx
push 0x40
push 0x1000
push dword [esi + 0x50]
push 0
call eax
mov edi, eax
push str.80_49_126_64_64_62_106_8_126_91_65_58_101_44
call fcn.004010dd
pop ecx
push eax
push str.77_29_94_122_112_19_53_106_34_80_89_51
call fcn.004010dd
pop ecx
push eax
call ebp
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x40
push dword [esi + 0x50]
push edi
call eax
push dword [esi + 0x50]
push edi
call fcn.00402b11
push dword [esi + 0x54]
mov eax, dword [esp + 0x24]
mov ecx, edi
call fcn.00402809
movzx eax, word [esi + 0x14]
and dword [esp + 0x20], 0
xor ecx, ecx
add esp, 0xc
lea eax, [eax + esi + 0x18]
cmp cx, word [esi + 6]
jae 0x402ca2
lea ecx, [eax + 0x14]
mov dword [esp + 0x10], ecx
jmp 0x402c7b
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push dword [ecx - 4]
mov ecx, dword [ecx - 8]
add eax, dword [esp + 0x1c]
add ecx, edi
call fcn.00402809
movzx eax, word [esi + 6]
inc dword [esp + 0x18]
add dword [esp + 0x14], 0x28
pop ecx
cmp dword [esp + 0x14], eax
jb 0x402c77
push str.65_61_120_121_90_59_115_52_105_124_84_49_98_52_105_99
call fcn.004010dd
pop ecx
push eax
push str.77_29_94_122_112_19_53_106_34_80_89_51
call fcn.004010dd
pop ecx
push eax
call ebp
push eax
call ebx
push 0
call eax
push edi
mov eax, esi
call fcn.004020c6
push edi
mov eax, esi
call fcn.00402135
mov esi, dword [esi + 0x28]
push str.71_60_104_98_80_60_114_55_126_81_81_26_126_59_105_68_65_54_105_54_68_85_91_59_106_61_126
add esi, edi
call fcn.004010dd
add esp, 0xc
push eax
push str.77_29_94_122_112_19_53_106_34_80_89_51
call fcn.004010dd
pop ecx
push eax
call ebp
push eax
call ebx
push 0x402b39
push 1
call eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x402f38
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d03c]
jne 0x402f42
repz ret
jmp fcn.00403a32
Function at 0x403a48
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push eax
xor eax, eax
mov eax, ebx
jmp 0x403a41
nop
nop
jmp 0x403a48
pop eax
sub esp, 0x328
mov dword [0x40dd88], eax
mov dword [0x40dd84], ecx
mov dword [0x40dd80], edx
mov dword [0x40dd7c], ebx
mov dword [0x40dd78], esi
mov dword [0x40dd74], edi
mov word [0x40dda0], ss
mov word [0x40dd94], cs
mov word [0x40dd70], ds
mov word [0x40dd6c], es
mov word [0x40dd68], fs
mov word [0x40dd64], gs
pushfd
pop dword [0x40dd98]
mov eax, dword [ebp]
mov dword [0x40dd8c], eax
mov eax, dword [ebp + 4]
mov dword [0x40dd90], eax
lea eax, [ebp + 8]
mov dword [0x40dd9c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x40dcd8], 0x10001
mov eax, dword [0x40dd90]
mov dword [0x40dc8c], eax
mov dword [0x40dc80], 0xc0000409
mov dword [0x40dc84], 1
mov eax, dword [0x40d03c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x40d040]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x40dcd0], eax
push 1
call fcn.00406358
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40914c
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x40dcd0], 0
jne 0x403b36
push 1
call fcn.00406358
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x403fda
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push eax
xor eax, eax
mov eax, ebx
jmp 0x403fe9
nop
nop
jmp 0x403ff0
pop eax
sub esp, 0x1fc
mov eax, dword [0x40d03c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00403fa2
mov edi, eax
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1fc], edi
cmp edi, ebx
je 0x40418c
push 3
call fcn.00406f4a
pop ecx
cmp eax, 1
je 0x404138
push 3
call fcn.00406f4a
pop ecx
test eax, eax
jne 0x40404a
cmp dword [0x40d038], 1
je 0x404138
cmp esi, 0xfc
je 0x40418c
push str.Runtime_Error__n_nProgram:
push 0x314
mov edi, 0x40dfd8
push edi
call fcn.00406ed5
add esp, 0xc
test eax, eax
jne 0x40412e
push 0x104
mov esi, 0x40e00a
push esi
push ebx
mov word [0x40e212], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
test eax, eax
jne 0x4040b6
push str._program_name_unknown_
push ebx
push esi
call fcn.00406ed5
add esp, 0xc
test eax, eax
je 0x4040b6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00406942
push esi
call fcn.004033d8
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4040ed
push esi
call fcn.004033d8
lea eax, [eax*2 + 0x40df94]
mov ecx, eax
sub ecx, esi
push 3
sar ecx, 1
push 0x409b04
sub ebx, ecx
push ebx
push eax
call fcn.00406df6
add esp, 0x14
test eax, eax
jne 0x4040aa
push 0x409afc
mov esi, 0x314
push esi
push edi
call fcn.00406d6f
add esp, 0xc
test eax, eax
jne 0x4040aa
push dword [ebp - 0x1fc]
push esi
push edi
call fcn.00406d6f
add esp, 0xc
test eax, eax
jne 0x4040aa
push 0x12010
push 0x409ab0
push edi
call fcn.00406bf1
add esp, 0xc
jmp 0x40418c
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x4040b1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, ebx
je 0x40418c
cmp esi, 0xffffffff
je 0x40418c
xor eax, eax
mov cl, byte [edi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [edi + eax*2], bx
je 0x404165
inc eax
cmp eax, 0x1f4
jb 0x40414d
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00406b66
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f38
leave
ret
Function at 0x403ff0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push eax
xor eax, eax
mov eax, ebx
jmp 0x403fe9
nop
nop
jmp 0x403ff0
pop eax
sub esp, 0x1fc
mov eax, dword [0x40d03c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00403fa2
mov edi, eax
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1fc], edi
cmp edi, ebx
je 0x40418c
push 3
call fcn.00406f4a
pop ecx
cmp eax, 1
je 0x404138
push 3
call fcn.00406f4a
pop ecx
test eax, eax
jne 0x40404a
cmp dword [0x40d038], 1
je 0x404138
cmp esi, 0xfc
je 0x40418c
push str.Runtime_Error__n_nProgram:
push 0x314
mov edi, 0x40dfd8
push edi
call fcn.00406ed5
add esp, 0xc
test eax, eax
jne 0x40412e
push 0x104
mov esi, 0x40e00a
push esi
push ebx
mov word [0x40e212], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
test eax, eax
jne 0x4040b6
push str._program_name_unknown_
push ebx
push esi
call fcn.00406ed5
add esp, 0xc
test eax, eax
je 0x4040b6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00406942
push esi
call fcn.004033d8
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4040ed
push esi
call fcn.004033d8
lea eax, [eax*2 + 0x40df94]
mov ecx, eax
sub ecx, esi
push 3
sar ecx, 1
push 0x409b04
sub ebx, ecx
push ebx
push eax
call fcn.00406df6
add esp, 0x14
test eax, eax
jne 0x4040aa
push 0x409afc
mov esi, 0x314
push esi
push edi
call fcn.00406d6f
add esp, 0xc
test eax, eax
jne 0x4040aa
push dword [ebp - 0x1fc]
push esi
push edi
call fcn.00406d6f
add esp, 0xc
test eax, eax
jne 0x4040aa
push 0x12010
push 0x409ab0
push edi
call fcn.00406bf1
add esp, 0xc
jmp 0x40418c
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x4040b1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, ebx
je 0x40418c
cmp esi, 0xffffffff
je 0x40418c
xor eax, eax
mov cl, byte [edi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [edi + eax*2], bx
je 0x404165
inc eax
cmp eax, 0x1f4
jb 0x40414d
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00406b66
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f38
leave
ret

Function at 0x4069e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push eax
xor eax, eax
mov eax, ebx
jmp 0x4069ef
nop
nop
jmp 0x4069f6
pop eax
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x406a08
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406a04
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
pop ebp
ret
Function at 0x406a32
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push eax
xor eax, eax
mov eax, ebx
jmp 0x406a41
nop
nop
jmp 0x406a48
pop eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
je 0x406a81
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x406a79
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x406a83
inc edx
add eax, 0x28
cmp edx, esi
jb 0x406a69
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406bf1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push eax
xor eax, eax
mov eax, ebx
jmp 0x406c00
nop
nop
jmp 0x406c07
pop eax
sub esp, 0x24
mov eax, dword [0x40d03c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404d4f
and dword [ebp - 0x14], 0
cmp dword [0x40e9c4], 0
mov dword [ebp - 0x18], eax
jne 0x406cb6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406d5e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406d5e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40e9c4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40e9c8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e9cc], eax
call edi
push eax
call esi
mov dword [0x40e9d4], eax
test eax, eax
je 0x406cb6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e9d0], eax
mov eax, dword [0x40e9d0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406d0f
cmp dword [0x40e9d4], ecx
je 0x406d0f
push eax
call esi
push dword [0x40e9d4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406d0f
test ebx, ebx
je 0x406d0f
call edi
test eax, eax
je 0x406d06
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406d06
test byte [ebp - 8], 1
jne 0x406d0f
or dword [ebp + 0x10], 0x200000
jmp 0x406d42
mov eax, dword [0x40e9c8]
cmp eax, dword [ebp - 0x18]
je 0x406d42
push eax
call esi
test eax, eax
je 0x406d42
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406d42
mov eax, dword [0x40e9cc]
cmp eax, dword [ebp - 0x18]
je 0x406d42
push eax
call esi
test eax, eax
je 0x406d42
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e9c4]
call esi
test eax, eax
je 0x406d5e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406d60
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f38
leave
ret
Function at 0x406c07
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push eax
xor eax, eax
mov eax, ebx
jmp 0x406c00
nop
nop
jmp 0x406c07
pop eax
sub esp, 0x24
mov eax, dword [0x40d03c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404d4f
and dword [ebp - 0x14], 0
cmp dword [0x40e9c4], 0
mov dword [ebp - 0x18], eax
jne 0x406cb6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406d5e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406d5e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40e9c4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40e9c8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e9cc], eax
call edi
push eax
call esi
mov dword [0x40e9d4], eax
test eax, eax
je 0x406cb6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e9d0], eax
mov eax, dword [0x40e9d0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406d0f
cmp dword [0x40e9d4], ecx
je 0x406d0f
push eax
call esi
push dword [0x40e9d4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406d0f
test ebx, ebx
je 0x406d0f
call edi
test eax, eax
je 0x406d06
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406d06
test byte [ebp - 8], 1
jne 0x406d0f
or dword [ebp + 0x10], 0x200000
jmp 0x406d42
mov eax, dword [0x40e9c8]
cmp eax, dword [ebp - 0x18]
je 0x406d42
push eax
call esi
test eax, eax
je 0x406d42
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406d42
mov eax, dword [0x40e9cc]
cmp eax, dword [ebp - 0x18]
je 0x406d42
push eax
call esi
test eax, eax
je 0x406d42
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e9c4]
call esi
test eax, eax
je 0x406d5e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406d60
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f38
leave
ret
Function at 0x40d9d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40da2c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40da2c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40da2c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40da2c
cmp dword [ecx + 0x74], 0xe
jbe 0x40da2c
cmp dword [ecx + 0xe8], 0
je 0x40da2c
push dword [ebp + 8]
call fcn.0040d8a0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x41ac48
call fcn.0040d670
add esp, 8
cmp dword [ebp - 8], 0
jne 0x40da61
push dword [ebp + 8]
call fcn.0040d860
mov esp, ebp
pop ebp
ret

Function at 0x40daa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40dafc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dafc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dafc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40dafc
cmp dword [ecx + 0x74], 0xe
jbe 0x40dafc
cmp dword [ecx + 0xe8], 0
je 0x40dafc
push dword [ebp + 8]
call fcn.0040d8a0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x41ac48
call fcn.0040d670
add esp, 8
cmp dword [ebp - 8], 0
jne 0x40db31
push dword [ebp + 8]
call fcn.0040d860
mov esp, ebp
pop ebp
ret
Function at 0x407328
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407434
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x4073a8
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x40739f
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040c058
mov eax, dword [ebp - 4]
call fcn.0040becc
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x4073d8
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040bf80
jmp 0x4073f4
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040c058
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040becc
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x40741c
cmp edi, 0x104
jbe 0x407410
mov eax, dword [ebp - 4]
call fcn.0040becc
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x40741c
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40743b
lea eax, [ebp - 4]
call fcn.0040b054
pop eax
jmp eax

Function at 0x407a08
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.0040b054
test esi, esi
jne 0x407a3e
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.0040b1ec
jmp 0x407a5c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004078e8
mov edi, eax
test esi, esi
je 0x407a5c
cmp dword [ebx], 0
je 0x407a5c
dec esi
jmp 0x407a45
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x409b8c
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.0040a04c
mov byte [esp], al
cmp byte [esp], 0
jne 0x409d15
test edi, edi
je 0x409d15
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409c55
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409c30
cmp edi, 0xffffffff
je 0x409bf1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409bf1
mov byte [esp], 0
jmp 0x409d15
cmp dword [esi], 1
jg 0x409c30
cmp dword [esi], 0
jne 0x409c22
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x409c22
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409d15
lea eax, [esp + 0xc]
call fcn.00409848
dec ebp
test ebp, ebp
jg 0x409bd6
cmp edi, 0xffffffff
je 0x409c55
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409c53
mov byte [esp], 0
jmp 0x409d15
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409b9a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409c55
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409d90
mov edx, eax
mov ebx, dword [0x8ce900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409cb9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409cb7
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409cb9
xor edi, edi
cmp byte [esp], 0
je 0x409cdf
mov ebx, dword [esi]
test bl, 1
jne 0x409cf5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409cbf
mov byte [esp + 1], 1
jmp 0x409cf5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409cdf
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409c6c
cmp byte [esp], 0
je 0x409d15
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 0x40acb0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x8ce05c], 0
je 0x40ad17
cmp word [0x8ce34c], 0xd7b2
jne 0x40acd9
cmp dword [0x8ce354], 0
jbe 0x40acd9
mov eax, 0x8ce348
call dword [0x8ce364]
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, 0x40ad44
call fcn.0040ba84
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x84103c], 0
jne 0x40ad33
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40af14
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 [0x841040], 0
je 0x40af3f
mov edx, edi
mov eax, esi
call dword [0x841040]
mov ebx, eax
jmp 0x40af50
mov eax, 8
call fcn.00407108
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x8ce05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40aedc
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 0x40af80
mov eax, ebx
call fcn.00407124
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40f5d4
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 0x40f73b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b054
cmp si, word [0x841a48]
jb 0x40f66c
cmp si, word [0x841c48]
ja 0x40f66c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40f66c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x841a48]
jae 0x40f646
mov edi, ebx
dec edi
jmp 0x40f667
cmp si, word [ebx*8 + 0x841a48]
jbe 0x40f656
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40f667
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x841a4c]
call fcn.0040f4f4
jmp 0x40f66c
cmp edi, dword [ebp - 8]
jae 0x40f630
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40f71b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f71b
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.0040bf80
push dword [ebp - 0x160]
push 0x40f758
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040bf80
push dword [ebp - 0x164]
push 0x40f768
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040bf80
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040c1b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f742
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040b0b4
pop eax
jmp eax