joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a5c2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x456040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042f988
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042f988
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x43a639
cmp word [ecx], dx
je 0x43a639
mov eax, dword [0x44e1b4]
push edi
dec eax
push eax
push 0x44e0a0
call fcn.0043a55b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x43a6ac
cmp word [eax], dx
je 0x43a6ac
mov eax, dword [edi]
test eax, eax
je 0x43a65d
cmp word [eax], dx
je 0x43a65d
lea eax, [ebp - 0x10]
push eax
call fcn.00439f41
jmp 0x43a666
lea eax, [ebp - 0x10]
push eax
call fcn.00439fdc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x43a6d6
mov eax, dword [0x44e09c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44dd90
call fcn.0043a55b
add esp, 0xc
test al, al
je 0x43a6d6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x43a6a1
cmp word [eax], di
je 0x43a6a1
lea eax, [ebp - 0x10]
push eax
call fcn.00439f41
pop ecx
jmp 0x43a6d8
lea eax, [ebp - 0x10]
push eax
call fcn.00439fdc
jmp 0x43a69e
mov eax, dword [edi]
test eax, eax
je 0x43a6c3
cmp word [eax], dx
je 0x43a6c3
lea eax, [ebp - 0x10]
push eax
call fcn.00439ef6
pop ecx
jmp 0x43a6d6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x43a7a1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0043a3e0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43a7a1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x43a7a1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43a7a1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43a72e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043227b
test ebx, ebx
je 0x43a79c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043227b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43a7a1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43a7a1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043f544
add esp, 0x10
xor eax, eax
inc eax
jmp 0x43a7a3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042097a
leave
ret
Function at 0x4403a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4403cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4403cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x238
mov esi, dword [esp + 0x250]
mov ebp, dword [esp + 0x24c]
xor eax, eax
cmp byte [0x4483ec], 0
sete al
jmp dword [eax*4 + 0x443438]

Function at 0x4036f0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x4037d0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4037d0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40373a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x403741
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x403720
jmp 0x403743
mov esi, 0x1505
jmp 0x403743
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
lea edi, [ebx - 1]
mov edx, ebx
sub edx, 1
mov dword [esp + 8], edx
jb 0x4037d0
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x403774
inc edi
dec ebx
je 0x4037ce
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4037ce
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x403770
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040a410
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x403770
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040a430
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x403770
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4037d0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x419dbb
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x30]
mov eax, 0xfffffffe
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x419db0
cmp eax, 0xffffffed
jge 0x419dc7
mov eax, 0xffffffff
jmp 0x419dca
add eax, 0x12
push eax
call fcn.0040a300
add esp, 4
mov esi, eax
mov dword [esp + 4], 0x18b41eb9
mov dword [esp + 8], 0x4821ab4
mov dword [esp + 0xc], 0x510659
mov dword [esp + 0x10], 0xca102ad
mov word [esp + 0x14], 0xe0d
mov dword [esp + 0x16], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x15
ja 0x419e4e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
add eax, 0xa36ea329
xor eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
add al, 0xcc
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x16
jb 0x419e20
movzx ecx, word [edi]
mov eax, esi
test cx, cx
je 0x419e71
add edi, 2
mov eax, esi
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x419e60
mov word [eax], 0
movzx ecx, word [esp + 4]
test cx, cx
je 0x419ea1
lea edx, [esp + 6]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x419e90
mov word [eax], 0
lea eax, [esp + 4]
push eax
push esi
call fcn.0043ec70
add esp, 8
mov edi, eax
mov ebx, dword [esp + 4]
jmp dword [0x444e70]
Function at 0x408320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
call fcn.004017a0
mov eax, dword [0x40c044]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x25], 0x45715672
mov dword [ebp - 0x21], 0x705a584e
mov dword [ebp - 0x1d], 0x536b4d65
mov dword [ebp - 0x19], 0x6d4d777a
mov dword [ebp - 0x15], 0x70747945
mov dword [ebp - 0x11], 0x6c6c642e
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x25]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4083ab
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_load_DLL._Error_code:__d_n
call fcn.00408434
mov eax, 1
jmp 0x40841a
mov dword [esp + 4], str.ZaNNxfXcUIWbjUESjOUY
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x408400
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_get_function_address._Error_code:__d_n
call fcn.00408434
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 1
jmp 0x40841a
mov eax, dword [ebp - 0x34]
call eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 0
mov edx, dword [ebp - 0xc]
sub edx, dword [0x40c044]
je 0x40842a
call fcn.004016b0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401290
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
and esp, 0xfffffff0
mov eax, 0
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.00401800
call sym.___main
mov dword [esp], str.K_toog_oruul:
call sym._printf
lea eax, [ebp - 8]
mov dword [esp + 4], eax
mov dword [esp], 0x40300f
call sym._scanf
cmp dword [ebp - 8], 9
jle 0x40133b
cmp dword [ebp - 8], 0x63
jg 0x40133b
mov ecx, dword [ebp - 8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Niilber_too:__d_n
call sym._printf
jmp 0x4013aa
mov dword [ebp - 0x14], 0
cmp dword [ebp - 8], 0
je 0x401397
mov edx, dword [ebp - 0x14]
mov eax, edx
shl eax, 2
add eax, edx
lea ebx, [eax + eax]
mov ecx, dword [ebp - 8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov eax, ecx
lea eax, [ebx + eax]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
mov dword [ebp - 8], eax
jmp 0x401342
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.Urvuu_too:__d_n
call sym._printf
mov dword [esp], str.pause
call sub.msvcrt.dll_system
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4019c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x40f056
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0040ecf8
sub byte [ebp - 0x31], dh
pop edx
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0040ed08
push eax
push esi
push dword [ebp + 8]
call fcn.0040ecbd
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
invalid

Function at 0x40f5dc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
invalid
test dword [ecx - 4], eax
Function at 0x40fc6e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0040ed08
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040ecbd
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0040ecf8
mov byte [ebx], bh
lea esp, [esi]
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.0040ecf8
jle 0x40fce8
cld
invalid
test ah, 0x80
loopne 0x40fd16
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.0040ed08
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040ecbd
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
push 0x104
call dword [ebp - 0x370]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
jne 0x40fda4
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x550]
movsx eax, byte [ebp + eax - 0x655]
cmp eax, 0x5c
jne 0x40fdc4
mov eax, dword [ebp - 0x550]
dec eax
mov dword [ebp - 0x550], eax
and dword [ebp - 0x338], 0
and dword [ebp - 0x3d0], 0
jmp 0x40fde1
mov eax, dword [ebp - 0x3d0]
inc eax
mov dword [ebp - 0x3d0], eax
cmp dword [ebp - 0x3d0], 0x104
jge 0x40fe48
mov eax, dword [ebp - 0x3d0]
movsx eax, byte [ebp + eax - 0x334]
and eax, 0x80
test eax, eax
je 0x40fe13
mov eax, dword [ebp - 0x3d0]
inc eax
mov dword [ebp - 0x3d0], eax
jmp 0x40fe46
mov eax, dword [ebp - 0x3d0]
movsx eax, byte [ebp + eax - 0x334]
cmp eax, 0x5c
jne 0x40fe32
mov eax, dword [ebp - 0x3d0]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp - 0x3d0]
movsx eax, byte [ebp + eax - 0x334]
test eax, eax
jne 0x40fe46
jmp 0x40fe48
jmp 0x40fdd4
mov eax, dword [ebp - 0x670]
add eax, dword [ebp - 0x384]
mov dword [ebp - 0x670], eax
invalid
Function at 0x407f38
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408310
mov byte [esp], al
cmp byte [esp], 0
jne 0x4080b8
test edi, edi
je 0x4080b8
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407ff8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407fd3
cmp edi, 0xffffffff
je 0x407f97
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407f97
mov byte [esp], 0
jmp 0x4080b8
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407fd3
test ebx, ebx
jne 0x407fc9
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407fc9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4080b8
call 0x408430
dec ebp
test ebp, ebp
jg 0x407f7c
cmp edi, 0xffffffff
je 0x407ff8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407ff6
mov byte [esp], 0
jmp 0x4080b8
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407f46
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407ff8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408124
mov edx, eax
mov ebx, dword [0x5d68f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40805c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40805a
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40805c
xor edi, edi
cmp byte [esp], 0
je 0x408082
mov ebx, dword [esi]
test bl, 1
jne 0x408098
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408062
mov byte [esp + 1], 1
jmp 0x408098
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408082
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40800f
cmp byte [esp], 0
je 0x4080b8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408e60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5d6058], 0
je 0x408ec7
cmp word [0x5d6344], 0xd7b2
jne 0x408e89
cmp dword [0x5d634c], 0
jbe 0x408e89
mov eax, 0x5d6340
call dword [0x5d635c]
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, 0x408ef4
call fcn.00409a08
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5d0032], 0
jne 0x408ee3
push 0
push 0x5d09c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409084
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 [0x5d0034], 0
je 0x4090af
mov edx, edi
mov eax, esi
call dword [0x5d0034]
mov ebx, eax
jmp 0x4090c0
mov eax, 8
call fcn.004066e0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5d6059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40904c
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 0x4090f0
mov eax, ebx
call fcn.004066fc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40b878
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 0x40b9dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004091c4
cmp si, word [0x5d0a00]
jb 0x40b910
cmp si, word [0x5d0c00]
ja 0x40b910
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b910
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5d0a00]
jae 0x40b8ea
mov edi, ebx
dec edi
jmp 0x40b90b
cmp si, word [ebx*8 + 0x5d0a00]
jbe 0x40b8fa
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b90b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5d0a04]
call fcn.0040b798
jmp 0x40b910
cmp edi, dword [ebp - 8]
jae 0x40b8d4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b9bf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b9bf
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.00409dac
push dword [ebp - 0x160]
push 0x40b9f8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409dac
push dword [ebp - 0x164]
push 0x40ba08
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409dac
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409fe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9e4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409224
ret
Function at 0x40bb90
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 0x40bc94
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5d8b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5d8ba0]
jne 0x40bbdc
mov eax, esi
mov edx, 0x5d8ba2
mov ecx, 0x55
call fcn.00409dac
push 0x5d8b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bc7e
push 0x5d8b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004091c4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bc4b
cmp byte [0x5d8b84], 0
je 0x40bc10
mov edx, esi
mov eax, ebx
call fcn.0040ba74
jmp 0x40bc4b
mov edx, esi
mov eax, ebx
call fcn.0040b878
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bc4b
cmp dword [esi], 0
je 0x40bc34
mov eax, esi
mov edx, 0x40bcac
call fcn.00409f04
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b878
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409f04
push 0x5d8b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5d8ba0], bx
mov eax, dword [esi]
call fcn.00409d08
mov ecx, eax
mov eax, 0x5d8ba2
mov edx, 0xaa
call fcn.0040b6f8
push 0x5d8b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc9b
lea eax, [ebp - 4]
call fcn.004091c4
ret
Function at 0x40c3d8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004092a8
xor eax, eax
push ebp
push 0x40c498
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409dac
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409f5c
mov eax, dword [ebx]
call fcn.0040c2a0
test al, al
jne 0x40c475
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409dac
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409f5c
mov eax, dword [ebx]
call fcn.0040c2a0
test al, al
jne 0x40c475
mov eax, ebx
call fcn.004091c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c49f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409224
lea eax, [ebp - 4]
call fcn.004091c4
ret

Function at 0x4208cc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420925
test eax, edx
je 0x420928
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4208e3
movzx eax, word [eax]
sub eax, ecx
jmp 0x42090a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x42090b
add ecx, 4
js 0x4208fb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420908
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42090a
xor eax, eax
ret
test eax, eax
je 0x420934
test edx, edx
jne 0x4208d4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x421c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x421c5d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x425944
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x42597d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040934c
jmp 0x425986
mov eax, ebx
mov edx, esi
call fcn.004095a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4