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

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42181c
call fcn.004286e5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42181c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x421813
xor eax, eax
jmp 0x421824
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042182a
pop edi
pop esi
pop ebx
ret 4

Function at 0x427100
Capabilities:
Create http request

Disassembly:
mov eax, 0x42c6a4
call fcn.00410108
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x427138
call fcn.004286e5
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x42715d
push eax
push dword [esi + 4]
call fcn.00427d5c
jmp 0x427169
push esi
push eax
mov ecx, 0x43ea40
call fcn.0042717a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x427447
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x42c703
call fcn.00410108
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0042363c
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x438dd0]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.00422abc
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00422abc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x42924d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42927b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x429299
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004291b3
jmp 0x429299
mov eax, dword [esi + 0x14]
test eax, eax
je 0x429299
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004291b3
test edi, edi
mov eax, edi
jne 0x429283
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x489d00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x53000]
push edi
jmp 0x489d1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x489d21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x489d10
mov eax, 1
add ebx, ebx
jne 0x489d33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x489d44
jne 0x489d63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x489d63
dec eax
add ebx, ebx
jne 0x489d50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x489d28
add ebx, ebx
jne 0x489d5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x489db5
xor ecx, ecx
sub eax, 3
jb 0x489d7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x489dea
sar eax, 1
mov ebp, eax
jmp 0x489d86
add ebx, ebx
jne 0x489d86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x489d54
inc ecx
add ebx, ebx
jne 0x489d94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x489d54
add ebx, ebx
jne 0x489da1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x489d96
jne 0x489db2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x489d96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x489dd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x489dc6
jmp 0x489d16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x489dd4
add edi, ecx
jmp 0x489d16
pop esi
mov edi, esi
mov ecx, 0x3132
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x489df2
cmp byte [edi], 0x19
jne 0x489df2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x489df7
lea edi, [esi + 0x86000]
mov eax, dword [edi]
or eax, eax
je 0x489e6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8c1b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8c2c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x489e24
mov ecx, edi
jns 0x489e53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8c2cc]
or eax, eax
je 0x489e69
mov dword [ebx], eax
add ebx, 4
jmp 0x489e41
call dword [esi + 0x8c2dc]
mov ebp, dword [esi + 0x8c2d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x489ea3
sub esp, 0xffffff80
jmp 0x453cde
Function at 0x10070cb0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Packed with generic packer

Disassembly:
xor edi, edi
je 0x10070cba
popal
jmp 0x40575a04
mov edx, 0x4c
cmp byte [esp + 8], 1
jne 0x10070e99
pushal
mov esi, section..rdata
xor edi, edi
je 0x10070cda
popal
jmp 0x40575a24
lea edi, [esi - 0x19000]
xor ecx, ecx
je 0x10070cea
popal
jmp 0x40575a34
mov eax, 0x7d
cmp edx, eax
mov eax, 0x4c
not eax
jne 0x10070d39
mov eax, dword fs:[0x30]
test eax, eax
js 0x10070d27
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x20], 0x1000
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
test eax, eax
jne 0x10070d38
jmp 0x10070d39
xor eax, eax
mov al, byte fs:[0x20]
test eax, eax
jne 0x10070d38
jmp 0x10070d39
popal
push edi
or ebp, 0xffffffff
jmp 0x10070d4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10070d51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10070d40
mov eax, 1
add ebx, ebx
jne 0x10070d63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10070d58
jne 0x10070d74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10070d58
xor ecx, ecx
sub eax, 3
jb 0x10070d88
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10070dfa
mov ebp, eax
add ebx, ebx
jne 0x10070d93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10070da0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10070dc4
inc ecx
add ebx, ebx
jne 0x10070db0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10070da5
jne 0x10070dc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10070da5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10070de4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10070dd5
jmp 0x10070d46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10070de4
add edi, ecx
jmp 0x10070d46
pop esi
mov edi, esi
mov ecx, 0x14455
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x10070e1f
cmp byte [edi], 0x20
jne 0x10070e04
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x10070e02
lea edi, [esi + 0x6e000]
mov eax, dword [edi]
or eax, eax
je 0x10070e67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x70000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x70028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10070e25
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7002c]
or eax, eax
je 0x10070e61
mov dword [ebx], eax
add ebx, 4
jmp 0x10070e42
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10070e98
cmp al, 0xef
ja 0x10070e8b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10070e6d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10070e7a
popal
jmp fcn.10012cc8
Function at 0x401810
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWARE_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40184d
push 0
push 0
push 0x40603c
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
add esp, 0x8c
ret
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.BMLocation
push ecx
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x90]
lea edx, [esp + 0xc]
push edx
push 0x40602c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov eax, 1
add esp, 0x8c
ret

Function at 0x4022a0
Capabilities:
Create directory

Disassembly:
sub esp, 0x180
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x80]
push ebx
push esi
push edi
mov edi, dword [esp + 0x190]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [sym.imp.MSVCRT.dll__mkdir]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x8c]
xor edi, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x4022fa
test al, al
je 0x4022fa
mov byte [esp + edi + 0xc], al
mov al, byte [esi + 1]
inc edi
inc esi
cmp al, 0x5c
jne 0x4022e9
lea ecx, [esp + 0xc]
mov byte [esp + edi + 0xc], 0
push ecx
call ebx
mov al, byte [esi]
add esp, 4
test al, al
je 0x402318
mov byte [esp + edi + 0xc], 0x5c
inc edi
inc esi
jmp 0x4022e3
pop edi
pop esi
pop ebx
add esp, 0x180
ret 4
Function at 0x4027c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x94
mov edx, dword [esp + 0x98]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0x406574
mov dword [esp + 0x14], 0x406544
mov dword [esp + 0x18], 0x406528
mov dword [esp + 0x1c], 0x406514
mov dword [esp + 0x20], 0x4064dc
mov dword [esp + 0x24], 0x4064a4
mov dword [esp + 0x28], 0x40646c
mov dword [esp + 0x2c], 0x406448
mov dword [esp + 0x30], 0x406424
mov dword [esp + 0x34], 0x4063fc
mov dword [esp + 0x38], 0x4063cc
mov dword [esp + 0x3c], 0x4063a8
mov dword [esp + 0x40], 0x406384
mov dword [esp + 0x44], 0x406360
mov dword [esp + 0x48], 0x406340
mov dword [esp + 0x4c], 0x406318
mov dword [esp + 0x50], 0x4062f4
mov dword [esp + 0x54], 0x4062d8
mov dword [esp + 0x58], 0x4062bc
mov dword [esp + 0x5c], 0x4062a8
mov dword [esp + 0x60], 0x406294
mov dword [esp + 0x64], 0x40627c
mov dword [esp + 0x68], 0x406264
mov dword [esp + 0x6c], 0x406250
mov dword [esp + 0x70], 0x40623c
mov dword [esp + 0x74], 0x406224
mov dword [esp + 0x78], 0x40620c
mov dword [esp + 0x7c], 0x4061fc
mov dword [esp + 0x80], 0x4061ec
mov dword [esp + 0x84], 0x4061d0
mov dword [esp + 0x88], 0x4061bc
mov dword [esp + 0x8c], 0x4061a8
mov dword [esp + 0x90], 0x406190
mov dword [esp + 0x94], 0x40617c
mov dword [esp + 0x98], 0x406164
mov dword [esp + 0x9c], 0x406150
mov dword [esp + 0xa0], 0x40613c
xor ebp, ebp
lea edi, [esp + 0x10]
mov eax, dword [edi]
mov esi, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x402942
test cl, cl
je 0x40293e
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x402942
add eax, 2
add esi, 2
test cl, cl
jne 0x40291e
xor eax, eax
jmp 0x402947
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402963
inc ebp
add edi, 4
cmp ebp, 0x25
jl 0x40291a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret 8
mov eax, dword [esp + ebp*4 + 0x10]
mov ecx, dword [esp + 0xac]
push eax
push 0x40602c
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 8
Function at 0x40f2f6
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push esi
xor edx, edx
lea ecx, [eax + 0x838]
push 8
mov eax, edx
pop esi
test al, 1
je 0x40f315
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f317
shr eax, 1
dec esi
jne 0x40f308
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0x100
jb 0x40f303
pop esi
ret 4

Function at 0x410c94
Capabilities:
Encode data using xor

Disassembly:
cmp al, ah
and dword [edx + 0x2a], esp
aas
mov ebp, 0x20eb040b
fcomi st(3)
xor edi, dword [edi]
or eax, 0x8b00406c
inc ebx
dec ebx
dec ebx
or eax, dword [ecx]
add byte [esi - 5], ah
jg 0x410c89
aas
push 0x53
and byte [eax], al
bound edx, qword [ebp + 0x55]
push ebp
add dword [esi], eax
mov eax, dword [0xdb6d820]
add byte [edi + 0x5800207b], ch
push ebp
push ebp
push ebp
add byte [0], al
add byte [eax], al
popal
or byte [eax], al
add byte [ebp - 0xa], dh
pop ebp
push ebp
add dword [esi], eax
mov dh, 0x6d
fild dword [esi]
or al, 0xc0
and byte [eax], al
add byte [eax], al
pop edi
invalid
Function at 0x402ab0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x437d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x402b5a
mov eax, dword [0x44927c]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0042aae7
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0042ab36
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0042aa93
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x402b41
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x402b41
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0042a6b7
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402b70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402bd2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x402de0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x402ed2
lea ecx, [esp + 0x10]
push ecx
push str..htm
push connect
mov ecx, edi
call fcn.00402b70
test eax, eax
jne 0x402ed2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push connect
mov ecx, edi
call fcn.00402b70
test eax, eax
jne 0x402ed2
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.00417d40
mov esi, eax
add esp, 8
test esi, esi
jne 0x402ea3
lea eax, [esp + 0x10]
push 0x44745c
push eax
call fcn.00417cc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x402ea3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x402ea6
mov byte [esi], 0
push 0x447458
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x4034a0
Capabilities:
Change the wallpaper

Disassembly:
sub esp, 0x16c
mov eax, dword [esp + 0x170]
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov dword [esi + 0x18], eax
call edi
push 0xe
mov dword [esi + 0x3c], eax
call edi
push 0xf
mov dword [esi + 0x40], eax
call edi
push 4
mov dword [esi + 0x44], eax
call edi
push 0xd
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
push 0x11
mov dword [esi + 0x54], eax
call edi
push 0xf
mov dword [esi + 0x58], eax
call edi
push 0x14
mov dword [esi + 0x5c], eax
call edi
push 0x10
mov dword [esi + 0x60], eax
call edi
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x44]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
xor ebx, ebx
push 3
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x18]
push ecx
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x50]
push ebx
push 0xa2
push edx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x24], 0x14
mov dword [esi + 0x28], 0x14
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x20], 0x808080
mov dword [esp + 0x28], 0xc0c0c0
mov dword [esp + 0x30], 0xffffff
mov dword [esp + 0x34], eax
call dword [sym.imp.COMCTL32.dll_CreateMappedBitmap]
push ebx
push 1
push 5
push 0x13
push 0x13
mov edi, eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x30], eax
push ecx
push edi
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, 0x55
lea edx, [esp + 0x24]
push ebx
xor eax, eax
lea edi, [esp + 0x28]
push edx
push ebx
rep stosd dword es:[edi], eax
push 0x29
mov dword [esp + 0x34], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [esi + 0x20], eax
pop edi
pop esi
pop ebx
add esp, 0x16c
ret 4
Function at 0x403620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
and ebx, 0xffff
mov eax, dword [esi + 0x18]
push 0xf1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x403649
pop edi
pop esi
pop ebx
ret 4
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40365e
pop edi
pop esi
pop ebx
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x403671
pop edi
pop esi
pop ebx
ret 4
cmp word [edi], 1
je 0x40367f
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
xor edx, edx
xor eax, eax
mov dx, word [edi + 2]
xor ecx, ecx
mov dword [esi + 0x24], edx
mov ax, word [edi + 4]
mov dword [esi + 0x28], eax
mov cx, word [edi + 6]
push 0
push ecx
push 5
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
test eax, eax
mov dword [esi + 0x2c], eax
jne 0x4036b1
pop edi
pop esi
pop ebx
ret 4
mov ecx, dword [esi + 0x44]
push ebp
push ecx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov edx, dword [esi + 0x18]
push ebx
push edx
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov ebx, eax
mov eax, dword [esi + 0x2c]
push 0xc0c0c0
push ebx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
xor ebp, ebp
xor ecx, ecx
cmp word [edi + 6], bp
lea ebx, [edi + 8]
jbe 0x403718
mov ax, word [ebx]
test ax, ax
je 0x40370a
mov edx, ecx
inc ecx
mov dword [esp + 0x14], ecx
push eax
push edx
mov ecx, esi
call fcn.00403730
mov ecx, dword [esp + 0x14]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4036ee
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret 4

Function at 0x404cc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xb], 0x5c
je 0x404d1c
mov edi, 0x4474ac
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.PDF2HTM.DAT
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x44749c
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00417f9d
mov esi, eax
add esp, 8
test esi, esi
je 0x404d80
mov ecx, dword [esp + 0x114]
push esi
push 0x400
push 1
push ecx
call fcn.00417e33
push esi
call fcn.00417db6
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x404f50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x18c
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xb], 0x5c
je 0x404fac
mov edi, 0x4474ac
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.PDF2HTM.DAT
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4000
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x405003
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18c
ret
lea edx, [esp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
mov eax, dword [esp + 0x19c]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lread]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x18c
ret