joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ddc8
Capabilities:
Enumerate files on windows

Disassembly:
push 0x298
mov eax, 0x4389b4
call fcn.00425ad8
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a0], edi
lea eax, [ebp + 0xc]
push eax
xor ebx, ebx
lea eax, [ebp - 0x48]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041da60
cmp dword [eax + 0x14], 8
jb 0x41de03
mov eax, dword [eax]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x29c], eax
call fcn.00409a8a
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2a0], ebx
call fcn.0041a35c
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0041dd5d
push edi
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00409a8a
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x41de8e
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041a35c
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0041dd5d
push 0
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00409a8a
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x29c]
call edi
test eax, eax
jne 0x41de62
push eax
push ebx
lea ecx, [ebp + 0xc]
call fcn.00404c4a
mov eax, esi
call fcn.00425b5b
ret 0x20
Function at 0x4201af
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4201bd
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x420278
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4416c8]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4416c8]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4416c8]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4416c8]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4416c8]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4416c8]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4416c8]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4416c8]
add edx, 8
sub edi, 8
dec esi
jne 0x4201db
pop ebx
test edi, edi
je 0x420291
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4416c8]
inc edx
dec edi
jne 0x42027c
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x420297
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4416c8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4416c8]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x420477
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4496f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
push eax
push esi
call dword [0x45bfe0]
test eax, eax
jne 0x4204ba
mov eax, 0x200
jmp 0x420643
mov ecx, dword [ebp - 0x38]
xor eax, eax
push ebx
xor ebx, ebx
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
je 0x4204d1
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x4204da
or dword [ebp - 0x3c], 2
test cl, 4
je 0x4204e3
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x4204ee
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x4204f7
or dword [ebp - 0x3c], 0x20
cmp eax, ebx
je 0x420504
or dword [ebp - 0x3c], 0x40000000
jmp 0x42050b
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], ebx
jne 0x42051e
or dword [ebp - 0x3c], 0x800000
push ebx
push esi
call dword [0x45c0c8]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x4205c3
push ebx
push ebx
push ebx
push esi
call dword [0x45beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push esi
call dword [0x45c00c]
push ebx
push ebx
push 0x24
push esi
call dword [0x45beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x45c00c]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x4205c3
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x4205c3
push ebx
push ebx
push eax
push esi
call dword [0x45beec]
push ebx
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [0x45c00c]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x5a4d
je 0x4205bc
cmp eax, 0x454e
je 0x4205bc
cmp eax, 0x454c
je 0x4205bc
cmp eax, 0x4550
jne 0x4205c3
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x4205cf
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x4205db
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp edi, ebx
je 0x420614
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004203e2
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.004203e2
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.004203e2
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x54]
cmp esi, ebx
pop ebx
je 0x420641
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.00420406
movzx eax, word [ebp - 0x40]
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004234ca
leave
ret
Function at 0x4212e7
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x421314
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.00423450
mov ecx, dword [ebp + 0xc]
mov eax, ecx
movzx edx, word [eax*8 + 0x44167a]
mov dword [esi + 0x6af98], edx
movzx edx, word [eax*8 + 0x441678]
mov dword [esi + 0x6af9c], edx
movzx edx, word [eax*8 + 0x44167c]
mov dword [esi + 0x6afa0], edx
movzx eax, word [eax*8 + 0x44167e]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ecx, 2
jg 0x42137a
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x421386
cmp ecx, 8
jl 0x421386
mov eax, dword [ebp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x4213ed
cmp eax, 0xffffffff
je 0x4213ed
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x4213c8
push esi
call fcn.0041f8d3
pop ecx
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x4213d0
jmp 0x4213fd
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4219af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x421bb7
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x421a29
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x421a6c
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x421a6c
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x421a53
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
push esi
call fcn.0041f78f
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x421a6c
mov ebx, eax
cmp ebx, 3
jb 0x421b31
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.0041f314
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x421afe
cmp eax, 3
jb 0x421afe
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x421aac
jmp 0x421b54
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x421b5a
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0041f314
add esp, 0xc
dec dword [esi + 0x6af90]
mov dword [ebp + 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp + 8], 0
je 0x421b96
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x421b73
lea ecx, [eax + esi + 0x1af70]
jmp 0x421b75
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.0042182c
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x421ba9
push esi
call fcn.0041f8d3
pop ecx
cmp dword [esi + 0x6af90], 0
jne 0x4219d9
pop edi
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x421bca
lea ecx, [eax + esi + 0x1af70]
jmp 0x421bcc
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.0042182c
add esp, 0x10
pop esi
pop ebx
leave
ret

Function at 0x4234ca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4496f0]
jne 0x4234d4
repz ret
jmp fcn.00429e5b
Function at 0x43212c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4496f0]
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.0042b527
and dword [ebp - 0x14], 0
cmp dword [0x45d110], 0
mov dword [ebp - 0x18], eax
jne 0x4321df
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x432287
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x432287
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45d110], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45d114], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45d118], eax
call edi
push eax
call esi
mov dword [0x45d120], eax
test eax, eax
je 0x4321df
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45d11c], eax
mov eax, dword [0x45d11c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432238
cmp dword [0x45d120], ecx
je 0x432238
push eax
call esi
push dword [0x45d120]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432238
test ebx, ebx
je 0x432238
call edi
test eax, eax
je 0x43222f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43222f
test byte [ebp - 8], 1
jne 0x432238
or dword [ebp + 0x10], 0x200000
jmp 0x43226b
mov eax, dword [0x45d114]
cmp eax, dword [ebp - 0x18]
je 0x43226b
push eax
call esi
test eax, eax
je 0x43226b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43226b
mov eax, dword [0x45d118]
cmp eax, dword [ebp - 0x18]
je 0x43226b
push eax
call esi
test eax, eax
je 0x43226b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45d110]
call esi
test eax, eax
je 0x432287
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x432289
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004234ca
leave
ret
Function at 0x10009762
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov esi, 0x200
push esi
mov dword [0x10039884], eax
call fcn.10013c63
push esi
push 0
push eax
mov dword [0x10039888], eax
call fcn.1001b930
add esp, 0x10
xor eax, eax
xor byte [eax + 0x10031010], 0x2e
inc eax
cmp eax, 0x1000
jl 0x10009791
push 0x1000
lea eax, [esp + 0x14]
push 0x10031010
push eax
call fcn.100068df
lea eax, [esp + 0x1c]
push eax
call fcn.1000693b
add esp, 0x10
jmp 0x10009860
lea eax, [esp + 0x10]
push eax
call fcn.1000693b
movzx edi, ax
lea eax, [esp + 0x14]
push eax
call fcn.1000693b
movsx ebx, si
pop ecx
pop ecx
movzx ecx, ax
mov eax, dword [0x10039888]
shl ebx, 3
lea esi, [ebx + eax]
movsx eax, di
dec eax
mov word [esi], di
je 0x1000983f
dec eax
je 0x10009828
dec eax
jne 0x10009855
movsx edi, cx
push edi
call fcn.10013c63
pop ecx
push edi
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
push edi
push eax
call fcn.10006966
pop ecx
pop ecx
push eax
push dword [esi + 4]
call fcn.1001a750
add esp, 0xc
jmp 0x10009855
lea eax, [esp + 0x10]
push eax
call fcn.100068f8
pop ecx
mov ecx, dword [0x10039888]
mov dword [ebx + ecx + 4], eax
jmp 0x10009855
lea eax, [esp + 0x10]
push eax
call fcn.1000693b
pop ecx
mov ecx, dword [0x10039888]
mov word [ebx + ecx + 4], ax
lea eax, [esp + 0x10]
push eax
call fcn.1000693b
pop ecx
movzx esi, ax
test si, si
jg 0x100097c6
push 0x1000
push 0
push 0x10031010
call fcn.1001b930
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009b7f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
inc dword [0x10036824]
push 0x27
pop edx
call fcn.10009716
cmp ax, 1
jne 0x10009b9c
pop ebp
jmp fcn.10009b2a
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x10009bb0
Capabilities:
Create thread
Terminate process

Disassembly:
push 0x37
pop edx
call fcn.10009716
push 0x27
pop edx
cmp ax, 1
jne 0x10009be1
call fcn.10009716
cmp ax, 1
jne 0x10009bd9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10009bcc
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
call fcn.10009716
cmp ax, 1
jne 0x10009c09
push 0xffffffffffffffff
xor eax, eax
push eax
push eax
push eax
push dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x409144
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.00409604
mov byte [esp], al
cmp byte [esp], 0
jne 0x4092cd
test edi, edi
je 0x4092cd
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40920d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4091e8
cmp edi, 0xffffffff
je 0x4091a9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4091a9
mov byte [esp], 0
jmp 0x4092cd
cmp dword [esi], 1
jg 0x4091e8
cmp dword [esi], 0
jne 0x4091da
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4091da
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4092cd
lea eax, [esp + 0xc]
call fcn.00408e00
dec ebp
test ebp, ebp
jg 0x40918e
cmp edi, 0xffffffff
je 0x40920d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40920b
mov byte [esp], 0
jmp 0x4092cd
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409152
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40920d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00409348
mov edx, eax
mov ebx, dword [0x4fa8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409271
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40926f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409271
xor edi, edi
cmp byte [esp], 0
je 0x409297
mov ebx, dword [esi]
test bl, 1
jne 0x4092ad
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409277
mov byte [esp + 1], 1
jmp 0x4092ad
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409297
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409224
cmp byte [esp], 0
je 0x4092cd
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 0x40a18c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fa058], 0
je 0x40a1f3
cmp word [0x4fa344], 0xd7b2
jne 0x40a1b5
cmp dword [0x4fa34c], 0
jbe 0x40a1b5
mov eax, 0x4fa340
call dword [0x4fa35c]
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, 0x40a220
call fcn.0040acf8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f602e], 0
jne 0x40a20f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40a3b4
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 [0x4f6030], 0
je 0x40a3df
mov edx, edi
mov eax, esi
call dword [0x4f6030]
mov ebx, eax
jmp 0x40a3f0
mov eax, 8
call fcn.00406e6c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4fa059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a37c
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 0x40a420
mov eax, ebx
call fcn.00406e88
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40d750
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 0x40d8b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a4f4
cmp si, word [0x4f6a08]
jb 0x40d7e8
cmp si, word [0x4f6c08]
ja 0x40d7e8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d7e8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4f6a08]
jae 0x40d7c2
mov edi, ebx
dec edi
jmp 0x40d7e3
cmp si, word [ebx*8 + 0x4f6a08]
jbe 0x40d7d2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d7e3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4f6a0c]
call fcn.0040d670
jmp 0x40d7e8
cmp edi, dword [ebp - 8]
jae 0x40d7ac
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d897
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d897
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.0040afe8
push dword [ebp - 0x160]
push 0x40d8d0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040afe8
push dword [ebp - 0x164]
push 0x40d8e0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040afe8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d8bc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a554
ret
Function at 0x40da68
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 0x40db6c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4fcc10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4fcc28]
jne 0x40dab4
mov eax, esi
mov edx, 0x4fcc2a
mov ecx, 0x55
call fcn.0040afe8
push 0x4fcc10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40db56
push 0x4fcc10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a4f4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40db23
cmp byte [0x4fcc0c], 0
je 0x40dae8
mov edx, esi
mov eax, ebx
call fcn.0040d94c
jmp 0x40db23
mov edx, esi
mov eax, ebx
call fcn.0040d750
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40db23
cmp dword [esi], 0
je 0x40db0c
mov eax, esi
mov edx, 0x40db84
call fcn.0040b140
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d750
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b140
push 0x4fcc10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4fcc28], bx
mov eax, dword [esi]
call fcn.0040af48
mov ecx, eax
mov eax, 0x4fcc2a
mov edx, 0xaa
call fcn.0040d5d0
push 0x4fcc10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db73
lea eax, [ebp - 4]
call fcn.0040a4f4
ret