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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014168
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x1001e02c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
push 0x404
push 0
lea eax, [ebp - 0x428]
push eax
call fcn.10011fa0
add esp, 0xc
mov dword [ebp - 0x428], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x10005c5c
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x10005c5c
call fcn.10003d50
mov edi, eax
jmp 0x10005d89
push dword [ebp - 0x42c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10005c7a
call fcn.10003d50
jmp 0x10005d7c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x10005c98
call fcn.10003d50
jmp 0x10005d7c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x434], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x10005cb9
mov edi, 0x8007000e
jmp 0x10005d7e
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], edx
test edx, edx
ja 0x10005dcd
jb 0x10005ce3
cmp eax, 0xffffffff
ja 0x10005dcd
cmp eax, 0x400
jbe 0x10005cff
push eax
lea ecx, [ebp - 0x428]
call fcn.10003d20
mov dword [ebp - 4], 1
jmp 0x10005d33
lea eax, [ebp - 0x424]
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 1
jmp 0x10005d33
mov eax, dword [ebp - 0x428]
test eax, eax
jne 0x10005d44
mov edi, 0x8007000e
jmp 0x10005d7e
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10005d5f
call fcn.10003d50
jmp 0x10005d7c
xor edx, edx
mov eax, dword [ebp - 0x428]
mov word [eax + ecx*2], dx
push dword [ebp + 0x14]
push dword [ebp - 0x428]
lea ecx, [ebp - 0x20]
call fcn.10005a40
mov edi, eax
test esi, esi
je 0x10005d89
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x424]
cmp dword [ebp - 0x428], eax
je 0x10005da6
lea ecx, [ebp - 0x428]
call fcn.10003d00
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10010b00
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.10004950
int3
Function at 0x10006a00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001432d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x1001e02c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi + 4], 0
call fcn.100110d5
mov edx, eax
add esp, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov dword [edx], vtable.CPimcContext::CEventSink.0
mov dword [edx + 4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 8]
mov dword [ebp - 0x18], ecx
mov dword [ecx], edx
mov eax, dword [edx]
push edx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1001729c]
call esi
mov dword [ebp - 4], 2
lea eax, [edi + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [eax], 0
mov byte [ebp - 4], 4
lea eax, [edi + 0x10]
mov dword [ebp - 0x20], eax
mov dword [eax], 0
mov byte [ebp - 4], 6
lea ecx, [edi + 0x94]
and dword [edi + 0x8c], 0xfffffffd
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x6c], 0
call fcn.100013d0
lea ecx, [edi + 0xa8]
call fcn.100013d0
lea ecx, [edi + 0xbc]
call fcn.100013d0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10007490
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1c], 0
je 0x1000750b
cmp dword [esi + 0x20], 0
je 0x1000750b
cmp dword [esi + 0x24], 0
je 0x1000750b
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1000750b
push 0x3c
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
mov dword [esi + 0x2c], eax
test eax, eax
mov edi, 0x80000305
cmovne edi, ecx
je 0x10007502
push dword [eax]
push ecx
push ecx
push 4
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
mov dword [esi + 0x30], eax
test eax, eax
mov edi, 0x80000306
cmovne edi, ecx
je 0x10007502
add eax, 0x3c
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x34], eax
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x38], ecx
test edi, edi
js 0x10007510
mov eax, edi
pop edi
pop esi
ret
mov edi, 0x80000304
mov ecx, esi
call fcn.10007520
mov eax, edi
pop edi
pop esi
ret
Function at 0x10008c70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014873
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x1001e02c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea esi, [edi + 8]
mov dword [edi + 4], 0
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [ebp - 4], 1
lea eax, [edi + 0xc]
mov dword [ebp - 0x18], eax
mov dword [eax], 0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x10]
call fcn.100013d0
lea ecx, [edi + 0x30]
call fcn.100013d0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
cmp dword [esi], 0
je 0x10008d1e
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 5
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov dword [esi], 0
mov byte [ebp - 4], 3
test eax, eax
je 0x10008d1e
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x1001729c]
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000b9d0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1001e02c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000ba94
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push edi
push edi
push 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000ba8b
push esi
push 0x10018324
push eax
call fcn.10010b48
mov esi, eax
add esp, 8
test esi, esi
je 0x1000ba8a
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1000ba81
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], edi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x12
push 1
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1000ba81
push dword [ebp - 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.10010b43
add esp, 4
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.10010b00
mov esp, ebp
pop ebp
ret
Function at 0x100119f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10011a1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10011a1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10040586
Capabilities:
Encode data using add xor sub operations

Disassembly:
sal bl, 0x67
mov esi, dword [esp + esi - 0x538f9687]
mov edi, 0xe3894c83
pop eax
mov dword [esp + ebx - 0x9680], ebx
mov edi, dword [esp + ebx - 0x967c]
xchg dword [esp + ebx*8 - 0x4b400], ebx
pop eax
mov dword [esp + ebx - 0x9680], 0xc8428ab
mov edx, dword [esp + ebx - 0x967c]
add bx, ax
mov dword [esp + ebx - 0x2cfc], eax
call fcn.100c414c

Function at 0x100405cd
Capabilities:
Encode data using xor

Disassembly:
dec eax
mov dword [esp], 0xe4500412
call fcn.10085adc
push ebp
add al, 0
or dword [edx + 0x37], esp
cdq
sal byte [esi - 0x22], 0xc0
xor dword [ecx + 0x4ac885ba], esi
sub edi, dword [ebp + 0x32e21315]
cmp dword [esi + 0x13], ecx
xchg ebp, eax
jb 0x100405d8
add edx, dword [ecx - 0x5f604599]
mov al, 0xcb
cmc
aad 0xff
xlatb
in eax, 0x42
inc esp
or dword [ecx - 6], esi
pop esp
xor al, 0x72
adc bh, ah

Function at 0x1004cc54
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp], edi
movzx edi, byte [edx]
xor edi, eax
push 0xe5150f06
and edi, 0xff
mov edi, dword [edi*4 + 0x10008b3c]
shr eax, 8
xor eax, edi
inc edx
xor eax, 0x353c16b5
dec esi
lea esp, [esp + 4]
jne 0x1004cc57
jmp 0x100923e3
push 0x60335c01
mov edi, dword [esp + 4]
lea esp, [esp + 8]

