joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425f80
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a2ff
mov eax, dword fs:[0]
push eax
mov eax, 0xa030
call fcn.0044ce20
mov eax, dword [0x48bb84]
xor eax, esp
mov dword [esp + 0xa02c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48bb84]
xor eax, esp
push eax
lea eax, [esp + 0xa044]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
push 0x471d25
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa050], ebx
call fcn.004253a0
push 0x471d8c
lea ecx, [esp + 0xa05c]
mov byte [esp + 0xa050], 1
call fcn.00402730
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044cdc7
add esp, 0xc
test eax, eax
jne 0x426128
mov ecx, dword [esp + 0x14]
push 2
push ebx
push ecx
call fcn.0044e417
mov edx, dword [esp + 0x20]
push edx
call fcn.0044e31f
add esp, 0x10
cmp eax, ebx
jne 0x426037
mov eax, dword [esp + 0x14]
push eax
call fcn.0044cacc
add esp, 4
jmp 0x426128
cdq
mov ecx, 0xa000
idiv ecx
mov edi, edx
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call fcn.0044e0bc
add esp, 4
cmp esi, ebx
jle 0x4260ae
mov eax, dword [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x3c]
push 0xa000
push ecx
call fcn.0044e09f
add esp, 0x10
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0xa038], bl
call fcn.00425490
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa050], 2
call fcn.004256c0
lea ecx, [esp + 0x24]
mov byte [esp + 0xa04c], 1
call fcn.00425570
sub esi, 1
jne 0x426054
mov ecx, dword [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x3c]
push edi
push edx
call fcn.0044e09f
add esp, 0x10
mov byte [esp + edi + 0x34], bl
cmp edi, ebx
je 0x426100
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
call fcn.00425490
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa050], 3
call fcn.004256c0
lea ecx, [esp + 0x24]
mov byte [esp + 0xa04c], 1
call fcn.00425570
mov edx, dword [esp + 0x14]
push edx
call fcn.0044cacc
add esp, 4
push ebx
sub esp, 0xc
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.00425410
mov ecx, ebp
call fcn.00425d10
lea ecx, [esp + 0x18]
mov byte [esp + 0xa04c], bl
call fcn.00425570
lea ecx, [esp + 0xa054]
mov dword [esp + 0xa04c], 0xffffffff
call fcn.00425570
mov ecx, dword [esp + 0xa044]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa02c]
xor ecx, esp
call fcn.0044b758
add esp, 0xa03c
ret 0xc
Function at 0x42e1d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x42e1fa
cmp dword [edi + 0x54], 0
jne 0x42e1fa
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0043a4b0
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042e197
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x433c19
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x433c60
call fcn.0043a4b0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x433c60
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x433c7c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00433793
mov esi, eax
test edi, edi
je 0x433c7a
test ebx, ebx
je 0x433c7a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x434b75
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x46b90c
call fcn.0044ebc9
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x434b9a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x434be0
lea ecx, [ebp - 0x10]
call fcn.00402630
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00434338
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402930
mov eax, esi
call fcn.0044eca1
ret 8
Function at 0x4391bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x439207
call fcn.0043a4b0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x439207
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x43924a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x439233
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x439233
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x439247
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x44b758
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48bb84]
jne 0x44b762
repz ret
jmp fcn.00452805
Function at 0x460a57
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004538f8
and dword [ebp - 4], 0
cmp dword [0x491318], 0
mov ebx, eax
jne 0x460b08
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x460bb9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47aad4
push edi
call esi
test eax, eax
je 0x460bb9
push eax
call fcn.00453886
mov dword [esp], 0x47aac4
push edi
mov dword [0x491318], eax
call esi
push eax
call fcn.00453886
mov dword [esp], 0x47aab0
push edi
mov dword [0x49131c], eax
call esi
push eax
call fcn.00453886
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x491320], eax
call esi
push eax
call fcn.00453886
pop ecx
mov dword [0x491328], eax
test eax, eax
je 0x460b08
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00453886
pop ecx
mov dword [0x491324], eax
mov eax, dword [0x491324]
cmp eax, ebx
je 0x460b60
cmp dword [0x491328], ebx
je 0x460b60
push eax
call fcn.00453901
push dword [0x491328]
mov esi, eax
call fcn.00453901
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x460b60
test edi, edi
je 0x460b60
call esi
test eax, eax
je 0x460b57
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x460b57
test byte [ebp - 0xc], 1
jne 0x460b60
or dword [ebp + 0x10], 0x200000
jmp 0x460b99
mov eax, dword [0x49131c]
cmp eax, ebx
je 0x460b99
push eax
call fcn.00453901
pop ecx
test eax, eax
je 0x460b99
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x460b99
mov eax, dword [0x491320]
cmp eax, ebx
je 0x460b99
push eax
call fcn.00453901
pop ecx
test eax, eax
je 0x460b99
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x491318]
call fcn.00453901
pop ecx
test eax, eax
je 0x460bb9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x460bbb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b639
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
or ebx, ebx
dec edx
sub ebx, 0xd476190f
call fcn.0043b679
add edx, 0x89d16f4a
xor dword [ecx], edi
add ebx, edx
inc ecx
sub ebx, 1
mov ebx, edx
sub ebx, 0x4775f532
cmp ecx, esi
jne fcn.0043b639
or edx, edx
add edx, 0xef62bab0
inc ebx
ret
Function at 0x4013c5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4159d0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x415b7a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x4a
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x44
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0x10
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x61
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xd1
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
add esp, 0x44
push eax
call fcn.0040616d
add byte [esi + ebx], 0xbb
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xa0
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x90
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xf6
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x73
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x46
add esp, 0x40
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0x61
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
xor byte [esi + ebx], 0xbb
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xb7
push str.Halloween_Beasts
push 0x4d34b0
call fcn.00402d79
push eax
call fcn.0040616d
add byte [esi + ebx], 0xc0
add esp, 0x30
inc esi
cmp esi, edi
jb 0x4159f0
pop ebx
pop edi
pop esi
ret

Function at 0x4035f3
Capabilities:
Terminate process

Disassembly:
jmp 0x453df9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453e0a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405948
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40371f
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c842
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c853
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c729
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c87b
push ebx
push esi
push edi
call fcn.0040572c
add esp, 0xc
push 0
call fcn.004062b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00402767
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00402767
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00402767
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00402767
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00402767
mov dword [0x41203c], eax
call fcn.00402767
test eax, eax
jge 0x402550
push 8
call fcn.00402767
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00402767
pop ecx
push 1
call fcn.00402767
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00402767
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00402767
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00402767
jmp 0x402495

Function at 0x402767
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x402776
pop dword [ebp - 0x24]
mov eax, 0x402776
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x36526
push 0
mov eax, 0x6a7e2f3
sub eax, 0x667021b
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xf9580270
add ecx, 0x6a83793
xor ebx, ebx
add ebx, eax
mov esi, 0x5b2e1530
sub esi, 0x5aecd96c
add esi, dword [ebp - 0x24]
mov edi, 0xa6299598
add edi, 0x8cf40290
xor dword [ebp - 0x20], ecx
mov edx, dword [esi]
add edx, edi
xor dword [ebp - 0xc], eax
mov dword [ebx], edx
sub dword [ebp - 0x1c], 0x859b158b
add ebx, 0x27e75271
sub ebx, 0x27e7526d
add esi, 4
loop 0x4027d2
add eax, 0xdadf
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406520
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x406015
lea edi, [esi - 0x5015]
push edi
or ebp, 0xffffffff
jmp 0x406542
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x406549
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x406538
mov eax, 1
add ebx, ebx
jne 0x40655b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x406550
jne 0x40656c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x406550
xor ecx, ecx
sub eax, 3
jb 0x406580
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4065f2
mov ebp, eax
add ebx, ebx
jne 0x40658b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x406598
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4065bc
inc ecx
add ebx, ebx
jne 0x4065a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40659d
jne 0x4065b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40659d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4065dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4065cd
jmp 0x40653e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4065dc
add edi, ecx
jmp 0x40653e
pop esi
mov edi, esi
mov ecx, 1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4065fa
cmp byte [edi], 0
jne 0x4065fa
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 0x4065ff
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x40666e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6510]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6560]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40662c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6564]
or eax, eax
je 0x406668
mov dword [ebx], eax
add ebx, 4
jmp 0x406649
call dword [esi + 0x6574]
mov ebp, dword [esi + 0x6568]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4066a2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
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 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40b2d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov dh, 0x20
push ecx
push esi
mov esi, dword [ebp + 0x6a]
cmc
inc esi
sub al, 0x84
ror byte [edi], 0x84
mov esi, 0x8be55165
dec esi
xor byte [ebx], 0xc0
stosb byte es:[edi], al
cmp ecx, 1
push edi
mov dword [ebp - 4], eax
mov al, byte [0x85f51545]
pushfd
add byte [eax], al
add byte [eax], bl
jle 0x40b338
cmp edi, eax
je 0x40b395
mov ebx, dword [esi + 0x38]
cli
invalid
clc
add ebx, eax
mov dword [esi + 0x50], edx
test edi, edi
mov dword [esi + 0x1d], ecx
ja 0x40b2f5
dec eax
xchg ebp, eax
or byte [edi - 0x39], bl
inc esi
cmp al, 0x39
xor al, 0
add byte [ebx + 0x5e], bl
mov esp, ebp
pop ebp
push ecx
add al, 0x68
mov edi, dword [0x40ca10]
call edi
rcl dh, 5
mov dword [ebp + 8], eax
xor byte [edi + edi*8 - 0x350fa29], dh
or bl, byte [ebx - 0x25]
inc ebp
or byte [ebp + 0x568bfc45], ch
push eax
push 0xd003544e
mov eax, dword [ebp + 8]
mov dword [esi - 0x3c], edx
xor dword [edx + edx + 0x4ebfc085], 0xffffffac
jne 0x40b381
mov dword [esi - 0x31], 0x39e98900
mov eax, dword [ebp + 8]
cmpsd dword [esi], dword es:[edi]
pop ebx
pop esi
mov ecx, dword [ebp + 0x67c25d]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
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 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x710c63
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x7109ec
sub ebx, ebx
sub ebx, 0xd9687817
sub esp, 4
mov dword [esp], ebx
mov ebx, dword [esp]
add esp, 4
call fcn.00710cab
or ebx, esi
inc ebx
mov esi, ebx
xor dword [eax], edx
sub esi, ebx
add eax, 1
sub esp, 4
mov dword [esp], ebx
pop ebx
add ebx, 0x76ab77f7
cmp eax, ecx
jne fcn.00710c63
mov ebx, esi
inc esi
mov esi, 0x4099fff2
ret
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
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 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x432c46
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.00432cc5
jae 0x432c52
xor ecx, ecx
call fcn.00432cc5
jae 0x432c7c
xor eax, eax
call fcn.00432cc5
jae 0x432c8d
mov al, 0x10
call fcn.00432cc5
adc al, al
jae 0x432c6e
jne 0x432cba
stosb byte es:[edi], al
jmp 0x432c53
call fcn.00432cd1
dec ecx
loop 0x432c99
mov eax, ebp
call fcn.00432ccf
jmp 0x432cbb
lodsb al, byte [esi]
shr eax, 1
je 0x432ce1
adc ecx, 2
mov ebp, eax
jmp 0x432cbb
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00432ccf
cmp eax, 0x7d00
jae 0x432cb9
cmp eax, 0x500
jae 0x432cba
cmp eax, 0x7f
ja 0x432cbb
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x432c53
pop ebp
ret 8
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019dd
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
mov eax, dword [fcn.00401a44]
mov edx, dword [0x4030dc]
sub edx, eax
push edx
push dword [0x4030d8]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132d
push edi
call fcn.004018c5
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.0040191f
mov eax, edi
add eax, 0x1ce00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov edx, edi
inc edx
imul eax, edx
push eax
lea eax, [0x4030e4]
mov edx, edi
dec edx
and eax, edx
push eax
call fcn.00401a44
add esp, 0x18
xor eax, eax
pop edi
leave
ret

Function at 0x4019dd
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
xor esi, esi
mov edi, esi
mov edi, 0xfffffffb
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x10e], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xa]
push eax
push 1
push 1
lea eax, [ebp - 0x10e]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
lea eax, [ebp - 0xa]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
movsx eax, byte [ebp - 0xa]
sub eax, 0x41
pop edi
pop esi
leave
ret
Function at 0x8c2117
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x8c1ea3
mov ecx, ebx
sub ecx, 0xd8f11986
call fcn.008c2151
inc ecx
mov ebx, ecx
xor dword [edi], eax
add ebx, ecx
sub ebx, ecx
sub ecx, ebx
inc edi
or ebx, ecx
add ecx, ecx
sub ebx, 0x4b1525bb
cmp edi, edx
jne fcn.008c2117
add ecx, 0x64c7b6f1
and ebx, ecx
dec ebx
ret