joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2a5009c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x2a511ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.02a425f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.02a50024
mov edx, dword [ebp - 0xc]
mov eax, 0x2a51208
call fcn.02a428dc
test eax, eax
je 0x2a500ef
mov byte [0x2a57a8c], 1
cmp byte [0x2a57a8c], 0
je 0x2a501d2
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.02a425f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.02a50024
mov edx, dword [ebp - 0xc]
mov eax, 0x2a5121c
call fcn.02a428dc
test eax, eax
jne 0x2a501d2
mov edx, 0x2a51228
mov ecx, 4
mov eax, ebx
call fcn.02a4fed0
test eax, eax
jne 0x2a50147
mov edx, ebx
add edx, 4
mov eax, ebx
call fcn.02a4fea8
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push ebx
call fcn.02a44138
mov ebx, eax
cmp ebx, 0xffffffff
je 0x2a501d2
push 0
push 0
push 0
push 2
push 0
push ebx
call fcn.02a44140
mov esi, eax
push ebx
call fcn.02a44128
test esi, esi
je 0x2a501d2
push 0
push 0
push 0
push 4
push esi
call fcn.02a44208
mov ebx, eax
test ebx, ebx
je 0x2a501d2
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x2a501d2
mov eax, dword [eax + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x2a501d2
mov edi, eax
mov eax, dword [eax + 0x1c]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.02a4fef8
test al, al
je 0x2a501c6
mov byte [ebp - 1], 1
push ebx
call fcn.02a44218
push esi
call fcn.02a44128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2a511f4
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.02a42464
ret

Function at 0x2a502dc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop ecx
pop ebp

Function at 0x2a51268
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x2a51279
mov al, 1
ret
Function at 0x2a5b651
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x2a5b66e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x2a5b65f
add dl, dl
jne 0x2a5b679
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x2a5b6c5
xor eax, eax
add dl, dl
jne 0x2a5b686
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x2a5b762
add dl, dl
jne 0x2a5b695
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2a5b6a0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2a5b6ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2a5b6b6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x2a5b6c0
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x2a5b665
mov eax, 1
add dl, dl
jne 0x2a5b6d3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2a5b6de
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2a5b6ca
sub eax, 2
jne 0x2a5b70d
mov ecx, 1
add dl, dl
jne 0x2a5b6f3
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2a5b6fe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2a5b6ea
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2a5b665
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x2a5b724
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2a5b72f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2a5b71b
cmp eax, 0x7d00
jae 0x2a5b752
cmp eax, 0x500
jb 0x2a5b74d
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2a5b665
cmp eax, 0x7f
ja 0x2a5b755
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2a5b665
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x2a5b77e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2a5b665
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8

Function at 0x4260f8
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0042617b
jae 0x426106
xor ecx, ecx
call fcn.0042617b
jae 0x426135
xor eax, eax
call fcn.0042617b
jae 0x426145
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0042617b
adc al, al
jae 0x426127
jne 0x426171
stosb byte es:[edi], al
jmp 0x426109
call fcn.00426187
sub ecx, ebx
jne 0x42614e
call fcn.00426185
jmp 0x42616d
lodsb al, byte [esi]
shr eax, 1
je 0x426197
adc ecx, ecx
jmp 0x42616a
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00426185
cmp eax, 0x7d00
jae 0x42616a
cmp ah, 5
jae 0x42616b
cmp eax, 0x7f
ja 0x42616c
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x426109
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x12ab4432
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, str.WfUf
nop
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x661750c5
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4b7a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x75000]
push edi
jmp 0x4b7a9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b7aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7a90
mov eax, 1
add ebx, ebx
jne 0x4b7ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b7ac4
jne 0x4b7ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7ae3
dec eax
add ebx, ebx
jne 0x4b7ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b7aa8
add ebx, ebx
jne 0x4b7adf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b7b35
xor ecx, ecx
sub eax, 3
jb 0x4b7afb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b7b6a
sar eax, 1
mov ebp, eax
jmp 0x4b7b06
add ebx, ebx
jne 0x4b7b06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7ad4
inc ecx
add ebx, ebx
jne 0x4b7b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7ad4
add ebx, ebx
jne 0x4b7b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b7b16
jne 0x4b7b32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b7b16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b7b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b7b46
jmp 0x4b7a96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b7b54
add edi, ecx
jmp 0x4b7a96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b7b72
cmp byte [edi], 0x11
jne 0x4b7b72
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 0x4b7b77
lea edi, [esi + 0xb3000]
mov eax, dword [edi]
or eax, eax
je 0x4b7bef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbe038]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbe18c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b7ba4
mov ecx, edi
jns 0x4b7bd3
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 + 0xbe190]
or eax, eax
je 0x4b7be9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b7bc1
call dword [esi + 0xbe1a0]
mov ebp, dword [esi + 0xbe194]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4b7c23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x501a84
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00501b03
jae 0x501a90
xor ecx, ecx
call fcn.00501b03
jae 0x501aba
xor eax, eax
call fcn.00501b03
jae 0x501acb
mov al, 0x10
call fcn.00501b03
adc al, al
jae 0x501aac
jne 0x501af8
stosb byte es:[edi], al
jmp 0x501a91
call fcn.00501b0f
dec ecx
loop 0x501ad7
mov eax, ebp
call fcn.00501b0d
jmp 0x501af9
lodsb al, byte [esi]
shr eax, 1
je 0x501b1f
adc ecx, 2
mov ebp, eax
jmp 0x501af9
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00501b0d
cmp eax, 0x7d00
jae 0x501af7
cmp eax, 0x500
jae 0x501af8
cmp eax, 0x7f
ja 0x501af9
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x501a91
pop ebp
ret 8

Function at 0x42d080
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x42d098
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x42d176
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042d9e0
add esp, 8
sar eax, 0xc
cmp eax, 3
jne 0x42d171
mov dword [ebp - 0x10], 0xfff
mov dword [ebp - 0xc], 0x9922c
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042d9e0
add esp, 8
and eax, dword [ebp - 0x10]
add eax, 0x8702
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
mov dword [ebp - 0xc], 0x9922c
cmp dword [ebp - 4], 0
jne 0x42d14a
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x42d14a
xor eax, eax
jmp 0x42d176
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
add ecx, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx - 0x8702]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
add edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx - 0x8702], eax
jmp 0x42d08f
mov esp, ebp
pop ebp
ret

Function at 0x42d9e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x240be8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x240be8
push 0x15b9
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x42da15
xor eax, eax
jmp 0x42da1f
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
movzx eax, word [eax + edx*2]
mov esp, ebp
pop ebp
ret
Function at 0x100335b
Capabilities:
Get disk information
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x1c]
mov word [ebx], si
mov word [eax], si
push 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push ebx
push eax
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 8]
cmp ebx, esi
mov dword [edi], ecx
je 0x10033da
cmp eax, esi
je 0x10033da
xor eax, eax
inc eax
jmp 0x10033dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1004181
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, 0x105
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x20a
push 8
push eax
mov dword [ebp - 8], eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x10041d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
push 0x8bd
push 0x10017f0
call dword [sym.imp.msvcrt.dll_wprintf]
add esp, 0x10
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100423f
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
mov dword [ebp - 4], eax
jbe 0x1004226
push ebx
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 4]
inc esi
lea eax, [esi + esi]
push eax
push 8
push dword [ebp - 8]
call edi
mov ebx, eax
test ebx, ebx
jne 0x1004218
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 8
push 0x8cc
jmp 0x10041bd
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1004231
cmp dword [ebp - 4], esi
jbe 0x100423f
push ebx
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1004de9
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1006095
call fcn.01005c58
mov eax, 0x20ec
call fcn.01005cd0
mov eax, dword [0x100710c]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x20dc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20e0], esi
mov dword [ebp - 0x20e8], esi
call fcn.01005904
mov eax, dword [0x10071e8]
cmp eax, esi
mov dword [ebp - 4], esi
je 0x1004f31
cmp eax, 0xffffffff
je 0x1004f31
xor ebx, ebx
inc ebx
cmp dword [ebp + 8], 2
jne 0x1004e4d
push 0x456
jmp 0x1004e5b
cmp dword [ebp + 8], ebx
jne 0x1004f31
push 0x457
lea ecx, [ebp - 0x20dc]
call sub.MFC42u.DLL_CString::LoadStringW
test eax, eax
je 0x1004e6c
mov esi, ebx
push 2
push 0
push 0
push dword [0x10071e8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x20f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
test esi, esi
je 0x1004e97
lea eax, [ebp - 0x20dc]
jmp 0x1004ead
push 0x1001ab8
lea ecx, [ebp - 0x20e4]
call sub.MFC42u.DLL_CString::CString_1
mov dword [ebp - 0x20e0], ebx
movzx ecx, word [ebp - 0x20ec]
mov eax, dword [eax]
push edi
push ecx
movzx ecx, word [ebp - 0x20ee]
push ecx
movzx ecx, word [ebp - 0x20f0]
push ecx
movzx ecx, word [ebp - 0x20f2]
push ecx
movzx ecx, word [ebp - 0x20f6]
push ecx
movzx ecx, word [ebp - 0x20f8]
push ecx
push eax
lea eax, [ebp - 0x20d8]
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x24
test byte [ebp - 0x20e0], bl
je 0x1004f04
lea ecx, [ebp - 0x20e4]
call sub.MFC42u.DLL_CString::CString
push 0
lea eax, [ebp - 0x20e8]
push eax
lea eax, [ebp - 0x20d8]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x20d8]
push eax
push dword [0x10071e8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20dc]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01005413
leave
ret 8
Function at 0x1004f9c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x100710c]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
xor ebx, ebx
rep stosd dword es:[edi], eax
inc ebx
lea edi, [edx + 8]
mov dword [esi], ebx
mov dword [ebp - 0x2ac], esi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push edi
mov dword [ebp - 0x2a8], edx
call esi
cmp eax, 0x40
pop ecx
jae 0x10050af
mov eax, dword [ebp - 0x2a8]
add eax, 0x888
push eax
call esi
test eax, eax
pop ecx
jbe 0x10050af
push ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
call esi
mov esi, eax
push esi
lea eax, [ebp - 0xa4]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0x10
lea eax, [esi + esi]
push 0x10
xor esi, esi
mov word [ebp - 0xa2], 0x5c
mov word [ebp + eax - 0xa4], 0x5c
mov word [ebp + eax - 0xa2], si
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
push 0x100
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_wcscmp]
je 0x1005082
mov eax, dword [ebp - 0x2a8]
add eax, 0x888
push eax
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x100508c
mov eax, dword [ebp - 0x2ac]
xor ebx, ebx
mov dword [eax], esi
mov eax, dword [ebp - 0x2a8]
add eax, 0x8a8
push eax
lea eax, [ebp - 0x2a4]
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x10050af
mov eax, dword [ebp - 0x2ac]
mov dword [eax], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.01005413
leave
ret 8

Function at 0x1005339
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
inc edi
xor esi, esi
cmp dword [0x100720c], esi
mov dword [0x1007200], edi
mov dword [0x1007204], edi
mov dword [0x1007208], esi
jne 0x1005368
call fcn.01004f5e
test eax, eax
je 0x1005387
push esi
push esi
push dword [ebp + 8]
push 0x1005179
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x1005387
cmp eax, 0xffffffff
je 0x1005387
mov eax, edi
jmp 0x1005395
mov dword [0x1007204], esi
mov dword [0x1007200], esi
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x4010e0
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 0x4010f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401134
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401130
lea ebx, [ebx]
cmp esi, eax
jae 0x401134
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401120
cmp esi, eax
jb 0x40113a
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 0x401f70
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x46792b
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x164]
xor edi, edi
push edi
push 2
mov ebp, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x28]
push ecx
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402028
lea ebx, [ebp + 0x330]
mov edi, dword [ebx + 8]
test edi, edi
jl 0x402042
push 0xffffffffffffffff
lea edx, [edi + 1]
push edx
mov ecx, ebx
call fcn.004013c0
imul edi, edi, 0x128
add edi, dword [ebx + 4]
mov ecx, 0x4a
lea esi, [esp + 0x28]
lea eax, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401fe7
mov ebx, dword [esp + 0x20]
xor edi, edi
call fcn.00432e51
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402047
push 0x80004005
call fcn.00401090
call fcn.00431a0d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
cmp dword [ebp + 0x338], edi
mov dword [esp + 0x15c], edi
mov dword [esp + 0x1c], edi
jle 0x402100
jmp 0x402074
mov ebx, dword [esp + 0x20]
test edi, edi
jl 0x402042
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [ebp + 0x338]
jge 0x402042
mov eax, dword [ebp + 0x334]
add eax, edi
add eax, 0x24
push eax
lea edx, [esp + 0x18]
push 0x46ea2c
push edx
call fcn.00401f50
mov eax, dword [ebx]
sub eax, 0x10
add esp, 0xc
cmp dword [eax + 0xc], 1
jle 0x4020b8
mov eax, dword [eax + 4]
push eax
mov ecx, ebx
call fcn.00401720
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], 1
mov ebx, dword [ebx]
jle 0x4020d5
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401720
mov esi, dword [esp + 0x14]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4020e5
inc dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc eax
add edi, 0x128
cmp eax, dword [ebp + 0x338]
mov dword [esp + 0x1c], eax
jl 0x402070
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov dword [esp + 0x15c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402132
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004517f0
add esp, 0x14c
ret 4
Function at 0x402fb0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
call edi
mov ecx, dword [esi + 0x48]
push ecx
call edi
push 0
push 4
push 0
push 0
push esi
push 0x4186e0
call fcn.00434f49
mov dword [esi + 0x40], eax
test eax, eax
jne 0x402ff1
pop edi
pop esi
ret
mov dword [eax + 0x28], 0
mov edx, dword [esi + 0x40]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 0x48]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x64]
pop edi
pop esi
ret

Function at 0x403500
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x84
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
push 0x7f
lea eax, [esp + 9]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x10], 0
call fcn.00451390
add esp, 0xc
push 0x80
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [esp + 4]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x46ea2c
add esi, 0x1c
push esi
call fcn.00401f50
mov ecx, dword [esp + 0x90]
add esp, 0xc
pop esi
xor ecx, esp
call fcn.004517f0
add esp, 0x84
ret