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

Disassembly:
sub esp, 0x1c
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [0x46ec9c]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x30]
push eax
push 3
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xa
push eax
push ebx
mov dword [esp + 0x2c], 0x66
mov dword [esp + 0x30], 0
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x412f94
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lfence
push dword [esp + 0x14]
push ebx
call dword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x412f94
test edi, edi
je 0x412f74
mov eax, dword [esp + 0x10]
mov dword [edi], eax
test esi, esi
je 0x412f7e
mov eax, dword [esp + 0x14]
mov dword [esi], eax
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00421141
add esp, 0x1c
ret 0xc
mov ecx, dword ds:[esp + 0x24]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00421141
add esp, 0x1c
ret 0xc

Function at 0x412fc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, dword fs:[0x18]
sub esp, 8
mov eax, dword [eax + 0x30]
push ebx
push esi
mov esi, dword [0x46ec9c]
push edi
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
add ecx, 0xc
cmp eax, ecx
je 0x41300f
nop dword [eax]
test esi, esi
je 0x413033
cmp dword [eax + 0x18], esi
je 0x413033
mov eax, dword [eax]
cmp eax, ecx
jne 0x413004
xor esi, esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test esi, esi
jne 0x41308a
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
test eax, eax
je 0x41300f
movzx ecx, word ds:[eax + 0x24]
mov edx, ecx
test cx, cx
jne 0x41304e
call fcn.00406c20
mov esi, eax
jmp 0x413011
mov ebx, dword ds:[eax + 0x28]
mov edi, edx
mov edx, dword [0x46ec98]
lea ecx, [edi + 0xa]
call fcn.00405ce0
mov esi, eax
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi], edi
mov dword [esi + 4], eax
mov word [eax + edi], cx
test ebx, ebx
je 0x413011
push edi
push ebx
push dword [esi + 4]
call fcn.00422f50
add esp, 0xc
jmp 0x413011
mov ecx, esi
call fcn.0040f9c0
mov edi, eax
lea ecx, [esi - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x4130a8
call fcn.00405dc0
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4131a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, 0x5a4d
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp word [edi], ax
jne 0x41341f
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x41341f
cmp eax, 0x7fffffff
jae 0x41341f
add eax, edi
mov dword [esp + 0xc], eax
cmp dword [eax], 0x4550
jne 0x41341f
lea edx, [eax + 0x78]
mov eax, dword [edx]
test eax, eax
je 0x41341f
cmp dword [edx + 4], 0
je 0x41341f
push dword [ebp + 8]
add eax, edi
push esi
push eax
call fcn.00413480
cmp dword [0x46dac0], 0x64
mov ebx, eax
jb 0x413414
call fcn.0041b760
nop dword [eax]
test eax, eax
je 0x413414
call fcn.0041b760
mov esi, eax
mov ecx, eax
call dword [0x441280]
call esi
nop dword [eax]
test al, al
je 0x413414
mov edx, dword ds:[esp + 0xc]
lea eax, [esp + 0x14]
push ecx
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
push 0xa
call fcn.00413440
test eax, eax
js 0x413414
mov edx, dword ds:[esp + 0x14]
mov ecx, dword [edx]
lea eax, [edx + 0x5c]
add ecx, edx
cmp eax, ecx
ja 0x413414
mov eax, dword [edx + 0x58]
shr eax, 0xe
test al, 1
je 0x413414
cmp byte [0x46ee68], 0
nop dword [eax]
jne 0x41333b
mov edx, dword [0x46ec90]
mov ecx, 0x28
mov byte [0x46ee68], 1
call fcn.00405ce0
mov esi, dword [0x46eca4]
mov edi, eax
push 0x40
push 4
push esi
mov dword [edi], 8
mov dword [edi + 4], 0x4076c0
mov dword [edi + 8], 0x4076e0
mov dword [edi + 0xc], 0x10
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword ds:[edi + 0xc]
shl ecx, 2
push ecx
push 0xff
push eax
mov dword [edi + 0x10], eax
call fcn.00422df0
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [edi + 0x14], eax
shl eax, 4
push eax
push 4
push esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0xffffffff
mov dword [edi + 0x24], 0
mov dword [0x46ef9c], edi
jmp 0x413341
mov edi, dword [0x46ef9c]
test edi, edi
je 0x413414
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov ecx, edi
call fcn.004074c0
lea ecx, ds:[eax + 4]
neg eax
sbb eax, eax
test ecx, eax
jne 0x413414
mov dword [esp + 0x14], 0
call fcn.0041b5c0
test eax, eax
je 0x413414
mov eax, ebx
mov dword [esp + 0x10], 0x1000
and eax, 0xfffff000
mov dword [esp + 0x1c], 1
mov dword [esp + 0xc], eax
xorps xmm0, xmm0
mov eax, ebx
movlpd qword [esp + 0x38], xmm0
and eax, 0xfff
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push 0x20
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], 1
push eax
push 1
push 2
push 0xffffffffffffffff
mov dword [esp + 0x44], 0
call fcn.0041b5c0
call eax
xor ecx, ecx
cmp eax, 0xc0000045
cmovne ecx, eax
test ecx, ecx
js 0x413414
mov ecx, dword [0x46ef9c]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 1
call fcn.004073a0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414440
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x40
push ebx
push ebp
mov ebx, edx
mov dword [esp + 0xc], 0
xorps xmm0, xmm0
push esi
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x31], 0
push edi
test ebx, ebx
je 0x41446e
mov edi, ebx
mov dword [esp + 0x14], edi
jmp 0x4144e1
cmp dword [0x46efc8], 3
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
push eax
jge 0x4144cf
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x18
push eax
push 0x1000
lea eax, [esp + 0x20]
mov dword [esp + 0x48], 0
push eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.ntdll.dll_NtOpenProcess]
jmp 0x4144dd
mov edx, 0x1000
lea ecx, [esp + 0x18]
call fcn.0041b2e0
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4145e4
cmp dword [0x46dac0], 0x3e
jb 0x4145e4
test byte [0x46de14], 1
nop dword [eax]
jne 0x4145c2
mov ebp, 0x46de14
lock bts dword [ebp], 0x1f
setb al
test al, al
je 0x414532
test byte [0x46de14], 1
nop
jne 0x4145c2
mov ecx, ebp
call fcn.00414d00
jmp 0x4145c2
cmp dword [0x46dac0], 0x3e
jb 0x414577
mov ecx, str.user32.dll
call fcn.00406640
add eax, eax
mov dword [esp + 0x1c], str.user32.dll
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.004130c0
nop dword [eax]
test eax, eax
je 0x414572
push 0
mov edx, str.IsImmersiveProcess
mov ecx, eax
call fcn.004131a0
mov dword [0x46efb4], eax
lock bts dword [ebp], 0
setb al
test al, al
jne 0x4145c2
mov esi, dword [0x46de18]
test esi, esi
je 0x414597
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [ebp], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4145c2
test esi, esi
je 0x4145c2
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46de18], 0
mov esi, dword [0x46efb4]
test esi, esi
jne 0x4145d0
xor al, al
jmp 0x4145e0
push edi
mov ecx, esi
call dword [0x441280]
call esi
test eax, eax
setne al
mov byte [esp + 0x34], al
lea eax, [esp + 0x28]
push eax
push 0x414380
call dword [sym.imp.USER32.dll_EnumWindows]
test ebx, ebx
jne 0x41460b
mov eax, dword ds:[esp + 0x14]
test eax, eax
je 0x41460b
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword ds:[esp + 0x2c]
test ecx, ecx
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
cmovne eax, ecx
pop ebx
add esp, 0x40
ret 4

Function at 0x414ca0
Capabilities:
Query service status

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x24
push edx
xorps xmm0, xmm0
movups xmmword [edx], xmm0
push 0
movups xmmword [edx + 0x10], xmm0
push ecx
mov dword [edx + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x414cd1
xor eax, eax
pop ecx
ret
cmp dword [0x46dac0], 0xffffffff
jae 0x414ced
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov ecx, eax
add esp, 4
jmp fcn.00414640
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add esp, 4
jmp fcn.00414640
Function at 0x41a240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x41a25d
xorps xmm3, xmm3
mov eax, 6
cvtss2sd xmm3, xmm2
mov dword [esp + 4], eax
jmp fcn.00419440
nop dword [eax]
cmp eax, 0x3b9aca00
jge 0x41a277
xorps xmm3, xmm3
cvtss2sd xmm3, xmm2
mov dword [esp + 4], eax
jmp fcn.00419440
mov ecx, 0x84
mov eax, edx
mov edx, ecx
ret 4

Function at 0x41a6e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x41a6f6
mov eax, 6
mov dword [esp + 4], eax
jmp fcn.00419440
cmp eax, 0x3b9aca00
jge 0x41a706
mov dword [esp + 4], eax
jmp fcn.00419440
mov ecx, 0x84
mov eax, edx
mov edx, ecx
ret 4
Function at 0x41fd40
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x4c
mov eax, dword [0x46d040]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
mov ebp, ecx
mov ebx, edx
push edi
mov eax, 0x38
mov esi, 0x78
mov edi, dword [ebp + 0x30]
mov edx, edi
and edx, 0x3f
sub eax, edx
sub esi, edx
cmp edx, 0x38
cmovb esi, eax
lea eax, [esi - 1]
push eax
lea eax, [esp + 0x15]
push 0
push eax
call fcn.00422df0
mov eax, dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
shl eax, 3
mov ecx, edi
shr ecx, 0x1d
add esp, 0xc
or ecx, eax
mov byte [esp + 0x10], 0x80
lea eax, [edi*8]
bswap eax
bswap ecx
mov dword [esp + esi + 0x14], eax
lea eax, [esi + 8]
mov dword [esp + esi + 0x10], ecx
mov ecx, ebp
push eax
call fcn.0041fca0
mov ecx, dword [ebp + 0x18]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx], edx
mov ecx, dword [ebp + 0x1c]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 4], edx
mov ecx, dword [ebp + 0x20]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 8], edx
mov ecx, dword [ebp + 0x24]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 0xc], edx
mov ecx, dword [ebp + 0x28]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
shr edx, 8
mov ecx, dword [esp + 0x58]
shl eax, 8
pop edi
or edx, eax
mov dword [ebx + 0x10], edx
pop esi
mov dword [ebp + 0x18], 0x67452301
mov dword [ebp + 0x1c], 0xefcdab89
mov dword [ebp + 0x20], 0x98badcfe
mov dword [ebp + 0x24], 0x10325476
mov dword [ebp + 0x28], 0xc3d2e1f0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
pop ebp
pop ebx
xor ecx, esp
call fcn.00421141
add esp, 0x4c
ret

Function at 0x421d9a
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004332c1
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43722a
cmp esi, dword [ebp - 4]
je 0x437225
cmp dword [ebp + 0xc], 0
je 0x437225
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x437202
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00436cf8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43722c
xor eax, eax
inc eax
jmp 0x43722c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x437297
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004332c1
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004332c1
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x43730e
cmp word [ecx], dx
je 0x43730e
mov eax, dword [0x4616ec]
push edi
dec eax
push eax
push 0x4615d8
call fcn.00437230
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x437381
cmp word [eax], dx
je 0x437381
mov eax, dword [edi]
test eax, eax
je 0x437332
cmp word [eax], dx
je 0x437332
lea eax, [ebp - 0x10]
push eax
call fcn.00436bfe
jmp 0x43733b
lea eax, [ebp - 0x10]
push eax
call fcn.00436c99
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4373ab
mov eax, dword [0x4615d4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4612c8
call fcn.00437230
add esp, 0xc
test al, al
je 0x4373ab
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x437376
cmp word [eax], di
je 0x437376
lea eax, [ebp - 0x10]
push eax
call fcn.00436bfe
pop ecx
jmp 0x4373ad
lea eax, [ebp - 0x10]
push eax
call fcn.00436c99
jmp 0x437373
mov eax, dword [edi]
test eax, eax
je 0x437398
cmp word [eax], dx
je 0x437398
lea eax, [ebp - 0x10]
push eax
call fcn.00436bb3
pop ecx
jmp 0x4373ab
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x437476
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004370b5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x437476
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x437476
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x437476
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x437403
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00437aa2
test ebx, ebx
je 0x437471
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00437aa2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x437476
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x437476
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042b3c7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x437478
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421141
leave
ret
Function at 0x4397c4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43980f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043995d
test al, al
jne 0x439809
sub edx, 2
cmp edx, edi
jne 0x4397ef
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x439831
lea eax, [edi + 2]
cmp edx, eax
je 0x439831
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00439710
add esp, 0x10
jmp 0x439929
push esi
lea ecx, [ebp - 0x255]
call fcn.0043995d
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x439872
push dword [ebp - 0x25c]
jmp 0x439821
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4398af
cmp word [ebp - 0x226], 0
je 0x4398d0
cmp word [ebp - 0x226], ax
jne 0x4398af
cmp word [ebp - 0x224], 0
je 0x4398d0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00439710
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43991c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x439889
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x439904
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x439929
push 0x439540
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00430110
add esp, 0x10
jmp 0x4398f9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421141
leave
ret

Function at 0x439a70
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x439a81
pop esi
ret
push ebx
push edi
push esi
call fcn.00439a39
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004318b0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x439aa9
push ebx
push esi
push edi
call fcn.00422f50
add esp, 0xc
push 0
call fcn.00431860
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x439e78
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439abe
Function at 0x43e890
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43e8bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43e8bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xb90108
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb90258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb9012e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb9011a
add dl, dl
jne 0xb90139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb9018c
xor eax, eax
add dl, dl
jne 0xb90146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb9022d
add dl, dl
jne 0xb90155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb90160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9016b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb90176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb90182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb90125
mov eax, 1
add dl, dl
jne 0xb9019a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb901a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb90191
sub eax, ebx
mov ebx, 1
jne 0xb901d8
mov ecx, 1
add dl, dl
jne 0xb901be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb901c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb901b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb90125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb901ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb901fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb901e6
cmp eax, 0x7d00
jae 0xb9021d
cmp eax, 0x500
jb 0xb90218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb90125
cmp eax, 0x7f
ja 0xb90220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb90125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb9024e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb90125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xced370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xced38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xd16074
push ecx
mov edi, eax
call fcn.00d01198
mov esi, eax
add esp, 8
test esi, esi
jne 0xced3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d0102e
push esi
call fcn.00d00fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xcf0850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xcf08ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xd1b720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcf08ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00d011e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xcf08ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd1b720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xcf092a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00d02082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xcf0957
mov word [eax], si
add eax, 2
push eax
call fcn.00d02030
add esp, 4
jmp 0xcf0959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xcf08ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xcf08b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xcf0ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret