joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4419b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2a000]
mov dword [edi + 0x2b4b0], 0x29963d52
push edi
or ebp, 0xffffffff
jmp 0x4419da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4419e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4419d0
mov eax, 1
add ebx, ebx
jne 0x4419f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4419e8
jne 0x441a04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4419e8
xor ecx, ecx
sub eax, 3
jb 0x441a18
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x441a8a
mov ebp, eax
add ebx, ebx
jne 0x441a23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x441a30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x441a54
inc ecx
add ebx, ebx
jne 0x441a40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x441a35
jne 0x441a51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x441a35
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x441a74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x441a65
jmp 0x4419d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x441a74
add edi, ecx
jmp 0x4419d6
pop esi
mov edi, esi
mov ecx, 0x14c4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x441a92
cmp byte [edi], 0xe
jne 0x441a92
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x441a97
lea edi, [esi + 0x3f000]
mov eax, dword [edi]
or eax, eax
je 0x441b06
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x42938]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x42a00]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x441ac4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x42a04]
or eax, eax
je 0x441b00
mov dword [ebx], eax
add ebx, 4
jmp 0x441ae1
call dword [esi + 0x42a08]
popal
jmp 0x429350

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x73e85aa2
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x32f02132
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444004]
jne 0x401010
repz ret
jmp fcn.00401866

Function at 0x4069ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403424
and dword [ebp - 4], 0
cmp dword [0x447484], 0
mov ebx, eax
jne 0x406a5c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406b0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406b0d
push eax
call fcn.004033b2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x447484], eax
call esi
push eax
call fcn.004033b2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x447488], eax
call esi
push eax
call fcn.004033b2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44748c], eax
call esi
push eax
call fcn.004033b2
pop ecx
mov dword [0x447494], eax
test eax, eax
je 0x406a5c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004033b2
pop ecx
mov dword [0x447490], eax
mov eax, dword [0x447490]
cmp eax, ebx
je 0x406ab4
cmp dword [0x447494], ebx
je 0x406ab4
push eax
call fcn.0040342d
push dword [0x447494]
mov esi, eax
call fcn.0040342d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406ab4
test edi, edi
je 0x406ab4
call esi
test eax, eax
je 0x406aab
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406aab
test byte [ebp - 0xc], 1
jne 0x406ab4
or dword [ebp + 0x10], 0x200000
jmp 0x406aed
mov eax, dword [0x447488]
cmp eax, ebx
je 0x406aed
push eax
call fcn.0040342d
pop ecx
test eax, eax
je 0x406aed
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406aed
mov eax, dword [0x44748c]
cmp eax, ebx
je 0x406aed
push eax
call fcn.0040342d
pop ecx
test eax, eax
je 0x406aed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447484]
call fcn.0040342d
pop ecx
test eax, eax
je 0x406b0d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406b0f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43cd00
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x445000]
push ebx
mov ebx, dword [0x81a1d4]
push esi
mov esi, dword [0x81a01c]
push eax
call fcn.0043cbf0
add esp, 4
cmp dword [0x81a1d4], 0x2f
jne 0x43cd2b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
call fcn.0043cc60
add esp, 4
cmp dword [0x81a1d4], 0x568
pop esi
pop ebx
jne 0x43cd4a
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
ret
Function at 0x10016685
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100166cf
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100166b5
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jg 0x100166cd
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
jmp 0x100166aa
jmp 0x100166d9
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esp, ebp
pop ebp
ret

Function at 0x1001bee1
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001bf05
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001bf03
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x1001bf17
push 0
push 0x10d3
push 0xe24
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
mov esp, ebp
pop ebp
ret
Function at 0x10029463
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100294ab
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
add ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [eax], ecx
jmp 0x100294b5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esp, ebp
pop ebp
ret
Function at 0x1002c9c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push 1
call fcn.1002bc90
add esp, 0xc
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002c9f0
xor eax, eax
jmp 0x1002cb49
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002ca0e
xor eax, eax
jmp 0x1002cb49
push 0x67ad
push 1
lea eax, [ebp - 0xc]
push eax
push 0x748e
lea eax, [ebp - 8]
push eax
push 0x728
push 0x620c
call fcn.1002bcf0
add esp, 0x1c
cmp dword [ebp - 0xc], 0
jne 0x1002ca41
xor eax, eax
jmp 0x1002cb49
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push 0x3d1a
push dword [ebp - 8]
call fcn.1002bb3f
add esp, 0x1c
push 0x1996
push 0x426d
push dword [ebp + 8]
push 0
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.10025b9e
add esp, 0x18
push 0x3617
lea eax, [ebp - 0xc]
push eax
push 1
push 0x3a56
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1002c16f
add esp, 0x18
cmp dword [ebp - 0x14], 0
je 0x1002cac1
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x36bb
push 0x6f81
call fcn.1002c1e3
add esp, 0x14
push dword [ebp - 4]
call fcn.1002a8fd
pop ecx
test eax, eax
jne 0x1002cad2
xor eax, eax
jmp 0x1002cb49
push 1
lea eax, [ebp - 4]
push eax
push 0x13d1
push 0x8e5
push 0x432a
call fcn.1002c24f
add esp, 0x14
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002cb31
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002cb0e
xor eax, eax
jmp 0x1002cb49
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002cb27
xor eax, eax
jmp 0x1002cb49
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002cb42
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002cb46
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1003fc2f
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1003fc53
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003fc51
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x1003fc60
push 0x10f4
push 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov esp, ebp
pop ebp
ret
Function at 0x1004d9b0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 5]
and ecx, 0xf
movzx edx, byte [0x106638f4]
or ecx, edx
mov byte [ebp - 1], cl
movzx ax, byte [ebp - 1]
movzx ecx, ax
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
push ecx
push 0x10663970
call fcn.1004bce0
add esp, 8
mov esp, ebp
pop ebp
ret 4

Function at 0x100519b0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10077330]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov word [ebp - 0x1e], cx
cmp dword [ebp + 8], 0xffffffff
jne 0x100519d4
jmp 0x10051a43
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x100519e8
jmp 0x10051a43
movsx ecx, word [ebp - 0x1c]
movsx edx, word [ebp - 0x1a]
imul ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
jne 0x10051a14
jmp 0x10051a43
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x10051a35
jmp 0x10051a43
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005d4a8
mov esp, ebp
pop ebp
ret
Function at 0x10070da0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10077330]
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.10061146
mov dword [ebp - 0x14], eax
cmp dword [0x10664abc], esi
jne 0x10070e93
push 0x800
push esi
push 0x1000797c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10070e20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10070f73
push esi
push esi
push 0x1000797c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10070f73
push 0x10007994
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10070f73
push eax
call ebx
push 0x100079a0
push edi
mov dword [0x10664abc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079b0
push edi
mov dword [0x10664ac0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079c4
push edi
mov dword [0x10664ac4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10664acc], eax
test eax, eax
je 0x10070e90
push 0x100079e0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10664ac8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10070eb8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10070eab
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10070ecd
push 4
pop eax
jmp 0x10070f75
cmp dword [ebp - 0x14], esi
je 0x10070ecd
push dword [0x10664abc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10070eb2
mov eax, dword [0x10664ac8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10070f2b
cmp dword [0x10664acc], edi
je 0x10070f2b
push eax
call ebx
push dword [0x10664acc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10070f2b
test eax, eax
je 0x10070f2b
call ecx
test eax, eax
je 0x10070f20
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 0x10070f20
test byte [ebp - 8], 1
jne 0x10070f2b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10070f5b
mov eax, dword [0x10664ac0]
cmp eax, edi
je 0x10070f58
push eax
call ebx
test eax, eax
je 0x10070f58
call eax
mov esi, eax
test esi, esi
je 0x10070f58
mov eax, dword [0x10664ac4]
cmp eax, edi
je 0x10070f58
push eax
call ebx
test eax, eax
je 0x10070f58
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10664abc]
call ebx
test eax, eax
je 0x10070f73
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10070f75
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005d4a8
mov esp, ebp
pop ebp
ret
Function at 0x4071f0
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.00409ddc
test esi, esi
jne 0x407226
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.00409f64
jmp 0x407244
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407134
mov edi, eax
test esi, esi
je 0x407244
cmp dword [ebx], 0
je 0x407244
dec esi
jmp 0x40722d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x408930
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.00408dbc
mov byte [esp], al
cmp byte [esp], 0
jne 0x408ab9
test edi, edi
je 0x408ab9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4089f9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4089d4
cmp edi, 0xffffffff
je 0x408995
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408995
mov byte [esp], 0
jmp 0x408ab9
cmp dword [esi], 1
jg 0x4089d4
cmp dword [esi], 0
jne 0x4089c6
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4089c6
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408ab9
lea eax, [esp + 0xc]
call fcn.004085ec
dec ebp
test ebp, ebp
jg 0x40897a
cmp edi, 0xffffffff
je 0x4089f9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4089f7
mov byte [esp], 0
jmp 0x408ab9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40893e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089f9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408b28
mov edx, eax
mov ebx, dword [0x5f98fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408a5d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408a5b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408a5d
xor edi, edi
cmp byte [esp], 0
je 0x408a83
mov ebx, dword [esi]
test bl, 1
jne 0x408a99
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a63
mov byte [esp + 1], 1
jmp 0x408a99
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a83
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408a10
cmp byte [esp], 0
je 0x408ab9
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 0x4097c0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x5fbb9c
cmp dword [ebp + 0xc], 2
jl 0x4097d4
mov ebx, 0x5fbbcc
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x40980c
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x405130
mov dword [0x5f901c], eax
mov eax, 0x405138
mov dword [0x5f9020], eax
mov eax, ebx
call fcn.004096a4
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x409841
cmp al, 3
jge 0x409841
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x409852
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x40985d
call dword [ecx + eax*4]
cmp dword [0x5f9040], 0
jne 0x409873
mov byte [0x5f9048], 1
fnstcw word [0x5f0028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409b0c
call fcn.00409754
ret 4

Function at 0x409a74
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5f905c], 0
je 0x409adb
cmp word [0x5f9348], 0xd7b2
jne 0x409a9d
cmp dword [0x5f9350], 0
jbe 0x409a9d
mov eax, 0x5f9344
call dword [0x5f9360]
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, 0x409b08
call fcn.0040a7fc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5f0032], 0
jne 0x409af7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x409c9c
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 [0x5f0034], 0
je 0x409cc7
mov edx, edi
mov eax, esi
call dword [0x5f0034]
mov ebx, eax
jmp 0x409cd8
mov eax, 8
call fcn.00406e70
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5f905d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409c64
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 0x409d08
mov eax, ebx
call fcn.00406e8c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40ccb0
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 0x40ce15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409ddc
cmp si, word [0x5f0a00]
jb 0x40cd48
cmp si, word [0x5f0c00]
ja 0x40cd48
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40cd48
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5f0a00]
jae 0x40cd22
mov edi, ebx
dec edi
jmp 0x40cd43
cmp si, word [ebx*8 + 0x5f0a00]
jbe 0x40cd32
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40cd43
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5f0a04]
call fcn.0040cbd0
jmp 0x40cd48
cmp edi, dword [ebp - 8]
jae 0x40cd0c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40cdf7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cdf7
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.0040ac48
push dword [ebp - 0x160]
push 0x40ce30
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ac48
push dword [ebp - 0x164]
push 0x40ce40
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ac48
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ae80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce1c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409e3c
ret