Function at 0x1008ff7a
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp], ebx
mov ebx, 0xd78ae03d
movzx ebx, byte [ecx]
push 0x6b02ffb4
xor ebx, esi
sar byte [esp], 0x81
seto byte [esp + 2]
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x1001d06c]
shr esi, 8
xor esi, ebx
inc ecx
xor esi, 0x539c7087
dec eax
lea esp, [esp + 4]
jne 0x1008ff7d
pop ebx
push 0xc6948e82
not esi
push 0xa0b82589
mov dword [ebp], esi
lea esp, [esp + 8]
jmp fcn.1002d70d

Function at 0x1011b88b
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
sal dh, cl
bt bp, si
mov ebp, esp
xor dx, bp
mov edx, dword [ebp + 8]
lea esp, [esp - 0x114]
cmc
push esi
test ebx, eax
jmp 0x101af681
je 0x10176a97
mov esi, dword [ebp + 0xc]
test esi, esi
jmp 0x101bc7d5
test edx, edx
jmp 0x1019dbda
je 0x10176a97
mov eax, 0x5a4d
cmp word [edx], ax
jmp 0x10176a91

Function at 0x101285ed
Capabilities:
Encode data using base64

Disassembly:
adc ebp, 2
mov dword [esp], ecx
sub edi, 1
push ecx
movzx ecx, byte [edi]
xor cl, bl
dec cl
not cl
inc cl
push 0x962805a7
xor cl, 0x92
jmp 0x10205db9
call fcn.102432a3
call fcn.101fa6d9
xchg ebp, eax
scasb al, byte es:[edi]
pop eax
pop eax
jno 0x10155d69
sal dword [esp + 1], 0xa
not cl
inc cl
xor bl, cl
inc dword [esp + 4]
lea ecx, [esp + ecx + 0xc]
setg byte [esp + 3]
mov word [ecx], dx
je 0x101f3b4c
lea esp, [esp + 0xc]
jne fcn.1025a899
jg 0x10205d68
cmp ebx, dword [edx + 0x7278534b]
adc dword [eax - 0x77], edi
add al, 0x8d
mov byte [edx - 0x7d69895e], ch
mov ecx, 0x34f4d85a
dec esp
cmp byte [eax - 0x43], al
aaa
retf 0xa865

Function at 0x10136d9b
Capabilities:
Encode data using base64

Disassembly:
dec ebx
mov dword [esp], 0x9a388bbb
lea esp, [esp + 4]
jne 0x10195623
call fcn.101d8ea5
mov ecx, 0xadbc6d09
mov edi, ecx
mov edi, dword [esi + 4]
mov cl, byte [esi + 8]
jmp 0x101aa586
mov eax, dword [ebp + ebx*4]
push eax
call fcn.10136d9b
jmp 0x10149910
Function at 0x10139253
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp], edi
movzx edi, byte [edx]
xor edi, eax
push 0xe5150f06
and edi, 0xff
mov edi, dword [edi*4 + 0x101a6fc4]
shr eax, 8
xor eax, edi
inc edx
xor eax, 0x353c16b5
dec esi
lea esp, [esp + 4]
jne 0x10139256
jmp 0x1013b1b5
push 0x60335c01
mov edi, dword [esp + 4]
lea esp, [esp + 8]

Function at 0x1013a410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
dec edx
mov dword [esp + 4], 0x1387e52d
jmp 0x10247bd7
lea esp, [esp + 4]
je 0x10247be1
add al, 0xf
test ah, cl
mov al, byte [0x26b80008]
retf
mov eax, 0x7ebacb26
movzx eax, byte [eax + ecx - 0x7ebacb26]
xor eax, edi
and eax, 0xff
push 0x638e5899
mov eax, dword [eax*4 + 0x1011ce10]
call fcn.1013ce3d
dec edx
xchg ebx, eax
or al, 0x9b
or eax, 0x7c128708
adc edx, dword [0x467e17c9]
jg 0x101bdb7a
int1
jbe 0x101bdb0e
jne 0x101bdb6a
push ebx
inc edi
invalid
in al, 0xfd
scasb al, byte es:[edi]
enter 0xfffffffffffffbf4, 0xffffffffffffffff
invalid
and edi, dword [edx]
sbb bh, byte [ebx + 0x16]
fcomp st(3)
sub bl, byte [esi]
inc esp
stosd dword es:[edi], eax
aam 0xcb
jne 0x101bdb0b
cmp al, 0x3e
cmp dword [esp + 0x62], esp
insd dword es:[edi], dx
sub byte [ebp + edx*8 - 0x29], cl
not ah
adc ch, byte [eax]
push esi
int1
int3
lea esp, [esp + 0x10]
jne 0x101bdb15
not edi
call fcn.1010ed4a

Function at 0x1016cc67
Capabilities:
Encode data using xor

Disassembly:
add ebp, 2
jmp 0x1016cc52
call fcn.1018d72e
dec ecx
add edi, 6
inc cx
mov dword [edi], ecx
call fcn.10102f85
mov edx, 0x8bac092b
lea eax, [edx + edx*8 + 0x702fc83]
or ax, dx
mov ax, word [esi]
sar dx, 0xe5
jne 0x10174f29
stosd dword es:[edi], eax
sbb bh, ah
xchg ecx, eax
retf
xor dl, bl
push 0x592f1b2b
dec dl
rol dl, 1
sub dl, 0x8a
xor dl, 0xb
xor bl, dl
jmp 0x101d32c4
sar edx, 4
add esi, 2
sal dx, 0x2c
movzx edx, byte [ebp]
jae 0x1020b659
add al, cl
adc eax, eax
dec edx
or dword [ebx], ecx
out dx, al
invalid
xor dl, bl
add dl, 0x33
mov eax, 0x3c9202a4
xor dl, 0xa3
sub eax, 0x9e093ab7
dec dl
call fcn.10243812
mov ecx, 0x961ab8b5
mov ecx, dword [ebp]
mov eax, 0x6815ab04
sal eax, 0x5a
adc al, byte ss:[ecx + eax - 0x10000000]
jmp 0x101395d7
lea edx, [esp + edx + 4]
push 0xe39a9505
mov byte [edx], al
call fcn.101c749f
mov word [ebx + esi + 0x36], es
mov ecx, 0x2b3d6a94
mov byte [0x2c82cbfd], al
loopne 0x101d3343
inc eax
jecxz 0x101d32d4
invalid
add ch, al
retf 0xc18e
adc ebp, 1
jmp 0x101731f9
Function at 0x101fa323
Capabilities:
Encode data using xor

Disassembly:
sub esi, 0xc
mov dword [esi + 0xc], eax
push 0x21b6fd3b
mov dword [esi + 8], ebx
mov dword [esi + 4], ecx
mov dword [esp], 0x9f19930d
mov dword [esi], edx
call fcn.1025502c
sub al, byte [ecx]
jno 0x101fa3ab
shl dword [ebx], cl
in eax, dx
sub al, bl
invalid
neg byte [ebp + 0x3e]
dec ecx
jnp 0x101fa3c2
push esi
bswap edi
and dword [esp + ecx*2], ecx
mov bh, 0xb6
sahf
rcl byte [ecx], 0xf9
fimul dword [ebx + 0x77]
xor eax, ecx
adc byte [edi + 0x19809ed6], ch
cmp dword [edi], 0x2d5408ed
cdq
push ss
mov dh, cl
popfd
iretd
pop ds
enter 0xffffffffffffb054, 0x7f
xor byte [ebx], ah
sub eax, 0x1ce1af75
imul edx, ebp, 0x7cde0efb
mov dh, byte [ecx - 0x47]
jno 0x101fa379
xor dword [edx], eax
or esi, dword [ebx - 0x2a5ef4db]
push ebp
push esp
and ecx, dword [edx + edx*8]
push es
loope 0x101fa3be
sahf
cdq
fbstp tbyte [esi + 0x60]
test dword [eax - 0x34], esi
sal byte [eax + 0x5f], 1
das
jmp 0x101fa3f4
adc ch, byte [edi - 0x4bc98412]
fldcw word [eax + 0x406758f7]
sub byte [ebp + edi*4 - 0x527acd0], bh
jo 0x101fa3c8
xchg edi, eax
inc eax
stosd dword es:[edi], eax
les eax, [edx + 0x28]
mov bl, 0xd
cmp al, 0xe0
imul ebx, dword [ebp + 6], 0xb69bff07
mov al, 0x31
inc esp
aad 0xd
add al, 0xcb
daa
xor al, 0xbb
test al, 0x32
cld
jge 0x101fa3d2
fdiv qword [ecx + ebx*8 + 0x55f157a8]
jecxz 0x101fa471
das
pop edi
sbb dword [edi], esp
mov al, byte [0x341c2d0b]
xor dh, byte [edi - 0x7a]
adc ebx, dword [esi - 0x27]
push ss
push esi
mov cl, 0x2a
rol dword [ebx + 0x68], 1
scasd eax, dword es:[edi]
cmpsb byte [esi], byte es:[edi]
enter 0xffffffffffff8bc7, 0xfffffffffffffff0
mov cl, 0x11
mov edx, 0xf717bacf
outsb dx, byte [esi]
mov esi, 0x580d2695
pop ecx
sbb dword [ecx + ebx*2 + 0x64b2928e], edx
mov dh, 0xef
add eax, 0xb6c6d9bf
and al, 0x23
fsub st(4)
inc esp
mov ch, 0xea
dec edi
dec esi
mov ebx, 0x6793c8c8
popal
mov dh, 6
mov ebx, 0x966dbf5d
loopne 0x101fa485
stc
cmp byte [ebx + ecx*4 - 0x306e0c31], 0xd1
adc ecx, ecx
imul ebp, edi, 0x32cf2867
int3

Function at 0x1022abd6
Capabilities:
Encode data using xor

Disassembly:
push 0xebab5b22
mov dword [esp], eax
mov eax, 0x9f393631

Function at 0x10254cf7
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp], ebx
mov ebx, 0xd78ae03d
movzx ebx, byte [ecx]
push 0x6b02ffb4
xor ebx, esi
sar byte [esp], 0x81
seto byte [esp + 2]
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x1019e258]
shr esi, 8
xor esi, ebx
inc ecx
xor esi, 0x539c7087
dec eax
lea esp, [esp + 4]
jne 0x10254cfa
pop ebx
push 0xc6948e82
not esi
push 0xa0b82589
mov dword [ebp], esi
lea esp, [esp + 8]
jmp fcn.1020457a
Function at 0x642c6785
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x642c8008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x800
lea eax, [ebp - 0x804]
push edi
xor esi, esi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [0x642c8388], esi
jne 0x642c67d2
call fcn.642d1f50
mov dword [0x642c8010], eax
mov dword [0x642c8388], 1
jmp 0x642c67d7
mov eax, dword [0x642c8010]
test eax, eax
jle 0x642c6856
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x804]
call fcn.642c66d6
test eax, eax
js 0x642c6856
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x642c67fa
sub ecx, edx
mov eax, 0x3fd
sar ecx, 1
cmp ecx, eax
jb 0x642c6814
mov ecx, eax
push 0xa
pop edx
cmp word [ebp + ecx*2 - 0x806], dx
je 0x642c6849
push 0xd
pop eax
mov word [ebp + ecx*2 - 0x804], ax
mov word [ebp + ecx*2 - 0x802], dx
lea ecx, [ecx*2 + 4]
cmp ecx, edi
jae 0x642c6864
xor eax, eax
mov word [ebp + ecx - 0x804], ax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.642c7760
leave
ret
call fcn.642c78a8
int3
Function at 0x642c7980
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x642c79be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x642c79b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x642c79c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x642c79a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x642c7a90
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x642c7ac1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x642c7ac1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x642c7ac1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x642cc48a
Capabilities:
Encode data using xor

Disassembly:
call 0x642cc403
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x642cc433
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x642cc44f
xor edx, 0
jmp 0x642cc45a
xor edx, edx
jmp 0x642cc471
jmp 0x642cc47d
xor eax, eax
push 0x8427d7c0
call 0x642cc48a
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x642cc4c6
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x642cc49f
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x642cc4dd
add eax, 0
jno 0x642cc4e2
add esi, 0
ret 0x10
Function at 0x642cd24b
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x642cd26d
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x642cd40f
cmp edi, dword [ebp + 0x10]
jb 0x642cd40f
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.642ccd37
inc edi
jmp 0x642cd2f6
jmp 0x642cd303
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.642ccd37
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.642ccd37
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x642cd357
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x642cd33b
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.642cd385
add dword [eax], 0x39
jle 0x642cd361
sub al, 0xf5
mov ch, al
call fcn.642cd39a
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x642cf072
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x642cf088
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x642cf099
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.642cf0da
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx