joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401234
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401230
lea ebx, [ebx]
cmp esi, eax
jae 0x401234
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401220
cmp esi, eax
jb 0x40123a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x404600
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x100], 0
jne 0x404646
call fcn.004044b0
test eax, eax
jne 0x404646
cmp dword [esi + 0xf0], eax
jne 0x404679
mov ecx, dword [esp + 8]
mov edx, dword [esi + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40464c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x100], eax
xor eax, eax
pop esi
ret 4
cmp dword [esi + 0xf4], 0
je 0x404670
inc dword [esi + 0x10c]
mov eax, dword [esi + 0x10c]
cmp eax, dword [esi + 0x108]
ja 0x404670
mov ecx, esi
call fcn.00404430
mov eax, 1
pop esi
ret 4
mov ecx, esi
call fcn.004044b0
test eax, eax
jne 0x404646
push edi
mov ecx, esi
call fcn.00404580
mov edi, eax
test edi, edi
je 0x4046f6
mov ecx, dword [esi + 0xf8]
mov dword [edi + 8], ecx
mov edx, dword [esi + 0xfc]
mov dword [edi + 0xc], edx
mov eax, dword [esp + 0xc]
add dword [esi + 0xf8], eax
mov edx, dword [esi + 0xc]
push edi
adc dword [esi + 0xfc], 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esi + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4046de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
cmp edx, 0x3e5
jne 0x4046e8
pop edi
mov eax, 1
pop esi
ret 4
push edi
mov ecx, esi
call fcn.00404250
mov dword [esi + 0x100], edx
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x404700
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x100], 0
jne 0x404746
call fcn.004044b0
test eax, eax
jne 0x404746
cmp dword [esi + 0xf0], eax
jne 0x404755
mov ecx, dword [esp + 8]
mov edx, dword [esi + 8]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40474c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x100], eax
xor eax, eax
pop esi
ret 4
mov eax, 1
pop esi
ret 4
mov ecx, esi
call fcn.004044b0
test eax, eax
jne 0x404746
push edi
mov ecx, esi
call fcn.00404580
mov edi, eax
test edi, edi
je 0x4047d2
mov ecx, dword [esi + 0xf8]
mov dword [edi + 8], ecx
mov edx, dword [esi + 0xfc]
mov dword [edi + 0xc], edx
mov eax, dword [esp + 0xc]
add dword [esi + 0xf8], eax
mov edx, dword [esi + 8]
push edi
adc dword [esi + 0xfc], 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esi + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4047ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
cmp edx, 0x3e5
jne 0x4047c4
pop edi
mov eax, 1
pop esi
ret 4
push edi
mov ecx, esi
call fcn.00404250
mov dword [esi + 0x100], edx
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x40c210
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x44b562
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x46367c]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46367c]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, dword [esp + 0x140]
xor ebx, ebx
push str.UNKNOWN
mov ecx, esi
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
call fcn.004022f0
push ebx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
mov edi, eax
lea eax, [esp + 0x2c]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00437ed0
add esp, 0xc
cmp edi, ebx
je 0x40c37b
push 0x104
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x40c37b
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x40c37b
push edi
push 1
call fcn.0043986a
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x40c372
mov ecx, dword [esp + 0x14]
push ebp
push edi
push ecx
lea edx, [esp + 0x34]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40c372
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x450fb4
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40c372
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
movzx edi, word [eax + 0xa]
movzx ebx, word [eax + 8]
cmp ecx, 0xfeef04bd
jne 0x40c372
push 0x104
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00437ed0
push ebx
push edi
push str._d._.02d
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.004397bb
add esp, 0x20
mov ecx, esi
call fcn.00401370
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00402210
push ebp
call fcn.00437e42
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004373c8
add esp, 0x128
ret
Function at 0x40cc89
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x46367c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x40cd27
push 0x45126c
push 4
push eax
call fcn.0043a208
push eax
call fcn.004010d0
add esp, 0x10
push ebx
push edi
call fcn.0043a33d
mov edi, dword [eax]
call fcn.0043a33d
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00437b9d
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0043a33d
cmp dword [eax], ebx
je 0x40cd3e
call fcn.0043a33d
push dword [eax]
call fcn.0040cbe4
pop ecx
jmp 0x40cd45
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x40cccf
jmp 0x40cdcc
call fcn.0043a33d
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x40cdc8
cmp dword [ebp - 0x11c], esi
jae 0x40cdc8
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00437ed0
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x40cdb7
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40cdb7
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40cdb7
push ebx
push ebx
push esi
jmp 0x40cdc0
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x40cdca
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004373c8
leave
ret

Function at 0x40e187
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0042ac87
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e1c0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040ddd8
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40e21e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x40e242
cmp dword [edi + 0x54], 0
jne 0x40e242
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042ac87
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040e1df
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4144ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x414534
call fcn.0042ac87
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414534
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x414550
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00414067
mov esi, eax
test edi, edi
je 0x41454e
test ebx, ebx
je 0x41454e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x415028
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44c880
call fcn.00439dc6
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41504d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x415093
lea ecx, [ebp - 0x10]
call fcn.00401800
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414c73
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401290
mov eax, esi
call fcn.00439e9e
ret 8
Function at 0x4218fe
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push edi
push ebx
call esi
push dword [0x4643a4]
call esi
push dword [0x4643e4]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x4643b0]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push dword [0x4643b8]
mov edi, eax
mov dword [esp + 0x20], ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x104
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call edi
mov esi, dword [0x4643d8]
xor edi, edi
mov ebx, eax
cmp dword [esi], edi
je 0x4219a8
mov ecx, ebx
call fcn.004218ca
cmp al, byte [esi]
je 0x421997
cmp al, byte [esi + 1]
je 0x421997
push 0x10
push dword [0x4643d0]
push dword [0x4643c4]
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, ebx
call fcn.004218db
cmp eax, dword [esi + 4]
je 0x4219a8
cmp eax, dword [esi + 8]
jne 0x42197b
push dword [0x46439c]
add ebx, 0x20a
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x4643a0]
mov esi, eax
push esi
call ebp
push dword [0x4643f0]
mov edi, eax
push esi
call ebp
push dword [0x464420]
mov dword [esp + 0x18], eax
push esi
call ebp
mov esi, eax
xor eax, eax
push eax
push eax
push eax
push 1
push dword [0x4643ec]
mov dword [esp + 0x24], eax
call edi
xor edi, edi
test eax, eax
je 0x42197b
push edi
push dword [0x4643ac]
push edi
push edi
push dword [0x464418]
push eax
call dword [esp + 0x2c]
test eax, eax
je 0x42197b
lea ecx, [esp + 0x10]
push ecx
push dword [0x4643b8]
push ebx
push eax
call esi
test eax, eax
je 0x42197b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42197b
lea edx, [eax + ebx]
cmp edx, ebx
je 0x42197b
mov esi, dword [ebx]
mov ecx, edi
mov eax, dword [0x464410]
mov eax, dword [eax + ecx]
add eax, esi
mov dword [ecx + edx], eax
add ecx, 4
cmp ecx, 0x20
jl 0x421a46
push edx
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x42197b
push edi
push edi
push dword [0x4643f8]
lea ecx, [esp + 0x28]
push ecx
call eax
jmp 0x42197b
Function at 0x425907
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0042ac87
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x425934
xor eax, eax
jmp 0x4259da
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x42592d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42592d
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c5ce
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x42598b
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x42597a
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00424668
push edi
mov ebx, eax
call fcn.0040c5fd
pop ecx
test ebx, ebx
je 0x4259cd
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00424d1c
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00424dd0
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x42d1d2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x44cab3
call fcn.00439dc6
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004022f0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x42d234
call fcn.0042a561
cmp eax, 1
jne 0x42d234
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040a860
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401f60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401290
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401290
mov eax, esi
call fcn.00439e9e
ret 0x10

Function at 0x42d25d
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x44cab3
call fcn.00439dc6
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004022f0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x42d2bf
call fcn.0042a561
cmp eax, 1
jne 0x42d2bf
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040a860
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401f60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401290
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401290
mov eax, esi
call fcn.00439e9e
ret 0x14
Function at 0x435758
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46367c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x43578d
xor eax, eax
jmp 0x4357e0
lea eax, [ebp - 0x210]
push eax
call fcn.0043bdff
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4357be
push 0x45648c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0043cbd1
add esp, 0xc
test eax, eax
jne 0x435789
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0043cbd1
add esp, 0xc
test eax, eax
jne 0x435789
lea eax, [ebp - 0x210]
push eax
call fcn.004356ca
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004373c8
leave
ret

Function at 0x4373c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46367c]
jne 0x4373d2
repz ret
jmp fcn.0043e12c

Function at 0x446919
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043da73
and dword [ebp - 4], 0
cmp dword [0x528e40], 0
mov ebx, eax
jne 0x4469ca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x446a7b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4586b8
push edi
call esi
test eax, eax
je 0x446a7b
push eax
call fcn.0043da01
mov dword [esp], 0x4586a8
push edi
mov dword [0x528e40], eax
call esi
push eax
call fcn.0043da01
mov dword [esp], 0x458694
push edi
mov dword [0x528e44], eax
call esi
push eax
call fcn.0043da01
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x528e48], eax
call esi
push eax
call fcn.0043da01
pop ecx
mov dword [0x528e50], eax
test eax, eax
je 0x4469ca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043da01
pop ecx
mov dword [0x528e4c], eax
mov eax, dword [0x528e4c]
cmp eax, ebx
je 0x446a22
cmp dword [0x528e50], ebx
je 0x446a22
push eax
call fcn.0043da7c
push dword [0x528e50]
mov esi, eax
call fcn.0043da7c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x446a22
test edi, edi
je 0x446a22
call esi
test eax, eax
je 0x446a19
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x446a19
test byte [ebp - 0xc], 1
jne 0x446a22
or dword [ebp + 0x10], 0x200000
jmp 0x446a5b
mov eax, dword [0x528e44]
cmp eax, ebx
je 0x446a5b
push eax
call fcn.0043da7c
pop ecx
test eax, eax
je 0x446a5b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x446a5b
mov eax, dword [0x528e48]
cmp eax, ebx
je 0x446a5b
push eax
call fcn.0043da7c
pop ecx
test eax, eax
je 0x446a5b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x528e40]
call fcn.0043da7c
pop ecx
test eax, eax
je 0x446a7b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x446a7d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x618f1ba9
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x49cb52a1
nop
nop
nop
nop
nop
test eax, eax
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4018df
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40191e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40191e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40191e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40191e
cmp dword [ecx + 0x74], 0xe
jbe 0x40191e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40c744
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c198
push 0x41c190
push str.FlsAlloc
push 0x1e
call fcn.0040c605
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c778
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a128]
call esi
jmp 0x40c77e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40c7c2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c1a8
push 0x41c1a0
push str.FlsGetValue
push 0x20
call fcn.0040c605
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c7f9
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x410adf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x410b7c
push ebx
push esi
call fcn.00410aa8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004109f1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x410b29
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x410b7b
push edi
push eax
call fcn.0040cef7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x410b49
call fcn.0040c498
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x410b7a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004109f1
add esp, 0x20
test eax, eax
jne 0x410b68
push edi
call fcn.0040c498
jmp 0x410b70
push ebx
call fcn.0040c498
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret