joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413420
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 [0x5d4260], 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.00413600
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x5d4260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403620
call sub.kernel32.dll_GetCommandLineA
mov dword [0x5664c0], eax
mov ebx, eax
jmp 0x4135c3
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x4134a8
cmp byte [ebx], 0
je 0x4135cc
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x413523
mov al, byte [ebx]
cmp al, 1
jb 0x413518
sub al, 0x20
jbe 0x4134e8
sub al, 2
je 0x4134fc
jmp 0x413518
mov al, byte [ebp - 0x114]
test al, al
je 0x413528
add dword [ebp - 0x110], 1
jmp 0x413520
cmp byte [ebx + 1], 0x22
je 0x413513
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x413520
add ebx, 1
jmp 0x413520
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x4134d8
test dword [ebp - 0x10c], 0xffffffff
je 0x4135bc
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00413600
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x5d4260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x4135b3
mov al, byte [ebx]
cmp al, 1
jb 0x4135a8
sub al, 0x20
jbe 0x413578
sub al, 2
je 0x41358c
jmp 0x4135a8
mov al, byte [ebp - 0x114]
test al, al
je 0x4135b8
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x4135b0
cmp byte [ebx + 1], 0x22
je 0x4135a3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x4135b0
add ebx, 1
jmp 0x4135b0
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x413568
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x4134ab
mov ebx, dword [ebp - 0x10c]
mov dword [0x5d4250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x5d4260
call fcn.004107f0
mov eax, dword [0x5d4260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x108]
mov dword [ebp - 4], eax
mov dword [ebp - 0x108], 0
xor eax, eax
push fcn.00426c50
push ebp
push 0x4142a0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
xor cx, cx
mov edx, 0xff
call fcn.004093b0
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 4]
call fcn.00445970
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00426c50
mov esp, ebp
pop ebp
ret
Function at 0x426d10
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov edx, 0x587220
lea eax, [ebp - 0xc]
call fcn.0040e5d0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00426cf0
push ebp
push 0x4142a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, str.Parametr
call fcn.004089c0
push 0
lea eax, [ebp - 0x10]
call fcn.00426c60
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, str.DirectYdirecty.exe
call fcn.00408ac0
mov edx, 1
mov eax, 0x5d1cc4
call fcn.005623c0
mov dword [ebp - 4], eax
xor eax, eax
push fcn.00426ce0
push ebp
push 0x4142a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x80000001
call fcn.00562380
mov eax, dword [ebp - 4]
mov cl, 1
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.005625f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.005627d0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00409580
test eax, eax
je 0x426dd4
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00562990
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00426ce0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00426cf0
mov esp, ebp
pop ebp
ret
Function at 0x427eb0
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 0x427f5a
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x427f76
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 0x427f76
sub dx, 0x20
je 0x427f50
sub dx, 0x80
je 0x427f50
sub dx, 0x1f62
jb 0x427f76
sub dx, 1
jbe 0x427f50
sub dx, 6
je 0x427f50
sub dx, 0x26
jne 0x427f76
nop
jmp 0x427f50
cmp eax, dword [ebp - 0x20]
jg 0x427ef8
lea esi, [esi]
jmp 0x427f76
cmp dword [ebp - 0x1c], 2
jne 0x427f6a
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x427f76
mov al, byte [ebp - 0xc]
call fcn.0040b210
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x427ff4
sub ax, 0x21
je 0x428008
sub ax, 0x17
je 0x428014
sub ax, 0x222
je 0x428020
sub ax, 0x392
je 0x428028
sub ax, 1
je 0x428030
sub ax, 0x1996
je 0x428038
sub ax, 1
je 0x428040
sub ax, 6
je 0x428048
sub ax, 0xb
je 0x428058
sub ax, 0x1b
je 0x428050
sub ax, 0x367
je 0x428060
jmp 0x428068
mov ax, word [ebp - 0x24]
call fcn.0040b2b0
mov byte [ebp - 0x10], al
jmp 0x428070
mov byte [ebp - 0x10], 0x20
jmp 0x428070
mov byte [ebp - 0x10], 0x2e
jmp 0x428070
mov byte [ebp - 0x10], 0x27
jmp 0x428070
mov byte [ebp - 0x10], 0x2c
jmp 0x428070
mov byte [ebp - 0x10], 0x27
jmp 0x428070
mov byte [ebp - 0x10], 0x20
jmp 0x428070
mov byte [ebp - 0x10], 0x20
jmp 0x428070
mov byte [ebp - 0x10], 0x20
jmp 0x428070
mov byte [ebp - 0x10], 0x20
jmp 0x428070
mov byte [ebp - 0x10], 0x2d
jmp 0x428070
mov byte [ebp - 0x10], 0x27
jmp 0x428070
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x10], al
mov esi, esi
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x435320
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.00435310
push ebp
push 0x4142a0
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 0x435430
mov al, byte [ebp - 0x110]
test al, al
je 0x4353f9
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404dd0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409240
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a010
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, 0x589000
call fcn.0044ea90
mov edx, 0x43538a
mov ecx, ebp
call fcn.00414160
jmp 0x435430
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, 0x589000
call fcn.0044ea90
mov edx, 0x4353f9
mov ecx, ebp
call fcn.00414160
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4354f4
mov al, byte [ebp - 0x110]
test al, al
je 0x4354bd
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00404dd0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.00409240
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a010
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, 0x589000
call fcn.0044ea90
mov edx, 0x43544e
mov ecx, ebp
call fcn.00414160
jmp 0x4354f4
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, 0x589000
call fcn.0044ea90
mov edx, 0x4354bd
mov ecx, ebp
call fcn.00414160
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.00434cb0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00435310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4385b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, 0x589c8c
call fcn.0040cde0
test al, al
je 0x438696
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.004386b0
xor eax, eax
push fcn.004385a0
push ebp
push 0x4142a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0xc4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x18]
mov byte [edx + 0x18], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1a]
mov byte [edx + 0x1a], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1b]
mov byte [edx + 0x1b], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 0x1c]
mov byte [edx + 0x1c], al
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 8]
add eax, 0x30
call fcn.004089c0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
call fcn.004377c0
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.00437310
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
call dword [ecx + 0xb0]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004385a0
jmp 0x4386a1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0043ab40
mov esp, ebp
pop ebp
ret
Function at 0x444af0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc20]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc10], 0
xor eax, eax
push fcn.00444ae0
push ebp
push 0x4142a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xc10]
call fcn.004089c0
lea eax, [ebp - 0xc10]
call fcn.00403b40
lea eax, [ebp - 0xc1c]
push eax
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x444b50
mov eax, 0x5d42f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x444bfa
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.0040f820
xor eax, eax
push fcn.00444ad0
push ebp
push 0x4142a0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0xc0c]
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x444bac
mov eax, 0x5d42f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x444be8
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x58e7ac
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x444be8
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00444ad0
jmp 0x444c58
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x444c1c
mov eax, 0x5d42f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x444c58
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x58e7ac
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x444c58
mov eax, dword [ebp - 0xc20]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00444ae0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x44ffe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x58f6b0
lea eax, [ebp - 0x268]
call fcn.0040e5d0
xor eax, eax
push fcn.0044ffc0
push ebp
push 0x4142a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x450023
mov eax, 0x5d42f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x45006b
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x45003f
clc
jmp 0x450046
bt dword [0x58ec80], eax
jb 0x45005f
mov eax, ebp
call fcn.00450110
test al, al
je 0x45005f
mov byte [ebp - 0x26c], 1
jmp 0x4500f0
mov byte [ebp - 0x26c], 0
jmp 0x4500f0
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x567e30]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x4500f0
and esi, 0x400
je 0x4500f0
lea ebx, [ebp - 0x268]
mov edx, 0x58f6b0
mov eax, ebx
call fcn.0040e690
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.0044fc80
test eax, eax
je 0x4500c4
sub eax, 1
je 0x4500dc
jmp 0x4500e8
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.0044ffe0
mov byte [ebp - 0x26c], al
jmp 0x4500f0
mov byte [ebp - 0x26c], 1
jmp 0x4500f0
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0044ffc0
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450410
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x45041c
mov eax, 0x5d42f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esp, ebp
pop ebp
ret

Function at 0x450430
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edx
test eax, eax
jne 0x45043e
mov eax, 0x5d42f0
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x45044c
xor ebx, ebx
jmp 0x450453
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4504f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.004504e0
push ebp
push 0x4142a0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x450560
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040b5b0
cmp ebx, 1
jle 0x450550
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.0040ad60
jmp 0x45056b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004089c0
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004504e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x450970
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.00450960
push ebp
push 0x4142a0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x5d5b8c]
xor edx, edx
call fcn.004089c0
mov dword [ebx*4 + 0x5d5bac], 0xffffffff
cmp ebx, 7
jl 0x450998
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 0x450a24
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.004093b0
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.00446ae0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x450a24
push 4
push ebx
push esi
mov eax, 0x450840
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x4508d0
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.00450960
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x451070
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x14]
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00451040
push ebp
push 0x4142a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040af10
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0044c8a0
jmp 0x451148
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040aec0
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040b990
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040b730
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0044c8a0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040b570
test eax, eax
jne 0x451138
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x451126
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040b730
jmp 0x45114f
mov eax, esi
call fcn.004047a0
shl eax, 1
add eax, esi
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x4510d0
push edi
call sub.kernel32.dll_FreeEnvironmentStringsW
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00451040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451180
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x5d5bf0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x5d5a50], eax
mov eax, dword [ebp - 0x90]
mov dword [0x5d5a60], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x5d5a70], eax
mov eax, dword [ebp - 0x88]
mov dword [0x5d5a80], eax
mov edx, 0x5d5a91
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00403620
lea eax, [ebp - 0x80]
call fcn.00404780
mov byte [0x5d5a90], al
mov eax, 0x58ed50
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x5d5c00], eax
test eax, eax
je 0x451220
mov eax, 0x58ed5c
push eax
push dword [0x5d5c00]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5d5bf0], eax
nop
cmp dword [0x5d5a60], 6
jae 0x451234
mov dword [0x5676f0], 0
nop
cmp dword [0x5d5a60], 6
jb 0x451250
cmp dword [0x5d5a70], 1
jb 0x451250
mov dword [0x567700], 2
mov esp, ebp
pop ebp
ret
Function at 0x48d9e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea esi, [ecx - 1]
test esi, esi
jl 0x48da14
mov edi, 0xffffffff
nop
add edi, 1
mov cl, al
xor cl, byte [edx]
and ecx, 0xff
mov ebx, ecx
mov ecx, eax
shr ecx, 8
xor ecx, dword [ebx*4 + 0x5d6200]
mov eax, ecx
add edx, 1
cmp esi, edi
jg 0x48d9f0
pop edi
pop esi
pop ebx
ret

Function at 0x4ace50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov edx, eax
xor eax, eax
lea ebx, [edx + 1]
movzx ecx, byte [edx]
add ecx, 1
and ecx, 0xff
add edx, ecx
jmp 0x4ace81
mov ecx, eax
shl ecx, 5
sub ecx, eax
movzx esi, byte [ebx]
xor ecx, esi
mov eax, ecx
add ebx, 1
cmp edx, ebx
ja 0x4ace70
pop esi
pop ebx
ret

Function at 0x4ae660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp edx, 1
jne 0x4ae684
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
call dword [edx + 0x34]
mov dword [ebp - 8], eax
lea esi, [esi]
cmp dword [ebp - 8], 0
je 0x4ae74a
mov esi, esi
xor eax, eax
push 0x4ae72b
push ebp
push 0x414620
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040cec0
mov eax, dword [ebp - 8]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0xe], 0
mov edx, 1
mov eax, 0x5898e8
call fcn.00436b50
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004ae8e0
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 8]
call fcn.004ae950
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 8]
call fcn.004ae9c0
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x4ae720
cmp dword [ebp - 4], 0
je 0x4ae720
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x44]
nop
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4ae74a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x4b732b
jmp 0x4b7338
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x4b7340
jmp 0x4b7348
jmp 0x4b73f6
xor eax, eax
push 0x4b73d3
push ebp
push 0x414620
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
jne 0x4b737e
jmp 0x4b73a4
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_SizeofResource
mov ebx, eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
call fcn.00434cb0
mov esi, esi
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x4b73b3
jmp 0x4b73c8
cmp dword [ebp - 8], 0
jne 0x4b73bb
jmp 0x4b73c8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x4b73f6
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b9160
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4b9194
mov eax, esi
call fcn.004bd6e0
cmp byte [esi + 0x40], 0
je 0x4b918c
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4b9245
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4b9224
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4b921c
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4b91c8
mov eax, esi
mov edx, dword [esi + 8]
call dword [edx]
lea esi, [esi]
mov eax, esi
mov edx, dword [esi + 0x184]
call dword [edx]
mov edi, eax
test edi, edi
jne 0x4b91e0
xor bl, bl
jmp 0x4b9245
cmp edi, 2
je 0x4b921a
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4b91b8
cmp edi, 3
je 0x4b91f8
cmp edi, 1
jne 0x4b91b8
mov eax, dword [esi + 8]
add dword [eax + 4], 1
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x4b91b8
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4b91b8
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4b923c
cmp dword [esi + 0x14], 0xcc
je 0x4b923c
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004b9580
lea esi, [esi]
mov eax, esi
call fcn.004b9250
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
ret