joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4495b0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4496b0
sub esp, 0x28
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x8c], 0
mov dword [eax + 0x90], 0
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x58]
mov dword [eax + 0x94], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call fcn.00449e40
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
lea ecx, [0x4e4b40]
mov dword [esp], ecx
call fcn.0040ae80
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [eax], ecx
lea ecx, [0x593e30]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.00448e80
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov byte [esp], 0xd
mov dword [esp + 4], 2
lea eax, [esp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004482a0
add esp, 0x28
ret
call fcn.00451710
jmp fcn.004495b0

Function at 0x44b2b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x44b34f
sub esp, 0x30
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.00452d67
lea ecx, [0x44b360]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.00451600
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.00451710
jmp fcn.0044b2b0
Function at 0x4529d0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x5afaa0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x4511bb
je 0x45120e
cmp ebx, 0x20
jbe 0x451214
cmp ebx, 0x40
jbe 0x45125a
jmp 0x4512fb
test ebx, ebx
je 0x451204
add eax, 0x10
test ax, 0xff0
je 0x4511f0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x51eaa0]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x51eba0]
jmp 0x4511d8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x4511d8
pxor xmm1, xmmword [0x5afab0]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x5afab0]
pxor xmm2, xmmword [0x5afac0]
pxor xmm3, xmmword [0x5afad0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x5afab0]
pxor xmm2, xmmword [0x5afac0]
pxor xmm3, xmmword [0x5afad0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x45135a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x5af74c], 0
je 0x4529ea
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x451180
jmp fcn.00407ae0
Function at 0x4529f0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40306e
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00407ae0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.00451710
jmp 0x403030
cmp byte [0x5af74c], 0
je 0x452a0b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x451180
jmp 0x403030
Function at 0x490810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x490981
sub esp, 0x68
lea eax, [0x4e6c60]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
shr eax, 1
mov dword [esp + 0x24], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0043f8f0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x70]
mov edx, ecx
xor ebx, ebx
xor ebp, ebp
jmp 0x490860
add ebx, 2
cmp edx, ebx
jle 0x490951
cmp ecx, 1
je 0x49085d
cmp edx, ebx
jbe 0x490977
mov dword [esp + 0x20], ebp
mov esi, dword [esp + 0x6c]
movzx edi, byte [esi + ebx]
lea ebp, [ebx + 1]
cmp edx, ebp
jbe 0x49096e
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ecx
movzx eax, byte [ebx + esi + 1]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
call fcn.00442cf0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
lea edx, [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 8], 0
mov edx, dword [esp + 0x34]
mov dword [esp + 4], edx
call fcn.00442cf0
lea eax, [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.00442640
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 0x20
call fcn.00466d00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp ecx, edx
jae 0x490965
mov ebx, dword [esp + 0x64]
mov byte [ebx + ecx], al
lea ebp, [ecx + 1]
mov esi, dword [esp + 0x28]
lea ecx, [esi - 2]
mov eax, ebx
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x2c]
jmp 0x49085d
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
add esp, 0x68
ret
mov eax, ecx
mov ecx, edx
call fcn.00452bc0
mov eax, ebp
mov ecx, edx
call fcn.00452bc0
mov eax, ebx
mov ecx, edx
call fcn.00452bc0
nop
call fcn.00451710
jmp fcn.00490810
Function at 0x4a9e00
Capabilities:
Parse credit card information

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a9f73
movzx eax, byte [esp + 4]
lea ecx, [eax - 0x61]
cmp cl, 0x19
jbe 0x4a9e33
lea ecx, [eax - 0x41]
cmp cl, 0x19
jbe 0x4a9e33
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x4a9e39
mov byte [esp + 0xc], 0
ret
mov ecx, dword [esp + 8]
cmp ecx, 3
je 0x4a9e47
cmp ecx, 4
jne 0x4a9e78
cmp al, 0x2c
ja 0x4a9e60
lea edx, [eax - 0x21]
cmp dl, 1
jbe 0x4a9e72
cmp al, 0x24
je 0x4a9e72
cmp al, 0x26
jae 0x4a9e72
jmp 0x4a9e78
lea edx, [eax - 0x3a]
cmp dl, 4
jbe 0x4a9e72
cmp al, 0x5b
je 0x4a9e72
cmp al, 0x5d
jne 0x4a9e78
mov byte [esp + 0xc], 0
ret
cmp al, 0x2f
ja 0x4a9eaf
cmp al, 0x26
ja 0x4a9e91
cmp al, 0x24
je 0x4a9ece
cmp al, 0x26
je 0x4a9ece
jmp 0x4a9f55
lea edx, [eax - 0x2b]
cmp dl, 1
jbe 0x4a9ece
lea edx, [eax - 0x2d]
cmp dl, 1
jbe 0x4a9f4f
cmp al, 0x2f
je 0x4a9ece
jmp 0x4a9f55
cmp al, 0x3d
ja 0x4a9ec6
lea edx, [eax - 0x3a]
cmp dl, 1
jbe 0x4a9ece
cmp al, 0x3d
je 0x4a9ece
jmp 0x4a9f55
lea edx, [eax - 0x3f]
cmp dl, 1
ja 0x4a9f45
cmp ecx, 2
jg 0x4a9f09
cmp ecx, 1
je 0x4a9efe
cmp ecx, 2
jne 0x4a9f55
cmp al, 0x2f
je 0x4a9eec
cmp al, 0x3b
je 0x4a9eec
cmp al, 0x2c
jne 0x4a9ef3
mov eax, 1
jmp 0x4a9ef9
cmp al, 0x3f
sete al
mov byte [esp + 0xc], al
ret
cmp al, 0x3f
sete al
mov byte [esp + 0xc], al
ret
cmp ecx, 5
jne 0x4a9f2f
cmp al, 0x40
je 0x4a9f1d
cmp al, 0x2f
je 0x4a9f1d
cmp al, 0x3f
jne 0x4a9f24
mov eax, 1
jmp 0x4a9f2a
cmp al, 0x3a
sete al
mov byte [esp + 0xc], al
ret
cmp ecx, 6
je 0x4a9f3f
cmp ecx, 7
jne 0x4a9f55
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
cmp al, 0x5f
je 0x4a9f4f
cmp al, 0x7e
jne 0x4a9f55
mov byte [esp + 0xc], 0
ret
cmp ecx, 7
jne 0x4a9f6d
cmp al, 0x21
je 0x4a9f67
add eax, 0xffffffd8
cmp al, 2
ja 0x4a9f6d
mov byte [esp + 0xc], 0
ret
mov byte [esp + 0xc], 1
ret
call fcn.00451710
jmp fcn.004a9e00
Function at 0x4b41c0
Capabilities:
Create thread

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__beginthread]
cmp eax, 0xffffffff
jne 0x4b4228
call ebx
cmp dword [eax], 0xd
je 0x4b4230
call ebx
mov ebx, dword [eax]
mov dword [esp], 2
call dword [0x4d8620]
mov dword [esp + 4], str.runtime:_failed_to_create_new_OS_thread___d__n
mov dword [esp + 8], ebx
mov dword [esp], eax
call fcn.004b3ee0
call sub.msvcrt.dll_abort
lea esi, [esi]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
add ebp, 1
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
cmp ebp, 0x14
jne 0x4b41d7
jmp 0x4b41f8

Function at 0x4b4370
Capabilities:
Get token membership

Disassembly:
sub esp, 0x4c
mov eax, 0x500
mov word [esp + 0x3e], ax
lea eax, [esp + 0x34]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3a]
mov dword [esp + 0x3a], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x220
mov dword [esp + 8], 0x20
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
sub esp, 0x2c
mov dword [esp + 0x30], eax
test eax, eax
jne 0x4b4400
test eax, eax
setne al
add esp, 0x4c
ret
lea eax, [esp + 0x30]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
sub esp, 0xc
test eax, eax
jne 0x4b442c
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
sub esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
setne al
add esp, 0x4c
ret
Function at 0x4b99f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004ba980
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004ba980
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4b9a50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x5b3fb0]
test esi, esi
jle 0x4b9b70
mov eax, dword [0x5b3fb4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4b9a84
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4b9b07
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4b9a70
mov dword [esp], ebx
call fcn.004ba440
mov edi, eax
test eax, eax
je 0x4b9b97
mov eax, dword [0x5b3fb4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004ba580
mov edx, dword [0x5b3fb4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4b9b77
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4b9b00
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4b9b10
add dword [0x5b3fb0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x5b3fb4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4b9b00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004b99f0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4b9a8e
mov eax, dword [0x5b3fb4]
mov eax, dword [eax + ebx + 0xc]
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.004b99f0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004b99f0
lea esi, [esi]
nop
Function at 0x4ba0b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5b3fcc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5b3fc4]
sub esp, 4
test ebx, ebx
je 0x4ba105
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x4ba0fe
test esi, esi
je 0x4ba0fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4ba0e0
mov dword [esp], 0x5b3fcc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4ba440
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4ba465
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4ba470
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4ba465
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4ba4b8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4ba4ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4ba4ba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4ba4a0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x61fcc1
Capabilities:
Encode data using xor

Disassembly:
invalid
pop eax
fmul dword [esp + eax*2]
sub ebp, 0x39da78cb
div dword [ebx]
inc edx
mov ebx, dword [edx + 0x312b8e25]
xchg ebx, eax
das
mov dl, byte [esi + 0x5c]
jecxz 0x61fcc6
in eax, dx
retf
sub eax, dword [eax + 0x4cdc2c90]
jno 0x61fcbf
fisttp dword [0x68311662]
outsb dx, byte [esi]
leave
fidiv dword [esi - 0x7d36eab2]
sbb eax, 0xd7de79ba
fimul word [ebx - 0x42]
cwde
xchg edx, eax
and dword [ebx + 0x4cb4ad0e], 0x7a
push edx
bound esp, qword [eax]
inc ebp
rcl dword [eax - 0x3a], cl
bound ecx, qword [ecx + 0x2eb67908]
insd dword es:[edi], dx
jb 0x61fd37
invalid
aaa
push ecx
inc ebx
int 2
invalid

Function at 0x628c6d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x630378
cmp edx, dword [eax]
je 0x628c8f
add eax, 8
inc ecx
cmp eax, 0x630408
jl 0x628c80
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x630378]
jne 0x628dbd
mov eax, dword [0x639d04]
cmp eax, 1
je 0x628d97
test eax, eax
jne 0x628cc0
cmp dword [0x6302a4], 1
je 0x628d97
cmp edx, 0xfc
je 0x628dbd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x628cf7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00629650
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00629ae0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x628d3a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00629ae0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62d98c
push edi
call fcn.0062b9b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00629650
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00629660
lea eax, [ebp - 0xa0]
push 0x62d96c
push eax
call fcn.00629660
push dword [esi + 0x63037c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00629660
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062b924
add esp, 0x2c
pop edi
jmp 0x628dbd
lea eax, [ebp + 8]
lea esi, [esi + 0x63037c]
push 0
push eax
push dword [esi]
call fcn.00629ae0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x43b662
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
and ecx, edx
sub edx, ecx
call fcn.0043b6a2
add ecx, 0xcd8e56e7
xor dword [esi], ebx
inc ecx
add edx, 0x18c558ce
inc esi
and edx, ecx
cmp esi, eax
jne fcn.0043b662
mov edx, ecx
and ecx, ecx
ret
Function at 0x401764
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
not eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x40181a
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0xb624c0]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
add eax, 1
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0xb624c0]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
add eax, 2
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0xb624c0]
xor eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
add eax, 3
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0xb624c0]
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 4
sub dword [ebp + 0x10], 4
cmp dword [ebp + 0x10], 3
ja 0x40177d
jmp 0x401851
mov eax, dword [ebp - 4]
shr eax, 8
mov edx, eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
movzx eax, al
xor eax, dword [ebp - 4]
movzx eax, al
mov eax, dword [eax*4 + 0xb624c0]
xor eax, edx
mov dword [ebp - 4], eax
add dword [ebp - 8], 1
sub dword [ebp + 0x10], 1
cmp dword [ebp + 0x10], 0
jne 0x401826
mov eax, dword [ebp - 4]
not eax
leave
ret
Function at 0x4200e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00426530
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00426530
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x420140
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xc91078]
test esi, esi
jle 0x420260
mov eax, dword [0xc9107c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x420174
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4201f7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x420160
mov dword [esp], ebx
call fcn.00420b30
mov edi, eax
test eax, eax
je 0x420287
mov eax, dword [0xc9107c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00420c70
mov edx, dword [0xc9107c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x420267
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4201f0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x420200
add dword [0xc91078], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xc9107c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4201f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004200e0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x42017e
mov eax, dword [0xc9107c]
mov eax, dword [eax + ebx + 0xc]
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.004200e0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004200e0
lea esi, [esi]
nop
Function at 0x4207a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xc91094
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xc9108c]
sub esp, 4
test ebx, ebx
je 0x4207f5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x4207ee
test esi, esi
je 0x4207ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4207d0
mov dword [esp], 0xc91094
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x420b30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x420b55
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x420b60
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x420b55
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x420ba8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x420b9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x420baa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x420b90
xor eax, eax
pop ebx
pop esi
ret