joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402230
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x415030
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.NUdqtLqT
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x415052
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x415059
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x415048
mov eax, 1
add ebx, ebx
jne 0x41506b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x415060
jne 0x41507c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415060
xor ecx, ecx
sub eax, 3
jb 0x415090
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x415102
mov ebp, eax
add ebx, ebx
jne 0x41509b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4150a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4150cc
inc ecx
add ebx, ebx
jne 0x4150b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4150ad
jne 0x4150c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4150ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4150ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4150dd
jmp 0x41504e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4150ec
add edi, ecx
jmp 0x41504e
pop esi
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x41514b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x197d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x415109
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1984c]
or eax, eax
je 0x415145
mov dword [ebx], eax
add ebx, 4
jmp 0x415126
call dword [esi + 0x19848]
mov ebp, dword [esi + 0x19850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41517f
sub esp, 0xffffff80
jmp section.dUKSqJnb
Function at 0x10008320
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x10023cf7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x14]
call fcn.1001cc71
mov ecx, dword [0x1002e738]
lea edi, [esi + 0x24]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [edi], ecx
mov edx, dword [0x1002e738]
lea ebx, [esi + 0x28]
mov dword [ebx], edx
mov ecx, dword [0x1002e738]
lea ebp, [esi + 0x2c]
mov dword [ebp], ecx
mov edx, dword [0x1002e738]
mov dword [esi + 0x30], edx
push 1
mov ecx, esi
mov byte [esp + 0x20], 4
mov dword [esi], 0x100254dc
mov dword [esi + 4], 1
mov dword [esi + 8], eax
call fcn.100084c0
push 0x1003b430
mov ecx, edi
mov dword [esi + 0x18], 0
call fcn.1001d5cf
push 0x1003b430
mov ecx, ebx
call fcn.1001d5cf
push 0x1003b430
mov ecx, ebp
call fcn.1001d5cf
push 0x1003b430
lea ecx, [esi + 0x30]
call fcn.1001d5cf
lea ecx, [esi + 0x34]
xor eax, eax
xor edx, edx
pop edi
mov dword [ecx], eax
mov byte [ecx + 4], al
lea eax, [esi + 0x39]
xor ecx, ecx
mov word [eax], dx
mov byte [eax + 2], dl
lea edx, [esi + 0x3c]
xor eax, eax
mov word [edx], cx
mov byte [edx + 2], cl
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1000f770
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000f75e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000f77c
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
add byte [eax], al
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000f7da
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000f7c1
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000f7ca
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000f7d4
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000f7b6
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000f740
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000f827
dec eax
je 0x1000f81e
sub eax, 3
je 0x1000f815
mov dword [ebp - 4], 0x40
jmp 0x1000f844
mov dword [ebp - 4], 4
jmp 0x1000f82a
mov dword [ebp - 4], 0x20
jmp 0x1000f82a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000f876
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000f7f6
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000f087
outsd dx, dword [esi]
fisttp dword [ecx + 0x7a]
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x1000f882
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10011e40
Capabilities:
Get socket status

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x10c
test ecx, ecx
jle 0x10011eab
mov eax, ecx
push esi
cdq
mov esi, 0xf4240
mov dword [esp + 0xc], 1
idiv esi
mov eax, 0x431bde83
mov dword [esp + 8], edx
imul ecx
sar edx, 0x12
mov eax, edx
lea ecx, [esp + 4]
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x114]
mov dword [esp + 4], edx
push ecx
mov dword [esp + 0x14], eax
push 0
lea edx, [esp + 0x14]
push 0
inc eax
push edx
push eax
call sub.WSOCK32.dll_select
test eax, eax
pop esi
jge 0x10011ee0
or eax, 0xffffffff
add esp, 0x10c
ret 8
mov eax, dword [esp + 0x110]
push 0
mov dword [esp + 0x10], eax
push 0
lea ecx, [esp + 0x10]
push 0
inc eax
push ecx
push eax
mov dword [esp + 0x1c], 1
call sub.WSOCK32.dll_select
test eax, eax
jge 0x10011ee0
or eax, 0xffffffff
add esp, 0x10c
ret 8
jne 0x10011eed
xor eax, eax
add esp, 0x10c
ret 8
mov eax, 1
add esp, 0x10c
ret 8
Function at 0x1001909e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1002f3b8
cmp edx, dword [eax]
je 0x100190c0
add eax, 8
inc ecx
cmp eax, 0x1002f448
jl 0x100190b1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1002f3b8]
jne 0x100191ee
mov eax, dword [0x1003d40c]
cmp eax, 1
je 0x100191c8
test eax, eax
jne 0x100190f1
cmp dword [0x1003d410], 1
je 0x100191c8
cmp edx, 0xfc
je 0x100191ee
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10019128
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10019290
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10019380
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1001916b
lea eax, [ebp - 0x1a4]
push eax
call fcn.10019380
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10026a48
push edi
call fcn.10014150
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10019290
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100192a0
lea eax, [ebp - 0xa0]
push 0x10026a28
push eax
call fcn.100192a0
push dword [esi + 0x1002f3bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.100192a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1001a65e
add esp, 0x2c
pop edi
jmp 0x100191ee
lea eax, [ebp + 8]
lea esi, [esi + 0x1002f3bc]
push 0
push eax
push dword [esi]
call fcn.10019380
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x10023057
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x1002306e
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x40129f
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5c0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5c4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401298
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b5c8]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5cc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xb07614]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40132c
push 0x418300
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xb07614]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xb07610]
cmove eax, edx
xor edx, edx
mov dword [0xb07610], eax
cmp ecx, 0x3eb
mov eax, dword [0xb07568]
cmove eax, edx
mov dword [0xb07568], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xb0760c], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x4012fa
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d35e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405595
mov dword [ebp - 0x14], eax
cmp dword [0x462dc4], esi
jne 0x40d451
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d531
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d531
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d531
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x462dc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x462dc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x462dcc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x462dd4], eax
test eax, eax
je 0x40d44e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x462dd0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d476
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d469
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d48b
push 4
pop eax
jmp 0x40d533
cmp dword [ebp - 0x14], esi
je 0x40d48b
push dword [0x462dc4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d470
mov eax, dword [0x462dd0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d4e9
cmp dword [0x462dd4], edi
je 0x40d4e9
push eax
call ebx
push dword [0x462dd4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d4e9
test eax, eax
je 0x40d4e9
call ecx
test eax, eax
je 0x40d4de
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d4de
test byte [ebp - 8], 1
jne 0x40d4e9
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d519
mov eax, dword [0x462dc8]
cmp eax, edi
je 0x40d516
push eax
call ebx
test eax, eax
je 0x40d516
call eax
mov esi, eax
test esi, esi
je 0x40d516
mov eax, dword [0x462dcc]
cmp eax, edi
je 0x40d516
push eax
call ebx
test eax, eax
je 0x40d516
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x462dc4]
call ebx
test eax, eax
je 0x40d531
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d533
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004048a0
mov esp, ebp
pop ebp
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x631812c0
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x24e51067
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x408e6c
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.0040932c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408ff5
test edi, edi
je 0x408ff5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408f35
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408f10
cmp edi, 0xffffffff
je 0x408ed1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408ed1
mov byte [esp], 0
jmp 0x408ff5
cmp dword [esi], 1
jg 0x408f10
cmp dword [esi], 0
jne 0x408f02
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408f02
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408ff5
lea eax, [esp + 0xc]
call fcn.00408b1c
dec ebp
test ebp, ebp
jg 0x408eb6
cmp edi, 0xffffffff
je 0x408f35
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408f33
mov byte [esp], 0
jmp 0x408ff5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408e7a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f35
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409070
mov edx, eax
mov ebx, dword [0x7c38fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408f99
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408f97
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408f99
xor edi, edi
cmp byte [esp], 0
je 0x408fbf
mov ebx, dword [esi]
test bl, 1
jne 0x408fd5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f9f
mov byte [esp + 1], 1
jmp 0x408fd5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408fbf
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408f4c
cmp byte [esp], 0
je 0x408ff5
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 0x409ebc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7c305c], 0
je 0x409f23
cmp word [0x7c3348], 0xd7b2
jne 0x409ee5
cmp dword [0x7c3350], 0
jbe 0x409ee5
mov eax, 0x7c3344
call dword [0x7c3360]
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, 0x409f50
call fcn.0040ac2c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6ed036], 0
jne 0x409f3f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a0e4
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 [0x6ed038], 0
je 0x40a10f
mov edx, edi
mov eax, esi
call dword [0x6ed038]
mov ebx, eax
jmp 0x40a120
mov eax, 8
call fcn.00406fbc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7c305d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a0ac
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 0x40a150
mov eax, ebx
call fcn.00406fd8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40dcb0
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 0x40de17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a224
cmp si, word [0x6eda10]
jb 0x40dd48
cmp si, word [0x6edc10]
ja 0x40dd48
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dd48
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6eda10]
jae 0x40dd22
mov edi, ebx
dec edi
jmp 0x40dd43
cmp si, word [ebx*8 + 0x6eda10]
jbe 0x40dd32
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dd43
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6eda14]
call fcn.0040dbcc
jmp 0x40dd48
cmp edi, dword [ebp - 8]
jae 0x40dd0c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40ddf7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ddf7
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.0040af78
push dword [ebp - 0x160]
push 0x40de34
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040af78
push dword [ebp - 0x164]
push 0x40de44
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040af78
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b1b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de1e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a284
pop eax
jmp eax
Function at 0x40dfcc
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 0x40e0d2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7c5c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x7c5c2c]
jne 0x40e018
mov eax, esi
mov edx, 0x7c5c2e
mov ecx, 0x55
call fcn.0040af78
push 0x7c5c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e0ba
push 0x7c5c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a224
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e087
cmp byte [0x7c5c10], 0
je 0x40e04c
mov edx, esi
mov eax, ebx
call fcn.0040deb0
jmp 0x40e087
mov edx, esi
mov eax, ebx
call fcn.0040dcb0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e087
cmp dword [esi], 0
je 0x40e070
mov eax, esi
mov edx, 0x40e0ec
call fcn.0040b0d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dcb0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b0d0
push 0x7c5c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x7c5c2c], bx
mov eax, dword [esi]
call fcn.0040aec4
mov ecx, eax
mov eax, 0x7c5c2e
mov edx, 0xaa
call fcn.0040db2c
push 0x7c5c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e0d9
lea eax, [ebp - 4]
call fcn.0040a224
pop eax
jmp eax