joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10073150
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10073540
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10150e04], 0
jne 0x1007318d
cmp dword [0x10150e00], 0
je 0x1007318d
mov eax, dword [0x10150e00]
mov dword [0x10150e04], eax
cmp dword [0x10150e04], 0
je 0x1007320a
mov ecx, dword [0x10150e04]
cmp dword [ecx + 8], 0
je 0x1007320a
mov edx, dword [0x10150e04]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1007320a
mov ecx, dword [0x10150e04]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1007320a
mov eax, dword [0x10150e04]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x100731d9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x100731e0
xor eax, eax
jmp 0x10073329
mov ecx, dword [0x10150e04]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1007b2b0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10073329
mov edx, dword [0x10150e00]
mov dword [0x10150e04], edx
jmp 0x10073226
mov eax, dword [0x10150e04]
mov ecx, dword [eax + 4]
mov dword [0x10150e04], ecx
cmp dword [0x10150e04], 0
je 0x10073266
cmp dword [0x10150e04], 0
je 0x10073264
mov edx, dword [0x10150e04]
cmp dword [edx + 8], 0
je 0x10073264
mov eax, dword [0x10150e04]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10073264
mov edx, dword [0x10150e04]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10073264
jmp 0x100731be
jmp 0x10073218
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10073330
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10073327
mov eax, dword [ebp - 0x18]
mov dword [0x10150e04], eax
mov ecx, dword [0x10150e04]
mov dword [ecx], 0x52727464
mov edx, dword [0x10150e04]
mov dword [edx + 8], 0
mov eax, dword [0x10150e04]
mov ecx, dword [0x10150e00]
mov dword [eax + 4], ecx
mov edx, dword [0x10150e04]
mov dword [0x10150e00], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10150e04]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x100732f7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10073317
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x100732ee
mov eax, dword [0x10150e04]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100731be
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10074070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10150e00]
mov dword [ebp - 4], eax
jmp 0x10074089
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100740b0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100740ae
call sub.KERNEL32.dll_GetLastError
jmp 0x100740b2
jmp 0x10074080
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10074550
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10150e10], eax
je 0x10074574
mov eax, 0x10dd
jmp 0x1007471c
cmp dword [0x10150e14], 0
je 0x10074587
mov eax, dword [0x10150e14]
jmp 0x1007471c
cmp dword [ebp + 0xc], 0
jne 0x10074597
mov eax, 0x57
jmp 0x1007471c
cmp dword [ebp + 8], 0
jne 0x100745a7
mov eax, 6
jmp 0x1007471c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x100745d0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x10150e14], ecx
mov edx, dword [ebp + 8]
mov dword [0x10150e18], edx
mov eax, dword [ebp - 8]
jmp 0x1007471c
push 0x18
call fcn.10075c30
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1007462b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x10150e14], ecx
cmp dword [ebp - 4], 0
je 0x1007461a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.100767b0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10150e18], ecx
mov eax, dword [ebp - 8]
jmp 0x1007471c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10074530
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10074530
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1007466b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10074687
mov dword [ebp - 8], 9
cmp dword [0x10150e08], 0
je 0x10074682
jmp 0x100745f9
jmp 0x100745f0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x100746ae
mov dword [ebp - 8], 9
cmp dword [0x10150e08], 0
je 0x100746a9
jmp 0x100745f9
jmp 0x100745f0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100746d9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x100745f0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10150e20]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10150e20], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10074730
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10150e10], eax
je 0x1007474d
mov eax, 0x10dd
jmp 0x10074830
mov eax, dword [0x10150e20]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100747cc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100747a8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100747a8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100735d0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.100767b0
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10074755
mov dword [0x10150e20], 0
call fcn.10073eb0
mov ecx, dword [0x10150e1c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1007481a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100767b0
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x100747e4
mov dword [0x10150e1c], 0
mov dword [0x10150e10], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10074d10
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10150e14], 0
je 0x10074d29
mov eax, dword [0x10150e14]
jmp 0x10074dc8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x10074d3a
xor eax, eax
jmp 0x10074dc8
push 8
call fcn.10075c30
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10074d92
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10074d7b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.100767b0
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10150e14], eax
mov dword [0x10150e18], 0
mov eax, dword [ebp - 8]
jmp 0x10074dc8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x10074daa
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10074d5a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10150e1c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10150e1c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100a0510
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.100a6320
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100a054e
cmp dword [ebp + 8], 0
je 0x100a053c
lea eax, [ebp + 8]
push eax
call fcn.100a0710
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x100a054e
mov eax, 4
jmp 0x100a067e
call fcn.100a6120
movzx edx, al
test edx, edx
jne 0x100a057c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100a056d
mov dword [ebp - 0xc], 4
jmp 0x100a0574
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x100a067e
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100a0625
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x100a06c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.100a3170
lea ecx, [ebp - 8]
call fcn.100a0750
movzx edx, al
test edx, edx
jne 0x100a05e7
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.100a0730
mov eax, dword [ebp - 0x10]
jmp 0x100a067e
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.1009ef50
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x100a0612
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.100a0730
mov eax, dword [ebp - 0x14]
jmp 0x100a067e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.100a0730
mov eax, dword [ebp - 0x18]
jmp 0x100a067e
call fcn.100a6270
movzx ecx, al
test ecx, ecx
jne 0x100a065e
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.100a0690
add esp, 0x10
jmp 0x100a067e
call fcn.100a6180
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.100a0690
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x100a9220
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100a9247
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100915d0
add esp, 4
or eax, 0xffffffff
jmp 0x100a9249
xor eax, eax
pop ebp
ret
Function at 0x100b08fb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x100bf110
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x10151198], 1
jge 0x100bf17f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x100bf155
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x100bf155
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x100bf132
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x100bf16b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x100bf172
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x100bf26f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x100bf240
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x100bf235
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x100bf229
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x100bf230
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x100bf26f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x100bf26a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x100bf253
mov eax, dword [ebx + 8]
jmp 0x100bf26f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x100bf261
xor eax, eax
jmp 0x100bf26f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x100bf19f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x100b0906
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b0497

Function at 0x100c2fc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x100c36a0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100c36de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100c37d0
add esp, 4
push eax
lea ecx, [ebp - 0x10]
call fcn.100c3fe0
push 0x10149234
lea edx, [ebp - 0x10]
push edx
call fcn.10079d10
mov esp, ebp
pop ebp
ret
Function at 0x403ce0
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.004069d4
test esi, esi
jne 0x403d16
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.00406b2c
jmp 0x403d34
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403c24
mov edi, eax
test esi, esi
je 0x403d34
cmp dword [ebx], 0
je 0x403d34
dec esi
jmp 0x403d1d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403d68
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x430008], 0x8088405
inc edx
mov dword [ebx + 0x430008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405bac
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.00405e48
mov byte [esp], al
cmp byte [esp], 0
jne 0x405d36
test edi, edi
je 0x405d36
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405c76
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405c51
cmp edi, 0xffffffff
je 0x405c11
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405c11
mov byte [esp], 0
jmp 0x405d36
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405c51
test ebx, ebx
jne 0x405c43
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405c43
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405d36
lea eax, [esp + 0xc]
call fcn.0040595c
dec ebp
test ebp, ebp
jg 0x405bf6
cmp edi, 0xffffffff
je 0x405c76
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405c74
mov byte [esp], 0
jmp 0x405d36
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405bba
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405c76
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405da4
mov edx, eax
mov ebx, dword [0x4338f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405cda
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405cd8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405cda
xor edi, edi
cmp byte [esp], 0
je 0x405d00
mov ebx, dword [esi]
test bl, 1
jne 0x405d16
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405ce0
mov byte [esp + 1], 1
jmp 0x405d16
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405d00
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405c8d
cmp byte [esp], 0
je 0x405d36
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 0x406718
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x433054], 0
je 0x40677f
cmp word [0x433340], 0xd7b2
jne 0x406741
cmp dword [0x433348], 0
jbe 0x406741
mov eax, 0x43333c
call dword [0x433358]
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, 0x4067ac
call fcn.0040701c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x430026], 0
jne 0x40679b
push 0
push 0x4309b2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4083f0
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 0x408555
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004069d4
cmp si, word [0x4309f0]
jb 0x408488
cmp si, word [0x430bf0]
ja 0x408488
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408488
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4309f0]
jae 0x408462
mov edi, ebx
dec edi
jmp 0x408483
cmp si, word [ebx*8 + 0x4309f0]
jbe 0x408472
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408483
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4309f4]
call fcn.00408310
jmp 0x408488
cmp edi, dword [ebp - 8]
jae 0x40844c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408537
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408537
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.004071b4
push dword [ebp - 0x160]
push 0x408570
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004071b4
push dword [ebp - 0x164]
push 0x408580
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004071b4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040736c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40855c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406a34
ret
Function at 0x408708
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 0x40880c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x435b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x435b9c]
jne 0x408754
mov eax, esi
mov edx, 0x435b9e
mov ecx, 0x55
call fcn.004071b4
push 0x435b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4087f6
push 0x435b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004069d4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4087c3
cmp byte [0x435b80], 0
je 0x408788
mov edx, esi
mov eax, ebx
call fcn.004085ec
jmp 0x4087c3
mov edx, esi
mov eax, ebx
call fcn.004083f0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4087c3
cmp dword [esi], 0
je 0x4087ac
mov eax, esi
mov edx, 0x408824
call fcn.0040728c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004083f0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040728c
push 0x435b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x435b9c], bx
mov eax, dword [esi]
call fcn.00407120
mov ecx, eax
mov eax, 0x435b9e
mov edx, 0xaa
call fcn.00408270
push 0x435b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408813
lea eax, [ebp - 4]
call fcn.004069d4
ret