joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407db0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x23f0
call fcn.00412d90
mov eax, dword [0x45e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov eax, edx
lea ecx, [ebp - 0x23e4]
mov dword [ebp - 0x23ec], eax
push ecx
lea ecx, [ebp - 0x23f0]
mov dword [ebp - 0x23e8], ebx
push ecx
push 0x23dc
lea ecx, [ebp - 0x23e0]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x407eb5
xor edi, edi
cmp dword [ebp - 0x23e4], edi
jbe 0x407e9f
lea esi, [ebp - 0x23e0]
nop dword [eax]
push 0xf01ff
push dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp dword [ebp - 0x23ec], 0
mov ebx, eax
je 0x407eb5
mov ecx, dword [ebp - 0x23e8]
mov edx, ebx
push 0x1e
call fcn.00407db0
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esi + 0xc]
cmp eax, 2
je 0x407e64
cmp eax, 4
je 0x407e64
cmp eax, 5
jne 0x407e8d
movzx eax, word [0x45ff40]
push dword [esi]
imul eax, eax, 0x104
push 0x104
add eax, 0x45ff50
push eax
call fcn.0041c03e
add esp, 0xc
inc word [0x45ff40]
mov ebx, dword [ebp - 0x23e8]
inc edi
add esi, 0x24
cmp edi, dword [ebp - 0x23e4]
jb 0x407e20
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411cb8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411cb8
mov esp, ebp
pop ebp
ret
Function at 0x408000
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450ab6
mov eax, dword fs:[0]
push eax
mov eax, 0x2428
call fcn.00412d90
mov eax, dword [0x45e024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2428], esi
lea eax, [ebp - 0x242c]
push eax
lea eax, [ebp - 0x2430]
push eax
push 0x23dc
lea eax, [ebp - 0x23f4]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x4081ff
xor ebx, ebx
cmp dword [ebp - 0x242c], ebx
jbe 0x4081fb
lea edi, [ebp - 0x23f4]
nop dword [eax]
push 0xf01ff
push dword [edi]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4081ff
mov ecx, dword [ebp - 0x2428]
mov edx, esi
push 0x1e
call fcn.00408000
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x2414], 0
mov dword [ebp - 0x2410], 0xf
mov byte [ebp - 0x2424], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4080d3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2424]
call fcn.00409910
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2424]
cmp dword [ebp - 0x2410], 0x10
mov dword [ebp - 0x23fc], 0
cmovae edx, dword [ebp - 0x2424]
mov eax, edx
mov dword [ebp - 0x23f8], 0xf
mov byte [ebp - 0x240c], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408124
sub eax, esi
lea ecx, [ebp - 0x240c]
push eax
push edx
call fcn.00409910
mov esi, dword [ebp - 0x2428]
lea edx, [ebp - 0x240c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00408230
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x23f8]
cmp edx, 0x10
jb 0x408193
mov ecx, dword [ebp - 0x240c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408189
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40821d
push edx
push ecx
call fcn.004120fb
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2410]
mov dword [ebp - 0x23fc], 0
mov dword [ebp - 0x23f8], 0xf
mov byte [ebp - 0x240c], 0
cmp edx, 0x10
jb 0x4081eb
mov ecx, dword [ebp - 0x2424]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4081e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40821d
push edx
push ecx
call fcn.004120fb
add esp, 8
inc ebx
add edi, 0x24
cmp ebx, dword [ebp - 0x242c]
jb 0x408080
mov al, 1
jmp 0x408201
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00411cb8
mov esp, ebp
pop ebp
ret
call fcn.0041c6cd
int3
Function at 0x408230
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450af8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x45e024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
cmp dword [esi + 0x14], 0x10
mov bl, 1
mov eax, esi
jb 0x408269
mov eax, dword [esi]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x408283
xor al, al
jmp 0x408407
push esi
mov edx, str.__stopping_service:
lea ecx, [ebp - 0x2c]
call fcn.0040a3a0
add esp, 4
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00401ca0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4082dd
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4082d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408423
push edx
push ecx
call fcn.004120fb
add esp, 8
xor esi, esi
nop
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4083fc
cmp dword [ebp - 0x44], 1
je 0x408398
test esi, esi
jne 0x408316
lea eax, [ebp - 0x48]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4083fc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 3
push 0x459d84
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00409910
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.00401ca0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40838c
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408382
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408423
push edx
push ecx
call fcn.004120fb
add esp, 8
inc esi
cmp esi, 0x1e
jb 0x4082e0
jmp 0x4083fe
push 9
push str.__stopped
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00409910
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00401ca0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4083f8
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4083ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408428
push edx
push ecx
call fcn.004120fb
add esp, 8
mov bl, 1
jmp 0x4083fe
xor bl, bl
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00411cb8
mov esp, ebp
pop ebp
ret
call fcn.0041c6cd
call fcn.0041c6cd
int3
Function at 0x40d290
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450d7f
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x45e024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0xc
mov dword [ebp - 0x98], esi
mov dword [esi], vtable.DiasInstall::FirewallPeckerManager.0
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
call fcn.00411cc9
mov edi, eax
add esp, 4
mov dword [ebp - 0x9c], edi
mov ebx, dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
push 0
mov dword [edi], vtable.DiasInstall::FirewallPecker.0
call ebx
mov dword [edi + 4], eax
test eax, eax
jns 0x40d311
push 2
push 0
call ebx
mov dword [edi + 4], eax
lea eax, [edi + 8]
mov byte [ebp - 4], 2
push eax
push 0x45a5ec
push 1
push 0
push 0x45a6c8
mov dword [edi], vtable.DiasInstall::FirewallPecker_FWAS.0
mov dword [eax], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x40d3df
mov dword [esi + 4], edi
jmp 0x40d379
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00411cb8
mov esp, ebp
pop ebp
ret
push str.FirewallPcker_FWAS::FirewallPcker_FWAS__
lea ecx, [ebp - 0x2c]
call fcn.00409060
push str.CoCreateInstance___fail
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00409060
push ebx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040d0d0
push 0x45ccf4
lea eax, [ebp - 0x6c]
push eax
call fcn.0041374a
int3
Function at 0x40d720
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450e48
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x45e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6c], esi
push 0
mov dword [ebp - 0x70], esi
mov edi, dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
mov dword [esi], vtable.DiasInstall::FirewallPecker.0
call edi
mov dword [esi + 4], eax
test eax, eax
jns 0x40d775
push 2
push 0
call edi
mov dword [esi + 4], eax
lea edi, [esi + 8]
mov dword [ebp - 4], 0
push edi
push 0x45a670
push 1
push 0
lea ebx, [esi + 0xc]
mov dword [esi], vtable.DiasInstall::FirewallPecker_FW.0
push 0x45a618
mov dword [edi], 0
mov dword [ebx], 0
mov dword [esi + 0x10], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x6c], eax
test eax, eax
js 0x40d84c
mov ecx, dword [edi]
test ecx, ecx
je 0x40d84c
mov eax, dword [ecx]
push ebx
push ecx
call dword [eax + 0x1c]
mov dword [ebp - 0x6c], eax
test eax, eax
js 0x40d816
mov edx, dword [ebx]
test edx, edx
je 0x40d816
mov ecx, dword [edx]
lea eax, [esi + 0x10]
push eax
push edx
call dword [ecx + 0x1c]
mov dword [ebp - 0x6c], eax
test eax, eax
js 0x40d87a
cmp dword [esi + 0x10], 0
je 0x40d87a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411cb8
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push str.FirewallPcker_FW::FirewallPcker_FW
lea ecx, [ebp - 0x40]
call fcn.00409060
push str.get_LocalPolicy___fail
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00409060
push dword [ebp - 0x6c]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
jmp 0x40d8b6
push str.FirewallPcker_FW::FirewallPcker_FW
lea ecx, [ebp - 0x40]
call fcn.00409060
push str.CoCreateInstance___fail
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00409060
push dword [ebp - 0x6c]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x28]
jmp 0x40d8b6
mov eax, dword [ebx]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push str.FirewallPcker_FW::FirewallPcker_FW
lea ecx, [ebp - 0x28]
call fcn.00409060
push str.get_CurrentProfile___fail
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00409060
push dword [ebp - 0x6c]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040d0d0
push 0x45ccf4
lea eax, [ebp - 0x68]
push eax
call fcn.0041374a
int3
Function at 0x43806f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00437a32

Function at 0x43a7b2
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043a686
Function at 0x4727e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x472805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x472878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x47283a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x47286d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x47286b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x472831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4727fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x402c00
pop dword [ebp - 0x18]
mov eax, 0x72ae04d6
sub eax, 0x726dd8d6
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x83a6d88
sub dword [ebp - 0x28], 0xb9e8283d
mov dword [ebp - 0x24], 0x1775419b
add dword [ebp - 0x24], 0x1abe0aaa
mov dword [ebp - 0x20], 0x500d3b64
add dword [ebp - 0x20], 0xfc3f08ca
mov dword [ebp - 0x1c], 0xb30b8
sub dword [ebp - 0x1c], 0xb30b8
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x40a6ecdd
add dword [ebp - 0x28], 0x33cb7c79
mov dword [ebp - 0x24], 0x6d1dc27a
add dword [ebp - 0x24], 0xd44e9efb
mov dword [ebp - 0x20], 0xba7ea4c3
sub dword [ebp - 0x20], 0x570f3857
mov dword [ebp - 0x1c], 0xd762e5d9
sub dword [ebp - 0x1c], 0xd762e5d9
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x36d76
push 0
call eax
mov ecx, 0x4025dba7
add ecx, 0xbfda6cf5
xor esi, esi
add esi, eax
mov edi, 0x411000
add edi, dword [ebp - 0x18]
mov edx, 0x505f8ca8
xor dword [ebp - 0x10], esi
mov ebx, dword [edi]
sub ebx, edx
xor dword [ebp - 0xc], esi
mov dword [esi], ebx
sub dword [ebp - 0x10], 0x694684e
add esi, 4
add edi, 4
loop 0x402d0e
add eax, 0xbda082ae
add eax, 0x42609295
mov ebx, eax
add eax, 0xcdfc2496
sub eax, 0xcdfc2491
mov ecx, 0xf8fd0a2b
add ecx, 0x742f5d5
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x418870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push 0xa
push 0x4a86c4
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41891a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41891a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41891a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 8], eax
test eax, eax
je 0x41891a
push 0x44
call fcn.004918b8
add esp, 4
test eax, eax
je 0x4188e4
mov esi, eax
call fcn.004170c0
mov ecx, eax
jmp 0x4188e6
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0xc]
call fcn.00474580
mov ecx, dword [edi + 0xac8]
inc dword [0x4cb40c]
mov dword [0x4c942c], ecx
mov eax, 3
pop esi
add esp, 0x10
ret 8
mov edx, dword [esp + 0x1c]
push edx
push str.Could_not_extract_script_from_EXE.
mov ecx, edi
call fcn.00430b90
pop esi
add esp, 0x10
ret 8
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x407550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40755f
pop dword [ebp - 0x24]
mov eax, 0x40755f
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3c58e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x5664b83a
add ecx, 0xa99b9a73
xor edx, edx
add edx, eax
mov ebx, 0x4786263d
add ebx, 0xb8bb51c3
add ebx, dword [ebp - 0x24]
mov edi, 0xd90f1772
sub edi, 0x21154f4d
sub dword [ebp - 0x1c], 0x322cc65d
mov esi, dword [ebx]
xor dword [ebp - 0x10], ecx
sub esi, edi
xor dword [ebp - 0x18], ecx
mov dword [edx], esi
sub dword [ebp - 0x14], esi
add edx, 0x5c4887ec
sub edx, 0x5c4887e8
add ebx, 4
loop 0x4075b6
add eax, 0x4dd80a88
sub eax, 0x4dd6cd01
mov ebx, eax
add eax, 5
mov ecx, 0x41c01285
sub ecx, 0x41801285
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x29a010c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x29a010d6
pop dword [ebp - 0x28]
mov eax, 0x29a010d6
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xa3fe449e
sub dword [ebp - 0x38], 0x55abff53
mov dword [ebp - 0x34], 0x6dc6ed5b
add dword [ebp - 0x34], 0xc46c5eea
mov dword [ebp - 0x30], 0x8609fdf1
add dword [ebp - 0x30], 0xc642463d
mov dword [ebp - 0x2c], 0xd2c871bd
sub dword [ebp - 0x2c], 0xd2c871bd
lea eax, [ebp - 0x38]
push eax
mov eax, 0x5094e0
add eax, 0x2950abac
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x64459cdd
sub dword [ebp - 0x38], 0xefd33387
mov dword [ebp - 0x34], 0xaab94291
add dword [ebp - 0x34], 0x96b31ee4
mov dword [ebp - 0x30], 0x6283008c
add dword [ebp - 0x30], 0xec6be0
mov dword [ebp - 0x2c], 0xdd8672b2
sub dword [ebp - 0x2c], 0xdd8672b2
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x343e0aff
sub eax, 0xa9ccabb
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x39e1b
push 0
call eax
mov ecx, 0x4660
xor edx, edx
add edx, eax
mov edi, 0x1089e0d4
add edi, 0x19183f2c
add edi, dword [ebp - 0x28]
mov esi, 0x20a35329
sub esi, 0x73128854
add dword [ebp - 0x14], esi
mov ebx, dword [edi]
sub dword [ebp - 0x24], eax
xor ebx, esi
mov dword [ebp - 0x14], 0xfeb4d12b
mov dword [edx], ebx
sub dword [ebp - 0x24], 0x248de295
add edx, 0x584a47a
sub edx, 0x584a476
add edi, 4
loop 0x29a011ef
add eax, 0x71ec6adb
sub eax, 0x71eb5e88
xor ebx, ebx
add ebx, eax
add eax, 0x5775ee4e
add eax, 0xa88a11b7
mov ecx, 0xb6ae2be6
sub ecx, 0x8d0e2be6
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x41537e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x41538d
pop dword [ebp - 0x28]
mov eax, 0x41538d
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x412cc
push 0
mov eax, 0xc7f413cb
add eax, 0x384e3d55
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x5acd
xor edi, edi
add edi, eax
mov ebx, 0x432e00
add ebx, dword [ebp - 0x28]
mov esi, 0xa1f2bea7
sub esi, 0x387afdb
xor dword [ebp - 8], 0xda5dd2cf
mov edx, dword [ebx]
add dword [ebp - 0x10], 0x5e50cfc7
add edx, esi
mov dword [ebp - 0x18], 0x92998488
mov dword [edi], edx
mov dword [ebp - 0x1c], 0xe2b5de90
add edi, 0x8be44977
add edi, 0x741bb68d
add ebx, 4
loop 0x4153dd
add eax, 0x15e07
mov ebx, eax
add eax, 0xc72dca55
add eax, 0x38d235b0
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x403c9a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x44251c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x403cda
push 0x434ef8
push 4
push eax
call fcn.0042021b
push eax
call fcn.00401000
add esp, 0x10
jmp 0x403cec
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x403d5a
push edi
call fcn.0041fbde
mov edi, dword [eax]
call fcn.0041fbde
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0042029c
add esp, 0x18
mov ebx, eax
call fcn.0041fbde
cmp dword [eax], 0
je 0x403d3a
call fcn.0041fbde
push dword [eax]
call fcn.00403272
pop ecx
jmp 0x403d41
call fcn.0041fbde
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x403d5a
cmp ebx, esi
jae 0x403d5a
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x403d5c
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041efd0
leave
ret