joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cc50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x28]
mov dword [ebp - 4], eax
call fcn.00408d40
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 0
xor eax, eax
push fcn.0043cc30
push ebp
push 0x414e20
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x43cd49
mov esi, esi
mov eax, dword [ebp - 4]
call fcn.0043c800
mov byte [ebp - 0x18], al
test al, al
je 0x43ccbd
mov eax, dword [ebp - 4]
call fcn.0043c890
test al, al
je 0x43ccbd
mov eax, dword [ebp - 4]
mov dl, 1
call fcn.0043c9b0
mov byte [ebp - 8], al
jmp 0x43cd49
cmp byte [ebp - 0x18], 0
je 0x43ccdc
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x20
call fcn.00409cf0
test eax, eax
jle 0x43ccdc
mov byte [ebp - 0x14], 1
jmp 0x43cce0
mov byte [ebp - 0x14], 0
cmp byte [ebp - 0x14], 0
je 0x43cd10
push 0
mov eax, 0x66acf4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, 0x66acf4
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x24]
lea eax, [ebp - 4]
mov ecx, 2
call fcn.00409100
mov esi, esi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x28]
call fcn.0040d070
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0xc]
call fcn.0040b590
push 1
push 0
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x43cd38
mov eax, 0x6ea2f0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteW
cmp eax, 0x20
seta byte [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0043cc30
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x44e8f0
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.0044e8e0
push ebp
push 0x414e20
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 0x44ea00
mov al, byte [ebp - 0x110]
test al, al
je 0x44e9c9
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00405190
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004095f0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a410
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, 0x67517c
call fcn.0046a520
mov edx, 0x44e95a
mov ecx, ebp
call fcn.00414ce0
jmp 0x44ea00
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, 0x67517c
call fcn.0046a520
mov edx, 0x44e9c9
mov ecx, ebp
call fcn.00414ce0
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x44eac4
mov al, byte [ebp - 0x110]
test al, al
je 0x44ea8d
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.00405190
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004095f0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.0040a410
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, 0x67517c
call fcn.0046a520
mov edx, 0x44ea1e
mov ecx, ebp
call fcn.00414ce0
jmp 0x44eac4
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, 0x67517c
call fcn.0046a520
mov edx, 0x44ea8d
mov ecx, ebp
call fcn.00414ce0
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.0044dfd0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0044e8e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x452670
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, 0x675db0
call fcn.0040daa0
test al, al
je 0x452756
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.00452770
xor eax, eax
push fcn.00452660
push ebp
push 0x414e20
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.00408d70
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.00451880
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 8]
call fcn.00450af0
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.00452660
jmp 0x452761
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00454990
mov esp, ebp
pop ebp
ret
Function at 0x45eaa0
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.0045ea90
push ebp
push 0x414e20
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.00408d70
lea eax, [ebp - 0xc10]
call fcn.00403e40
lea eax, [ebp - 0xc1c]
push eax
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x45eb00
mov eax, 0x6ea2f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc18], eax
cmp eax, 0xc00
jbe 0x45ebaa
mov edx, dword [ebp - 0xc18]
lea eax, [ebp - 0xc0c]
call fcn.004105d0
xor eax, eax
push fcn.0045ea80
push ebp
push 0x414e20
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 0x45eb5c
mov eax, 0x6ea2f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x45eb98
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x67acac
push eax
push dword [ebp - 0xc0c]
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45eb98
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.0045ea80
jmp 0x45ec08
lea eax, [ebp - 0xc08]
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc10]
test eax, eax
jne 0x45ebcc
mov eax, 0x6ea2f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x45ec08
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
mov eax, 0x67acac
push eax
lea eax, [ebp - 0xc08]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45ec08
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.0045ea90
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x46bd80
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, 0x67bd78
lea eax, [ebp - 0x268]
call fcn.0040f380
xor eax, eax
push fcn.0046bd60
push ebp
push 0x414e20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x46bdc3
mov eax, 0x6ea2f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x46be0b
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x46bddf
clc
jmp 0x46bde6
bt dword [0x67b258], eax
jb 0x46bdff
mov eax, ebp
call fcn.0046beb0
test al, al
je 0x46bdff
mov byte [ebp - 0x26c], 1
jmp 0x46be90
mov byte [ebp - 0x26c], 0
jmp 0x46be90
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x5f5fb0]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x46be90
and esi, 0x400
je 0x46be90
lea ebx, [ebp - 0x268]
mov edx, 0x67bd78
mov eax, ebx
call fcn.0040f440
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.0046b990
test eax, eax
je 0x46be64
sub eax, 1
je 0x46be7c
jmp 0x46be88
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.0046bd80
mov byte [ebp - 0x26c], al
jmp 0x46be90
mov byte [ebp - 0x26c], 1
jmp 0x46be90
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0046bd60
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46c0b0
Capabilities:
Get file attributes

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

Function at 0x46c190
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.0046c180
push ebp
push 0x414e20
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 0x46c200
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.0040be10
cmp ebx, 1
jle 0x46c1f0
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.0040b4a0
jmp 0x46c20b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408d70
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0046c180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46c690
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.0046c680
push ebp
push 0x414e20
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x6ebd0c]
xor edx, edx
call fcn.00408d70
mov dword [ebx*4 + 0x6ebd2c], 0xffffffff
cmp ebx, 7
jl 0x46c6b8
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 0x46c744
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00409760
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.004612e0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x46c744
push 4
push ebx
push esi
mov eax, 0x46c560
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x46c5f0
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.0046c680
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46ceb0
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.0046ce80
push ebp
push 0x414e20
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
call fcn.00460900
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00408d70
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040a410
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00408d70
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x1c], eax
mov ebx, eax
jmp 0x46cfbc
lea ecx, [ebp - 8]
mov eax, ebx
xor dx, dx
call fcn.004096c0
mov eax, dword [ebp - 8]
test eax, eax
je 0x46cf47
mov eax, dword [eax - 4]
mov edi, eax
lea eax, [ebp - 8]
xor cl, cl
mov dx, 1
call fcn.0040a410
mov edx, dword [ebp - 8]
mov ecx, 1
mov al, 0x3d
call fcn.00409cf0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi - 1]
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.00409b90
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00460900
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00409930
test eax, eax
jne 0x46cfb4
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
test eax, eax
je 0x46cfa3
mov eax, dword [eax - 4]
sub eax, esi
mov ecx, eax
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00409b90
jmp 0x46cfc5
lea eax, [ebx + edi]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x46cf30
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.0046ce80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d020
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.0046cff0
push ebp
push 0x414e20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.0040b6d0
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00467cb0
jmp 0x46d0f8
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040b600
mov edx, dword [ebp - 4]
mov ecx, 1
mov al, 0x3d
call fcn.0040c2d0
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx - 1]
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040c070
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00467cb0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040bdd0
test eax, eax
jne 0x46d0e8
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
test eax, eax
je 0x46d0d6
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.0040c070
jmp 0x46d0ff
mov eax, esi
call fcn.00404aa0
shl eax, 1
add eax, esi
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x46d080
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.0046cff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d130
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x6ebd70], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x6ebbd0], eax
mov eax, dword [ebp - 0x90]
mov dword [0x6ebbe0], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x6ebbf0], eax
mov eax, dword [ebp - 0x88]
mov dword [0x6ebc00], eax
mov edx, 0x6ebc11
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.004038c0
lea eax, [ebp - 0x80]
call fcn.00404a80
mov byte [0x6ebc10], al
mov eax, 0x67b33c
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x6ebd80], eax
test eax, eax
je 0x46d1d0
mov eax, 0x67b348
push eax
push dword [0x6ebd80]
call sub.kernel32.dll_GetProcAddress
mov dword [0x6ebd70], eax
nop
cmp dword [0x6ebbe0], 6
jae 0x46d1e4
mov dword [0x5f5880], 0
nop
cmp dword [0x6ebbe0], 6
jb 0x46d200
cmp dword [0x6ebbf0], 1
jb 0x46d200
mov dword [0x5f5890], 2
cmp dword [0x6ebd80], 0
je 0x46d228
cmp dword [0x6ebbe0], 6
jb 0x46d228
mov eax, str.GetTimeZoneInformationForYear
push eax
push dword [0x6ebd80]
call sub.kernel32.dll_GetProcAddress
mov dword [0x5f5fc0], eax
mov esp, ebp
pop ebp
ret
Function at 0x47acf0
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
jne 0x47ad18
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x47adc6
mov esi, esi
xor eax, eax
push 0x47ada7
push ebp
push 0x4151f0
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
je 0x47ad7c
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.0044dfd0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x47ad9c
cmp dword [ebp - 8], 0
je 0x47ad9c
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 0x47adc6
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b9e60
Capabilities:
Access peb ldr_data
Get kernel32 base address

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
jne 0x4b9e88
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x4b9f3e
mov esi, esi
xor eax, eax
push 0x4b9f1f
push ebp
push 0x4151f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0040dbd0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x4b9f14
cmp dword [ebp - 8], 0
je 0x4b9f14
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x4b9f3e
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c35c0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.004c35b0
push ebp
push 0x414e20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
call fcn.0040b510
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4c35fb
mov eax, 0x6ea2f0
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
or eax, eax
setne al
mov byte [ebp - 8], al
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004c35b0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4c4d40
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 0x4c4dea
mov eax, dword [ebp - 0x1c]
sub eax, 2
test eax, eax
jl 0x4c4e06
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 0x4c4e06
sub dx, 0x20
je 0x4c4de0
sub dx, 0x80
je 0x4c4de0
sub dx, 0x1f62
jb 0x4c4e06
sub dx, 1
jbe 0x4c4de0
sub dx, 6
je 0x4c4de0
sub dx, 0x26
jne 0x4c4e06
nop
jmp 0x4c4de0
cmp eax, dword [ebp - 0x20]
jg 0x4c4d88
lea esi, [esi]
jmp 0x4c4e06
cmp dword [ebp - 0x1c], 2
jne 0x4c4dfa
mov ax, word [ebp - 0x18]
mov word [ebp - 0x24], ax
jmp 0x4c4e06
mov al, byte [ebp - 0xc]
call fcn.0040b9d0
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
sub ax, 0x7f
jbe 0x4c4e84
sub ax, 0x21
je 0x4c4e98
sub ax, 0x17
je 0x4c4ea4
sub ax, 0x222
je 0x4c4eb0
sub ax, 0x392
je 0x4c4eb8
sub ax, 1
je 0x4c4ec0
sub ax, 0x1996
je 0x4c4ec8
sub ax, 1
je 0x4c4ed0
sub ax, 6
je 0x4c4ed8
sub ax, 0xb
je 0x4c4ee8
sub ax, 0x1b
je 0x4c4ee0
sub ax, 0x367
je 0x4c4ef0
jmp 0x4c4ef8
mov ax, word [ebp - 0x24]
call fcn.0040ba70
mov byte [ebp - 0x10], al
jmp 0x4c4f00
mov byte [ebp - 0x10], 0x20
jmp 0x4c4f00
mov byte [ebp - 0x10], 0x2e
jmp 0x4c4f00
mov byte [ebp - 0x10], 0x27
jmp 0x4c4f00
mov byte [ebp - 0x10], 0x2c
jmp 0x4c4f00
mov byte [ebp - 0x10], 0x27
jmp 0x4c4f00
mov byte [ebp - 0x10], 0x20
jmp 0x4c4f00
mov byte [ebp - 0x10], 0x20
jmp 0x4c4f00
mov byte [ebp - 0x10], 0x20
jmp 0x4c4f00
mov byte [ebp - 0x10], 0x20
jmp 0x4c4f00
mov byte [ebp - 0x10], 0x2d
jmp 0x4c4f00
mov byte [ebp - 0x10], 0x27
jmp 0x4c4f00
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 0x4e2ae0
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 0x4e2b11
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 0x4e2b00
pop esi
pop ebx
ret
Function at 0x4f50c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x50]
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
xor eax, eax
push fcn.004f50a0
push ebp
push 0x414e20
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, 1
mov eax, 0x69aef8
call fcn.004ec010
mov edx, dword [ebp - 4]
mov dword [edx - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x1c]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x4f5184
mov dword [ebp - 0xc], 0xffffffff
lea esi, [esi]
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x20]
lea esi, [eax - 1]
test esi, esi
jl 0x4f517c
mov dword [ebp - 8], 0xffffffff
lea esi, [esi]
nop
add dword [ebp - 8], 1
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004f5410
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx - 0x10]
mov ecx, dword [ecx]
call dword [ecx + pe_nt_image_headers32]
cmp esi, dword [ebp - 8]
jg 0x4f5148
mov esi, esi
cmp ebx, dword [ebp - 0xc]
jg 0x4f5128
lea esi, [esi]
mov eax, dword [ebp - 4]
mov dword [eax - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.004ec390
mov dword [ebp - 0x14], eax
jmp 0x4f51be
mov ecx, dword [ebp - 0x14]
mov eax, 0xd20d20d3
imul ecx
add edx, ecx
sar edx, 6
shr ecx, 0x1f
add edx, ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
add dword [eax - 0x1c], 1
cmp dword [ebp - 0x14], 0
jg 0x4f51a0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.004ec390
shl eax, 2