joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c010
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp], 0x5c5d5e5f
mov byte [esp + 4], 0
mov eax, 0xda106b6f
mov edi, 0xa5ef9490
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + edi + 0x5a106b70]
mov esi, eax
and esi, 0x64
mov ebx, edi
and ebx, 0x13
or ebx, esi
xor ebx, ebp
xor ebx, 0xe4
add bl, 0x30
mov byte [esp + edi + 0x5a106b70], bl
dec eax
inc edi
cmp eax, 0xda106b6a
jne 0x43c040
mov eax, dword [esp]
mov ebx, dword [0x44839c]
test ebx, ebx
je 0x43c0ce
xor ebp, ebp
mov edi, dword [0x4483a0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebp*8], 0x7e66a1b5
je 0x43c0a0
inc ebp
cmp ebx, ebp
jne 0x43c090
jmp 0x43c0ce
mov ebx, dword [edi + ebp*8 + 4]
cmp ebx, eax
je 0x43c0ce
lea eax, [esp + 8]
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push 0
push dword [esp + 0x44]
push 9
push ebx
push dword [0x4483a4]
call fcn.00437ec0
add esp, 0x30
cmp eax, 0x103
jne 0x43c179
mov dword [esp], 0x5c5d5e5f
mov byte [esp + 4], 0
mov eax, 0xda106b6f
mov ecx, 0xa5ef9490
nop
movzx esi, byte [esp + ecx + 0x5a106b70]
mov edi, eax
and edi, 0x64
mov edx, ecx
and edx, 0x13
or edx, edi
xor edx, esi
xor edx, 0xe4
add dl, 0x30
mov byte [esp + ecx + 0x5a106b70], dl
dec eax
inc ecx
cmp eax, 0xda106b6a
jne 0x43c0f0
mov eax, dword [esp]
mov ecx, dword [0x44839c]
test ecx, ecx
je 0x43c171
xor edx, edx
mov edi, dword [0x4483a0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x4e66b5a3
je 0x43c150
inc edx
cmp ecx, edx
jne 0x43c140
jmp 0x43c171
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x43c171
push 0
push 0
push dword [esp + 0x2c]
push 3
push ecx
push dword [0x4483a4]
call fcn.00437ec0
add esp, 0x18
test eax, eax
js 0x43c179
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x30]
test edx, edx
je 0x43c187
mov ecx, dword [esp + 0xc]
mov dword [edx], ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43c190
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov ebx, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x43c1b0
sar ebx, 1
mov ebp, ebx
and ebp, 0xfffd
mov ecx, ebx
and ecx, 2
or ebx, 2
imul ebx, ecx
xor ecx, 2
imul ecx, ebp
lea ebp, [ecx + ebx]
mov word [esp + 8], bp
add ecx, ebx
add ecx, 2
mov word [esp + 0xa], cx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x40
lea eax, [esp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0x5c5d5e5f
mov byte [esp + 4], 0
mov eax, 0xda106b6f
mov edi, 0xa5ef9490
nop
nop
movzx ecx, byte [esp + edi + 0x5a106b70]
mov ebp, eax
and ebp, 0x64
mov ebx, edi
and ebx, 0x13
or ebx, ebp
xor ebx, ecx
xor ebx, 0xe4
add bl, 0x30
mov byte [esp + edi + 0x5a106b70], bl
dec eax
inc edi
cmp eax, 0xda106b6a
jne 0x43c230
mov eax, dword [esp]
mov edi, dword [0x44839c]
test edi, edi
je 0x43c2b5
xor ebx, ebx
mov ebp, dword [0x4483a0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + ebx*8], 0x2df48de6
je 0x43c291
inc ebx
cmp edi, ebx
jne 0x43c280
jmp 0x43c2b5
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0x43c2b5
lea eax, [esp + 0x10]
push esi
push eax
push edx
push dword [esp + 0x4c]
push 4
push edi
push dword [0x4483a4]
call fcn.00437ec0
add esp, 0x1c
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401e1d
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x14]
and dword [esp + 4], 0
cmp dword [esp + 0x10], 0
mov cl, byte [eax]
mov dl, byte [eax + 1]
jle 0x401f1a
push ebx
push ebp
push esi
push edi
movzx esi, cl
movzx ebx, dl
mov ebp, 0x40f239
mov edi, 0x414658
push 0x2e
pop ecx
lea eax, [esi + 1]
cdq
idiv ecx
mov eax, dword [0x4140e4]
push 0x2e
movzx esi, dl
lea ecx, [esi + eax]
movzx eax, byte [ecx]
add eax, ebx
mov byte [esp + 0x16], dl
cdq
pop ebx
idiv ebx
mov eax, dword [0x4140e4]
push 0x2e
movzx ebx, dl
mov byte [esp + 0x17], dl
mov dl, byte [ecx]
add eax, ebx
mov byte [esp + 0x15], dl
mov dl, byte [eax]
mov byte [ecx], dl
mov cl, byte [esp + 0x15]
mov byte [eax], cl
mov ecx, dword [0x4140e4]
movzx eax, byte [ebx + ecx]
movzx ecx, byte [esi + ecx]
add eax, ecx
pop ecx
cdq
idiv ecx
push ebp
push edi
mov byte [esp + 0x19], dl
call fcn.00401a81
push eax
call fcn.00401e04
push ebp
push edi
call fcn.00401a81
push eax
call fcn.00401e04
push ebp
push edi
call fcn.00401a81
push eax
call fcn.00401e04
push ebp
push edi
call fcn.00401a81
push eax
call fcn.00401e04
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov edx, dword [0x4140e4]
add eax, ecx
movzx ecx, byte [esp + 0x41]
mov cl, byte [ecx + edx]
xor byte [eax], cl
add esp, 0x30
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x20]
jl 0x401e4c
mov cl, byte [esp + 0x12]
mov eax, dword [esp + 0x24]
mov dl, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
mov byte [eax], cl
mov byte [eax + 1], dl
pop ecx
pop ecx
ret
Function at 0x403272
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40f300
call fcn.00403f98
mov edi, 0x94
mov eax, edi
call fcn.004066f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x414278], ecx
mov eax, dword [esi + 4]
mov dword [0x414284], eax
mov edx, dword [esi + 8]
mov dword [0x414288], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41427c], esi
cmp ecx, 2
je 0x4032d2
or esi, 0x8000
mov dword [0x41427c], esi
shl eax, 8
add eax, edx
mov dword [0x414280], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40330d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40330d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403325
cmp eax, 0x20b
je 0x403312
mov dword [ebp - 0x1c], esi
jmp 0x403339
cmp dword [ecx + 0x84], 0xe
jbe 0x40330d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x403333
cmp dword [ecx + 0x74], 0xe
jbe 0x40330d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004042fc
pop ecx
test eax, eax
jne 0x40334d
push 0x1c
call fcn.0040324e
pop ecx
call fcn.00405926
test eax, eax
jne 0x40335e
push 0x10
call fcn.0040324e
pop ecx
call fcn.00406667
mov dword [ebp - 4], esi
call fcn.00406469
test eax, eax
jge 0x403377
push 0x1b
call fcn.00403229
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x415b38], eax
call fcn.00406347
mov dword [0x4140f8], eax
call fcn.004062a5
test eax, eax
jge 0x40339d
push 8
call fcn.00403229
pop ecx
call fcn.00406072
test eax, eax
jge 0x4033ae
push 9
call fcn.00403229
pop ecx
push 1
call fcn.00405b94
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4033c4
push eax
call fcn.00403229
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00406015
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4033e5
movzx eax, word [ebp - 0x40]
jmp 0x4033e8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401fd9
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x403406
push edi
call fcn.00405cc1
call fcn.00405ce3
jmp 0x403438
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00403fd3
ret
Function at 0x405bfe
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40f670
call fcn.00403f98
push 8
call fcn.004042b1
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4142b8], esi
jne 0x405c32
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4142b4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4142b0], al
cmp dword [ebp + 0xc], edi
jne 0x405c7c
cmp dword [0x415b08], edi
je 0x405c6c
mov eax, dword [0x415b04]
sub eax, 4
mov dword [0x415b04], eax
cmp eax, dword [0x415b08]
jb 0x405c6c
mov eax, dword [eax]
cmp eax, edi
je 0x405c4d
call eax
jmp 0x405c4d
push 0x41304c
mov eax, 0x413044
call fcn.00405b7c
pop ecx
push 0x413058
mov eax, 0x413050
call fcn.00405b7c
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x405cad
cmp dword [ebp + 0x10], edi
jne 0x405cbb
mov dword [0x4142b8], esi
push dword [ebp + 8]
call fcn.00405b3a
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x405cba
push 8
call fcn.004041fc
pop ecx
ret
call fcn.00403fd3
ret

Function at 0x405d01
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4130b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x413220]
je 0x405d36
inc eax
cmp eax, 0x13
jb 0x405d27
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x413220]
jne 0x405e5c
mov eax, dword [0x414100]
cmp eax, 1
je 0x405e34
cmp eax, edx
jne 0x405d66
cmp dword [0x4130d8], 1
je 0x405e34
cmp ecx, 0xfc
je 0x405e5c
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405d9c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402b40
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402330
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405dd0
mov eax, edi
push eax
call fcn.00402330
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f3bc
push edi
call fcn.00406ec0
add esp, 0x10
push edi
call fcn.00402330
push dword [esi + 0x413224]
mov ebx, eax
call fcn.00402330
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004066f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402b40
push edi
push ebx
call fcn.00402b50
push 0x40f3b8
push ebx
call fcn.00402b50
push dword [esi + 0x413224]
push ebx
call fcn.00402b50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00406dc5
add esp, 0x2c
jmp 0x405e5c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x413224]
push dword [esi]
call fcn.00402330
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00402b31
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40684c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4130b0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x40687d
xor eax, eax
jmp 0x406a06
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x415a00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4068b9
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0040877b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x406994
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4069d2
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x40691d
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40690e
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4068ee
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40695d
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x406966
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4068df
jmp 0x406968
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x406a01
cmp dword [ebp - 0x6c], edi
je 0x4069d2
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4069c7
call fcn.004072a8
mov dword [eax], 9
call fcn.004072b1
mov dword [eax], esi
jmp 0x4069fc
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4069bc
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x406968
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x406968
push dword [ebp - 0x6c]
call fcn.004072ba
pop ecx
jmp 0x4069fc
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4069ea
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4069ea
xor eax, eax
jmp 0x406a04
call fcn.004072a8
mov dword [eax], 0x1c
call fcn.004072b1
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x406a04
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00402b31
add ebp, 0x3a0
leave
ret
Function at 0x406dc5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4143d0], ebx
push esi
push edi
jne 0x406e45
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x406e80
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4143d0], eax
je 0x406e80
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4143d4], eax
call esi
cmp dword [0x414278], 2
mov dword [0x4143d8], eax
jne 0x406e45
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4143e0], eax
je 0x406e45
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4143dc], eax
mov eax, dword [0x4143dc]
test eax, eax
je 0x406e8a
call eax
test eax, eax
je 0x406e71
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4143e0]
test eax, eax
je 0x406e71
test byte [ebp - 8], 1
jne 0x406e8a
cmp dword [0x414284], 4
jb 0x406e84
or byte [ebp + 0x12], 0x20
jmp 0x406ea9
xor eax, eax
jmp 0x406eb9
or byte [ebp + 0x12], 4
jmp 0x406ea9
mov eax, dword [0x4143d4]
test eax, eax
je 0x406ea9
call eax
mov ebx, eax
test ebx, ebx
je 0x406ea9
mov eax, dword [0x4143d8]
test eax, eax
je 0x406ea9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4143d0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406fe4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x407012
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x407019
cmp ebx, dword [eax + 4]
jae 0x407019
xor eax, eax
jmp 0x407209
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40702a
xor eax, eax
inc eax
jmp 0x407208
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407040
cmp ecx, edx
jae 0x407185
cmp dword [eax + 4], 0
je 0x407049
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407031
cmp dword [ebp + 8], 0
je 0x40706b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407185
cmp eax, esi
jae 0x407185
mov eax, dword [0x4143e8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x407090
cmp dword [esi*4 + 0x4143f0], edi
je 0x407189
inc esi
cmp esi, eax
jl 0x40707e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407205
cmp dword [ebp - 8], 0x1000000
jne 0x407205
test byte [ebp - 0xc], 0xcc
je 0x40710e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407205
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407205
cmp word [eax + 0x18], 0x10b
jne 0x407205
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407205
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40710e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40710e
test byte [ecx + 0x27], 0x80
jne 0x407185
push 1
push 0x414430
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x407022
mov ecx, dword [0x4143e8]
test ecx, ecx
mov edx, ecx
jle 0x407142
lea eax, [ecx*4 + 0x4143ec]
cmp dword [eax], edi
je 0x407142
dec edx
sub eax, 4
test edx, edx
jg 0x407136
test edx, edx
jne 0x407173
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40714f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407167
lea eax, [edx*4 + 0x4143f0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407155
cmp ecx, 0x10
jge 0x407173
inc ecx
mov dword [0x4143e8], ecx
push 0
push 0x414430
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407022
xor eax, eax
jmp 0x407208
test esi, esi
jle 0x407022
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x414430
call ebx
test eax, eax
jne 0x407022
cmp dword [esi*4 + 0x4143f0], edi
je 0x4071df
mov eax, dword [0x4143e8]
lea esi, [eax - 1]
test esi, esi
jl 0x4071cd
cmp dword [esi*4 + 0x4143f0], edi
je 0x4071c9
dec esi
jns 0x4071bd
test esi, esi
jge 0x4071dd
cmp eax, 0x10
jge 0x4071d8
inc eax
mov dword [0x4143e8], eax
lea esi, [eax - 1]
jmp 0x4071df
je 0x4071f7
xor ecx, ecx
test esi, esi
jl 0x4071f7
lea eax, [ecx*4 + 0x4143f0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4071e5
push 0
push 0x414430
call ebx
jmp 0x407022
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ad3e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004066f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40add9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x414278]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40add9
cmp eax, 1
je 0x40adfa
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40add9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40ada6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40add5
xor eax, eax
inc eax
jmp 0x40ae19
cmp edi, eax
jae 0x40addd
xor eax, eax
jmp 0x40ae19
cmp eax, esi
jae 0x40ade4
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x414278]
jmp 0x40adfd
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b523
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4112e0
call fcn.00403f98
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x414598], edi
jne 0x40b567
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40b552
mov dword [0x414598], ebx
jmp 0x40b567
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40b567
mov dword [0x414598], 2
mov eax, dword [0x414598]
cmp eax, ebx
jne 0x40b587
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x40b64a
cmp eax, 2
je 0x40b590
cmp eax, edi
jne 0x40b5b8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x40b5a3
mov eax, dword [0x414490]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x40b5bf
xor eax, eax
jmp 0x40b64a
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004066f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x40b5f2
cmp esi, edi
jne 0x40b608
push dword [ebp - 0x20]
call fcn.00402cf2
pop ecx
mov esi, eax
cmp esi, edi
je 0x40b5b8
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40b63b
cmp dword [ebp + 0x14], edi
jne 0x40b625
push edi
push edi
jmp 0x40b62b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x40b647
push esi
call fcn.004040ed
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00403fd3
ret
Function at 0x40b653
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4112f0
call fcn.00403f98
xor esi, esi
cmp dword [0x41459c], esi
jne 0x40b697
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40b682
mov dword [0x41459c], edi
jmp 0x40b697
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40b697
mov dword [0x41459c], 2
mov eax, dword [0x41459c]
cmp eax, 2
je 0x40b778
cmp eax, esi
je 0x40b778
cmp eax, 1
jne 0x40b6dc
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x40b6c5
mov eax, dword [0x414490]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x40b6e3
xor eax, eax
jmp 0x40b78a
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004066f0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x40b719
cmp edi, esi
jne 0x40b734
lea eax, [ebx + ebx]
push eax
call fcn.00402cf2
pop ecx
mov edi, eax
cmp edi, esi
je 0x40b6dc
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40b767
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x40b751
push esi
push esi
jmp 0x40b757
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x40b773
push edi
call fcn.004040ed
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x40b78a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00403fd3
ret