joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001cd20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da18], 0
mov eax, dword [ebp + 8]
je 0x1001cd48
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001cd62
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.10013ee4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022ac0
leave
ret 4

Function at 0x1001cf30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da18], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001cf66
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cfc5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.10013ee4
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.10013ee4
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.10013ee4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022ac0
leave
ret 0x10

Function at 0x1001cfe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da18], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001d00c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001d03d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001d03b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10013ee4
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001d03d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022ac0
leave
ret 8
Function at 0x40d3b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x45a470], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x45a46c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x45a470], edx
cmp eax, 0x26f
jl 0x40d3b8
mov dword [0x449d80], 0x270
ret

Function at 0x40d3f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x45a474]
mov ebx, dword [eax*4 + 0x45a470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x45aaa4]
mov dword [eax*4 + 0x45a470], edx
cmp eax, 0xe2
jl 0x40d3f8
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x45a474]
mov ebx, dword [eax*4 + 0x45a470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x45a0e4]
mov dword [eax*4 + 0x45a470], edx
cmp eax, 0x26e
jl 0x40d448
mov edx, dword [0x45a470]
mov ecx, dword [0x45ae2c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x45aaa0]
mov dword [0x45ae2c], eax
mov dword [0x449d80], 0
pop ebx
ret

Function at 0x40d4d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x449d80]
add dword [0x449d80], 1
mov eax, dword [0x459020]
cmp eax, dword [0x4494d0]
jne 0x40d4f3
cmp ebx, 0x271
jb 0x40d514
mov eax, dword [0x459020]
call fcn.0040d3b0
not dword [0x459020]
mov eax, dword [0x459020]
mov dword [0x4494d0], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40d530
call fcn.0040d3f0
xor ebx, ebx
mov dword [0x449d80], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x45a470]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x40f1e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x449230]
cmp ax, 0xcb
je 0x40f2ec
cmp ax, 0xcc
je 0x40f2ec
lea esi, [esi]
mov edx, dword [0x45b070]
test edx, edx
je 0x40f215
mov eax, dword [0x45af20]
call edx
mov ebx, eax
jmp 0x40f21a
mov ebx, 0x45af24
cmp word [0x45af10], 0
jle 0x40f240
mov eax, 0x45aef0
call fcn.0040f450
mov eax, ebx
call fcn.0040eda0
mov eax, ebx
call fcn.0040ee10
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x40f262
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40f25d
mov edx, edi
mov eax, ebx
call fcn.0040e210
jmp 0x40f260
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40f248
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x45af10], 0
jle 0x40f2ec
mov edx, 0x45ae30
mov eax, ebx
call fcn.0040e350
mov edi, eax
test edi, edi
je 0x40f2bc
mov eax, dword [0x45aec4]
mov dword [edi + 0xc], eax
cmp dword [0x45aec4], 0
je 0x40f2b0
mov eax, dword [0x45aec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x45aec4], eax
nop
sub word [0x45af10], 1
cmp word [0x45af10], 0
sete bl
mov eax, 0x45aef0
call fcn.0040f470
test bl, bl
je 0x40f2ec
mov eax, 0x45aef0
call fcn.0040f440
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x411710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004116f0
push ebp
push 0x412ad0
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x41183a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.00409e90
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x41179f
mov edx, 0x45a2f0
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x4117f1
call sub.kernel32.dll_GetLastError
call fcn.00402ba0
lea eax, [ebp - 0x10]
call fcn.00408c50
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.004090f0
mov edx, dword [ebp - 0x14]
mov ecx, 0x44c2a8
lea eax, [ebp - 0x10]
call fcn.00408f80
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00409830
jmp 0x411888
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x41180a
cmp eax, ecx
je 0x411814
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.00409e90
cmp byte [0x449490], 0
jne 0x411888
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040a3e0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.00409870
lea esi, [esi]
jmp 0x411888
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.00409e90
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x41185e
mov eax, 0x45a2f0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x449490], 0
jne 0x411888
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040a3e0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.00409870
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004116f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411c60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x45a260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00411e40
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x45a260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00402140
call sub.kernel32.dll_GetCommandLineA
mov dword [0x4492a0], eax
mov ebx, eax
jmp 0x411e03
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x411ce8
cmp byte [ebx], 0
je 0x411e0c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x411d63
mov al, byte [ebx]
cmp al, 1
jb 0x411d58
sub al, 0x20
jbe 0x411d28
sub al, 2
je 0x411d3c
jmp 0x411d58
mov al, byte [ebp - 0x114]
test al, al
je 0x411d68
add dword [ebp - 0x110], 1
jmp 0x411d60
cmp byte [ebx + 1], 0x22
je 0x411d53
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x411d60
add ebx, 1
jmp 0x411d60
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x411d18
test dword [ebp - 0x10c], 0xffffffff
je 0x411dfc
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00411e40
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x45a260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x411df3
mov al, byte [ebx]
cmp al, 1
jb 0x411de8
sub al, 0x20
jbe 0x411db8
sub al, 2
je 0x411dcc
jmp 0x411de8
mov al, byte [ebp - 0x114]
test al, al
je 0x411df8
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x411df0
cmp byte [ebx + 1], 0x22
je 0x411de3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x411df0
add ebx, 1
jmp 0x411df0
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x411da8
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x411ceb
mov ebx, dword [ebp - 0x10c]
mov dword [0x45a250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x45a260
call fcn.0040f020
mov eax, dword [0x45a260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413140
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
cmp ecx, 1
jb 0x413174
xor esi, esi
lea esi, [esi]
add esi, 1
mov al, bl
xor al, byte [edx]
and eax, 0xff
mov edi, ebx
shr edi, 8
xor edi, dword [eax*4 + 0x45b9f0]
mov ebx, edi
add edx, 1
cmp ecx, esi
ja 0x413150
lea esi, [esi]
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4150e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x508]
push ebx
push esi
push edi
mov ecx, eax
mov dword [ebp - 0x504], edx
lea eax, [ebp - 0x200]
mov edx, 0xff
call fcn.00402440
mov eax, dword [ebp - 0x504]
mov byte [eax], 0
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x508], eax
mov esi, eax
jmp 0x4151c6
lea edx, [ebp - 0x100]
mov eax, esi
call fcn.00403280
lea edx, [ebp - 0x100]
mov ecx, 1
mov al, 0x3d
call fcn.00403820
mov edi, eax
lea eax, [ebp - 0x200]
lea edx, [ebp - 0x300]
call fcn.004038a0
lea ebx, [ebp - 0x300]
lea eax, [ebp - 0x500]
push eax
lea ecx, [edi - 1]
lea eax, [ebp - 0x100]
mov edx, 1
call fcn.004036b0
lea eax, [ebp - 0x500]
lea edx, [ebp - 0x400]
call fcn.004038a0
lea eax, [ebp - 0x400]
mov edx, ebx
call fcn.00403260
test eax, eax
jne 0x4151b8
push dword [ebp - 0x504]
movzx eax, byte [ebp - 0x100]
sub eax, edi
mov ecx, eax
lea edx, [edi + 1]
lea eax, [ebp - 0x100]
call fcn.004036b0
jmp 0x4151cf
mov eax, esi
call fcn.00403290
add eax, esi
add eax, 1
mov esi, eax
cmp byte [esi], 0
jne 0x415120
mov eax, dword [ebp - 0x508]
push eax
call sub.kernel32.dll_FreeEnvironmentStringsA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417770
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov dx, 0xffff
lea esi, [esi]
add dx, 1
movsx eax, dx
mov ecx, eax
xor bx, bx
lea esi, [esi]
add bx, 1
mov eax, ecx
and eax, 1
je 0x4177a1
mov eax, ecx
shr eax, 1
xor eax, 0xedb88320
mov ecx, eax
jmp 0x4177a3
shr ecx, 1
cmp bx, 8
jl 0x417788
movzx eax, dx
mov dword [eax*4 + 0x45d770], ecx
cmp dx, 0xff
jl 0x417778
pop ebx
ret

Function at 0x4177c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov edi, edx
mov esi, ecx
cmp dword [0x45d774], 0
jne 0x4177d8
call fcn.00417770
nop
mov ecx, edi
not ebx
mov eax, ebx
cmp esi, 1
jl 0x41780c
xor ebx, ebx
lea esi, [esi]
add ebx, 1
mov dl, al
xor dl, byte [ecx]
and edx, 0xff
mov edi, eax
shr edi, 8
xor edi, dword [edx*4 + 0x45d770]
mov eax, edi
add ecx, 1
cmp esi, ebx
jg 0x4177e8
mov esi, esi
not eax
pop edi
pop esi
pop ebx
ret
Function at 0x4193a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00419390
push ebp
push 0x412ad0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4194b8
mov al, byte [ebp - 0x110]
test al, al
je 0x419481
lea eax, [ebp - 0xc]
call fcn.004025f0
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00403a00
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00407d90
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00408ad0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44d044
call fcn.0042ef70
mov edx, 0x41940a
mov ecx, ebp
call fcn.00412990
jmp 0x4194b8
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44d044
call fcn.0042ef70
mov edx, 0x419481
mov ecx, ebp
call fcn.00412990
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x419584
mov al, byte [ebp - 0x110]
test al, al
je 0x41954d
lea eax, [ebp - 0xc]
call fcn.004025f0
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00403a00
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00407d90
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00408ad0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44d044
call fcn.0042ef70
mov edx, 0x4194d6
mov ecx, ebp
call fcn.00412990
jmp 0x419584
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x44d044
call fcn.0042ef70
mov edx, 0x41954d
mov ecx, ebp
call fcn.00412990
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.004190d0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00419390
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4301a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov byte [ebp - 0xc], cl
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4301be
mov eax, 0x45a2f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x4301f6
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x4301da
clc
jmp 0x4301e1
bt dword [0x451c38], eax
jb 0x4301f2
mov eax, ebp
call fcn.004302e0
test al, al
je 0x4301f2
mov bl, 1
jmp 0x430224
xor bl, bl
jmp 0x430224
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x44aa40]
sete bl
mov al, byte [ebp - 0xc]
and al, bl
je 0x430224
and esi, 0x400
je 0x430224
mov eax, ebp
call fcn.00430250
mov bl, al
lea esi, [esi]
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4307d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004307c0
push ebp
push 0x412ad0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x45deec]
xor edx, edx
call fcn.00407510
mov dword [ebx*4 + 0x45df0c], 0xffffffff
cmp ebx, 7
jl 0x4307f8
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x430884
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00407f00
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00427680
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x430884
push 4
push ebx
push esi
mov eax, 0x4306a0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x430730
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004307c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430fd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor edx, edx
push fcn.00430fa0
push ebp
push 0x412ad0
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00427320
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00407510
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.00408ad0
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00407510
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x4310dc
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.00407e60
mov eax, dword [ebp - 8]
test eax, eax
je 0x431067
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.00408ad0
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00408470
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00408310
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00427320
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00408080
test eax, eax
jne 0x4310d4
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4310c3
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00408310
jmp 0x4310e5
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x431050
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeEnvironmentStringsA
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00430fa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431120
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x45df50], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x45ddb0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x45ddc0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x45ddd0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x45dde0], eax
mov edx, 0x45ddf1
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00402140
lea eax, [ebp - 0x80]
call fcn.00403290
mov byte [0x45ddf0], al
mov eax, str.kernel32
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x45df60], eax
test eax, eax
je 0x4311c0
mov eax, str.GetDiskFreeSpaceExA
push eax
push dword [0x45df60]
call sub.kernel32.dll_GetProcAddress
mov dword [0x45df50], eax
nop
cmp dword [0x45ddc0], 6
jae 0x4311d4
mov dword [0x44a300], 0
nop
cmp dword [0x45ddc0], 6
jb 0x4311f0
cmp dword [0x45ddd0], 1
jb 0x4311f0
mov dword [0x44a310], 2
mov esp, ebp
pop ebp
ret
Function at 0x4370b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], 0x55
mov eax, dword [ebp - 8]
mov edx, str.default
call fcn.00408080
test eax, 0xffffffff
je 0x4370ee
jmp 0x4370d7
mov edx, dword [0x44a2b0]
mov eax, dword [ebp - 8]
call fcn.00408080
test eax, 0xffffffff
je 0x4370ee
jmp 0x437117
push 1
push 0
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x437100
mov eax, 0x45a2f0
push eax
mov eax, str.open
push eax
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta byte [ebp - 0xc]
jmp 0x437145
push 1
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x437127
mov eax, 0x45a2f0
push eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x437134
mov eax, 0x45a2f0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta byte [ebp - 0xc]
mov al, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4381a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov byte [ebp - 0xc], cl
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0x1c], eax
cmp eax, 2
jle 0x43824a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x438266
mov dword [ebp - 0x20], 0xffffffff
lea esi, [esi]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov dx, word [ebp + edx*2 - 0x18]
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x20]
mov dx, word [ebp + edx*2 - 0x18]
cmp dx, 0x20
jb 0x438266
sub dx, 0x20
je 0x438240
sub dx, 0x80
je 0x438240
sub dx, 0x1f62
jb 0x438266
sub dx, 1
jbe 0x438240
sub dx, 6
je 0x438240
sub dx, 0x26
jne 0x438266
nop
jmp 0x438240
cmp eax, dword [ebp - 0x20]
jg 0x4381e8
lea esi, [esi]
jmp 0x438266
cmp dword [ebp - 0x1c], 2
jne 0x43825a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x438266
mov al, byte [ebp - 0xc]
call fcn.00409b70
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x4382e4
sub ax, 0x21
je 0x4382f8
sub ax, 0x17
je 0x438304
sub ax, 0x222
je 0x438310
sub ax, 0x392
je 0x438318
sub ax, 1
je 0x438320
sub ax, 0x1996
je 0x438328
sub ax, 1
je 0x438330
sub ax, 6
je 0x438338
sub ax, 0xb
je 0x438348
sub ax, 0x1b
je 0x438340
sub ax, 0x367
je 0x438350
jmp 0x438358
mov ax, word [ebp - 0x24]
call fcn.00409be0
mov byte [ebp - 0x10], al
jmp 0x438360
mov byte [ebp - 0x10], 0x20
jmp 0x438360
mov byte [ebp - 0x10], 0x2e
jmp 0x438360
mov byte [ebp - 0x10], 0x27
jmp 0x438360
mov byte [ebp - 0x10], 0x2c
jmp 0x438360
mov byte [ebp - 0x10], 0x27
jmp 0x438360
mov byte [ebp - 0x10], 0x20
jmp 0x438360
mov byte [ebp - 0x10], 0x20
jmp 0x438360
mov byte [ebp - 0x10], 0x20
jmp 0x438360
mov byte [ebp - 0x10], 0x20
jmp 0x438360
mov byte [ebp - 0x10], 0x2d
jmp 0x438360
mov byte [ebp - 0x10], 0x27
jmp 0x438360
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret