joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e2640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x10]
mov edx, ecx
mov dword [ebp - 4], edx
test edi, edi
je 0x4e2716
mov ecx, dword [ebp + 0xc]
movzx eax, byte [edx + 1]
push ebx
movzx ebx, byte [edx]
push esi
mov esi, dword [ebp + 8]
cmp ecx, esi
jne 0x4e26c1
nop dword [eax + eax]
movzx edx, byte [ebx + edx + 2]
mov esi, dword [ebp - 4]
add eax, edx
mov ecx, dword [ebp - 4]
movzx eax, al
mov dword [ebp + 0x10], eax
movzx ecx, byte [eax + ecx + 2]
mov byte [ebx + esi + 2], cl
mov byte [eax + esi + 2], dl
lea eax, [ebx + 1]
movzx ebx, al
lea eax, [ecx + edx]
mov edx, esi
mov esi, dword [ebp + 8]
movzx eax, al
mov al, byte [eax + edx + 2]
xor byte [esi], al
inc esi
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], esi
sub edi, 1
jne 0x4e2670
pop esi
mov byte [edx], bl
pop ebx
mov byte [edx + 1], al
pop edi
mov esp, ebp
pop ebp
ret 0xc
sub esi, ecx
mov dword [ebp + 8], esi
movzx edx, byte [ebx + edx + 2]
mov esi, dword [ebp - 4]
add eax, edx
mov ecx, dword [ebp - 4]
movzx eax, al
mov dword [ebp + 0x10], eax
movzx ecx, byte [eax + ecx + 2]
mov byte [ebx + esi + 2], cl
mov byte [eax + esi + 2], dl
lea eax, [ebx + 1]
movzx ebx, al
lea eax, [ecx + edx]
mov ecx, dword [ebp + 0xc]
movzx eax, al
mov edx, esi
mov esi, dword [ebp + 8]
mov al, byte [eax + edx + 2]
xor al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], ecx
sub edi, 1
jne 0x4e26c6
pop esi
mov byte [edx], bl
mov byte [edx + 1], al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4e2790
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecbdb
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x8307c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x134], edi
push 0xf0000000
push 1
push 0
push 0
push edi
mov dword [ebp - 0x138], edi
mov dword [edi + 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4e27ef
mov dword [edi + 4], 0x3e9
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push 0x20
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4e280f
mov dword [edi + 4], 0x3ea
push 0x20
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 8]
call fcn.004e2720
push 0x100
lea eax, [ebp - 0x130]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x130]
lea ecx, [edi + 8]
push 0x100
push eax
push eax
call fcn.004e2640
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e7e02
mov esp, ebp
pop ebp
ret
Function at 0x4e2ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
je 0x4e3067
push edi
mov eax, 0x10
mov edi, ebx
sub eax, dword [esi + 0x28]
cmp eax, ebx
cmovb edi, eax
mov eax, dword [esi + 0x24]
add eax, dword [esi + 0x28]
push edi
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add dword [esi + 0x28], edi
sub ebx, edi
add dword [ebp + 8], edi
add esp, 0xc
cmp dword [esi + 0x28], 0x10
mov dword [ebp + 0xc], ebx
jne 0x4e305e
mov eax, dword [esi + 0x24]
xor edi, edi
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x28], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx + 0x10], xmm0
mov eax, dword [esi + 0x18]
mov bl, byte [eax + 0xf]
nop word [eax + eax]
mov ecx, dword [esi + 0xc]
movzx eax, byte [ecx + edi + 0x10]
xor al, byte [ecx + edi]
mov byte [ecx + edi + 0x20], al
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x18]
add edx, edi
movzx ecx, byte [eax + edi]
inc edi
movzx eax, bl
xor ecx, eax
movzx eax, byte [ecx + str._.C]
xor byte [edx], al
mov bl, byte [edx]
cmp edi, 0x10
jl 0x4e2f60
xor dl, dl
mov dword [ebp - 4], 0
nop word [eax + eax]
xor ebx, ebx
mov ecx, dword [esi + 0xc]
movzx eax, dl
movzx eax, byte [eax + str._.C]
xor byte [ecx + ebx], al
mov cl, byte [ecx + ebx]
mov edx, dword [esi + 0xc]
movzx eax, cl
movzx eax, byte [eax + str._.C]
xor byte [edx + ebx + 1], al
movzx eax, byte [edx + ebx + 1]
mov ecx, dword [esi + 0xc]
movzx eax, byte [eax + str._.C]
xor byte [ecx + ebx + 2], al
movzx eax, byte [ecx + ebx + 2]
mov edx, dword [esi + 0xc]
movzx eax, byte [eax + str._.C]
xor byte [edx + ebx + 3], al
movzx eax, byte [edx + ebx + 3]
mov ecx, dword [esi + 0xc]
movzx eax, byte [eax + str._.C]
xor byte [ecx + ebx + 4], al
mov edx, dword [esi + 0xc]
movzx eax, byte [ecx + ebx + 4]
add edx, 5
add edx, ebx
movzx eax, byte [eax + str._.C]
xor byte [edx], al
movzx eax, byte [edx]
mov edi, dword [esi + 0xc]
movzx eax, byte [eax + str._.C]
xor byte [edi + ebx + 6], al
movzx eax, byte [edi + ebx + 6]
mov ecx, dword [esi + 0xc]
movzx eax, byte [eax + str._.C]
xor byte [ecx + ebx + 7], al
mov dl, byte [ecx + ebx + 7]
add ebx, 8
cmp ebx, 0x30
jl 0x4e2fa2
mov eax, dword [ebp - 4]
add dl, al
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x12
jl 0x4e2fa0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4e2f04
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e4760
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
movsx ecx, byte [ebp + 8]
mov esi, eax
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
add esp, 4
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x4e4798
movsx ecx, al
mov eax, 1
sub ecx, 0x41
shl eax, cl
test esi, eax
je 0x4e4798
mov al, 1
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret
Function at 0x4e5e50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
nop dword [eax]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp + 8], edx
cmp dword [edi + 0x6c], eax
jb 0x4e5edf
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4e5eaf
sub eax, esi
jmp 0x4e5eb1
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x4e5ea0
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4e5ed0
sub eax, esi
jmp 0x4e5ed2
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x4e5ec1
mov edx, dword [ebp + 8]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x4e5f94
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x4e5f0c
xor eax, eax
jmp 0x4e5f58
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x4e5f29
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.004a77a0
jmp 0x4e5f39
cmp eax, 2
jne 0x4e5f42
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.004a7a20
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebx + 0x30], eax
push ecx
push dword [ebx]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x4e5f80
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x4e5f94
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4e5e60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e9144
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4e9183
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e9183
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e9183
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4e9183
cmp dword [ecx + 0x74], 0xe
jbe 0x4e9183
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x40de38
mov ecx, 0x6099669c
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xc4909b7
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x1000e8d0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1000e902
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x1000e8f6
push 0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
jmp 0x1000e900
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
jmp 0x1000e916
push 0x28de
push 0
push 0xf6c
call fcn.1000e6df
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x10010f87
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10010ffa
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x10010ff0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
add ecx, dword [eax]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [eax], ecx
jmp 0x10010ff8
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
jmp 0x10011016
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 1
call fcn.1000d26b
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x10015833
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10015855
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push 1
push dword [ebp - 8]
call fcn.100158ca
pop ecx
pop ecx
jmp 0x100158c6
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x100158be
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1001589f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x100158bc
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x20]
call fcn.1002a774
mov dword [eax], 0xcafe8b0d
jmp 0x10015894
jmp 0x100158c6
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esp, ebp
pop ebp
ret
Function at 0x1001c836
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001c86d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
push 0x10e8
push 0x1158
push 0x11f2
push 0x561a
push 1
push dword [ebp - 8]
call fcn.1001c8a1
add esp, 0x18
jmp 0x1001c89d
lea eax, [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1001c887
push 0
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
jmp 0x1001c89d
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001c89d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esp, ebp
pop ebp
ret
Function at 0x1004526a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005e622
call fcn.1005d3b0
sub esp, 0xc
push ebx
push esi
mov dword [ebp - 0x18], 0x1674
cmp dword [ebp - 0x18], 0x1827
push edi
mov dword [ebp - 0x10], esp
jle 0x100452c4
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x14], 0x390d
mov eax, ebx
mov ecx, 0x10606538
xor eax, esi
cdq
push edx
push eax
call fcn.1002a5c1
add ebx, edi
dec dword [ebp - 0x14]
jne 0x1004529a
inc edi
cmp edi, 0x2874
jl 0x10045291
inc esi
cmp esi, 0x40a2
jl 0x1004528f
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x163b
jge 0x100452e0
mov edx, 0x1000b740
mov ecx, 0x10606538
call fcn.1002c06b
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004544a
Capabilities:
Get keyboard layout

Disassembly:
mov eax, 0x1005e636
call fcn.1005d3b0
sub esp, 0x10
push ebx
push esi
mov dword [ebp - 0x1c], 0xa44
cmp dword [ebp - 0x1c], 0xd95
push edi
mov dword [ebp - 0x10], esp
jle 0x100454b6
push 0x19bd
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
xor esi, esi
mov dword [ebp - 0x18], esi
mov ebx, 0x5577
mov edi, esi
mov dword [ebp - 0x14], ebx
mov esi, edi
mov ebx, 0x45c2
mov eax, esi
mov ecx, 0x10606538
cdq
push edx
push eax
call fcn.1002a5c1
dec esi
dec ebx
jne 0x1004548e
dec edi
dec dword [ebp - 0x14]
jne 0x10045487
mov esi, dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x18], esi
cmp esi, 0x5e45
jl 0x1004547d
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x8e2
jge 0x100454d2
mov edx, 0x1000b804
mov ecx, 0x10606538
call fcn.1002c06b
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100454ff
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov dword [esp + 4], 0x5557
cmp dword [esp + 4], 0x5611
push esi
push edi
jle 0x100455b8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
xor esi, esi
xor edi, edi
xor ebx, ebx
mov eax, edi
lea ecx, [esp + 0x10]
cdq
idiv ebx
lea eax, [esi + edx]
cdq
push edx
push eax
call fcn.1000cd20
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1004554b
mov eax, dword [eax]
push eax
call fcn.100480d6
pop ecx
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.1002aa62
inc ebx
cmp ebx, 0x546d
jl 0x1004552d
inc edi
cmp edi, 0x3260
jl 0x1004552b
inc esi
cmp esi, 0x7a8
jl 0x10045529
push 0x524
push 0x196
push 0
push 0
push 0x19b1
push 0xdf
push 0xef1
push 0x2109
push 0xa70
push 0x2586
push 0x1812
push 0x2678
push 0x38
call dword [sym.imp.GDI32.dll_StretchDIBits]
cmp dword [esp + 0xc], 0x54b1
jge 0x100455cd
push 0x1000b828
call fcn.100480d6
pop ecx
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100455d8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov dword [esp + 0xc], 0x46e2
cmp dword [esp + 0xc], 0x49ec
push esi
push edi
jle 0x10045670
xor edi, edi
xor ebx, ebx
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x10], 0x49b5
mov dword [esp + 0xc], ecx
mov eax, ebx
shl eax, cl
lea ecx, [esp + 0x18]
or eax, edi
cdq
push edx
push eax
call fcn.1000cd20
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10045626
mov eax, dword [eax]
push eax
call fcn.100480d6
pop ecx
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.1002aa62
mov ecx, dword [esp + 0xc]
add ecx, esi
dec dword [esp + 0x10]
mov dword [esp + 0xc], ecx
jne 0x1004560a
inc esi
cmp esi, 0x7a85
jl 0x100455fc
inc ebx
cmp ebx, 0x4f96
jl 0x100455fa
inc edi
cmp edi, 0x6860
jl 0x100455f8
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
cmp dword [esp + 0x14], 0x4305
jge 0x10045685
push 0x1000b878
call fcn.100480d6
pop ecx
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10059875
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10063750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1004ba08
mov dword [ebp - 0x14], eax
cmp dword [0x1060759c], esi
jne 0x10059968
push 0x800
push esi
push 0x10007510
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x100598f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10059a48
push esi
push esi
push 0x10007510
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10059a48
push 0x10007528
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10059a48
push eax
call ebx
push 0x10007534
push edi
mov dword [0x1060759c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007544
push edi
mov dword [0x106075a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007558
push edi
mov dword [0x106075a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106075ac], eax
test eax, eax
je 0x10059965
push 0x10007574
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106075a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1005998d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10059980
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x100599a2
push 4
pop eax
jmp 0x10059a4a
cmp dword [ebp - 0x14], esi
je 0x100599a2
push dword [0x1060759c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10059987
mov eax, dword [0x106075a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10059a00
cmp dword [0x106075ac], edi
je 0x10059a00
push eax
call ebx
push dword [0x106075ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10059a00
test eax, eax
je 0x10059a00
call ecx
test eax, eax
je 0x100599f5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x100599f5
test byte [ebp - 8], 1
jne 0x10059a00
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10059a30
mov eax, dword [0x106075a0]
cmp eax, edi
je 0x10059a2d
push eax
call ebx
test eax, eax
je 0x10059a2d
call eax
mov esi, eax
test esi, esi
je 0x10059a2d
mov eax, dword [0x106075a4]
cmp eax, edi
je 0x10059a2d
push eax
call ebx
test eax, eax
je 0x10059a2d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1060759c]
call ebx
test eax, eax
je 0x10059a48
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10059a4a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10048f1c
mov esp, ebp
pop ebp
ret
Function at 0x408068
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 0x408105
push ebx
push esi
call fcn.00408031
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.00407fc5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4080b2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408104
push edi
push eax
call fcn.004069cb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4080d2
call fcn.00406a19
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408103
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407fc5
add esp, 0x20
test eax, eax
jne 0x4080f1
push edi
call fcn.00406a19
jmp 0x4080f9
push ebx
call fcn.00406a19
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

Function at 0x409314
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x465a90
push 0x465a88
push str.FlsAlloc
push 0x1f
call fcn.004091d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409348
push dword [ebp + 8]
mov ecx, esi
call dword [0x414130]
call esi
jmp 0x40934e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409392
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x465aa0
push 0x465a98
push str.FlsGetValue
push 0x21
call fcn.004091d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4093c9
push dword [ebp + 8]
mov ecx, esi
call dword [0x414130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4093d1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x465aa8
push 0x465aa0
push str.FlsSetValue
push 0x22
call fcn.004091d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40940b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x422190
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x42f004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x433b34]
push edi
mov edi, dword [0x435fb4]
call fcn.004220d0
cmp dword [0x435fb4], 0x2f
jne 0x422224
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00422100
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.0040126c
add esp, 0x41c
ret
Function at 0x4226b0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x435fb4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519af
mov edi, 0x8e46a6f0
jmp 0x4226d0
mov dword [0x435c1c], edi
cmp eax, 0x3dc
jne 0x4226ea
push 0
push 0
push 0
call esi
mov eax, dword [0x435fb4]
dec ebx
jne 0x4226d0
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
jmp 0x422700
cmp eax, 0xa5f
jne 0x422722
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x435fb4]
cmp esi, 0x846143
jne 0x422739
mov eax, dword [0x430bf0]
add eax, 0xa231
mov dword [0x435fb4], eax
cmp eax, 0x141
jne 0x422754
mov dword [0x4322c0], 0xec58acac
mov dword [0x4322c4], 0xffffffff
inc esi
cmp esi, 0x12d12ba
jl 0x422700
call fcn.00422240
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10