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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x42a9b9
cmp dword [edi + 0x54], 0
jne 0x42a9b9
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00435210
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042a960
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x42e36d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42e3a6
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040d696
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004053d4
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x42f8be
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x465e64
mov ecx, edi
call fcn.004015d7
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x42f911
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x42f924
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040d696
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004053d4
jmp 0x42f924
mov ecx, esi
call fcn.0042aa64
test eax, eax
je 0x42f924
push edi
mov ecx, eax
call fcn.0042e36d
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x42fe08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42fe4b
call fcn.00435210
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42fe4b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42fe66
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042f9c2
test ebx, ebx
mov esi, eax
je 0x42fe64
test edi, edi
je 0x42fe64
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x436c4f
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x47b040]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x436ced
push 0x4627bc
push 4
push eax
call fcn.0043d433
push eax
call fcn.00401583
add esp, 0x10
push ebx
push edi
call fcn.0043f7e6
mov edi, dword [eax]
call fcn.0043f7e6
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0043f78c
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0043f7e6
cmp dword [eax], ebx
je 0x436d04
call fcn.0043f7e6
push dword [eax]
call fcn.004258b0
pop ecx
jmp 0x436d0b
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x436c9e
jmp 0x436d7d
call fcn.0043f7e6
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x436d79
cmp dword [ebp - 0x40], esi
jae 0x436d79
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0043efa0
add esp, 0xc
push 0x461df8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x436d6b
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x436d6b
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x436d6b
push ebx
push ebx
push esi
jmp 0x436d71
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x436d7b
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0043b023
add ebp, 0x1f4
leave
ret
Function at 0x43b023
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47b040]
jne 0x43b02d
repz ret
jmp fcn.004433c5
Function at 0x43e82a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43e867
cmp dword [ebp + 0x14], edi
je 0x43e867
cmp ecx, edi
jne 0x43e86e
call fcn.0043f7e6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043e113
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43e882
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43e8a3
cmp ebx, 0xffffffff
je 0x43e892
push ebx
push edi
push ecx
call fcn.0043efa0
add esp, 0xc
cmp esi, edi
je 0x43e84f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43e84f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43e8bf
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43e8c6
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43e9b7
test word [esi + 0xc], 0x10c
je 0x43e91a
mov eax, dword [esi + 4]
test eax, eax
je 0x43e91a
jl 0x43ea18
cmp ebx, eax
mov edi, ebx
jb 0x43e8eb
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43e9bf
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043b032
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43e9af
cmp ebx, dword [ebp - 0xc]
jb 0x43e987
cmp dword [ebp - 0xc], 0
je 0x43e944
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43e939
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43e940
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43e94f
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43e94f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43e9eb
push eax
push dword [ebp - 8]
push esi
call fcn.00441395
pop ecx
push eax
call fcn.0044ceb4
add esp, 0xc
test eax, eax
je 0x43ea2a
cmp eax, 0xffffffff
je 0x43ea18
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43e9af
push esi
call fcn.0044b605
cmp eax, 0xffffffff
pop ecx
je 0x43ea1c
cmp dword [ebp - 4], 0
je 0x43e9eb
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43e8ce
mov eax, dword [ebp + 0x14]
jmp 0x43e869
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43e9d6
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043efa0
add esp, 0xc
call fcn.0043f7e6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43e85f
cmp dword [ebp + 0xc], 0xffffffff
je 0x43ea01
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043efa0
add esp, 0xc
call fcn.0043f7e6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43e85f
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43e869
or dword [esi + 0xc], 0x10
jmp 0x43ea1c
Function at 0x442137
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x47b1d0]
je 0x442152
inc edi
cmp edi, 0x17
jb 0x442143
cmp edi, 0x17
jae 0x4422d2
push ebp
push 3
call fcn.0044fe38
cmp eax, 1
pop ecx
je 0x44229e
push 3
call fcn.0044fe38
test eax, eax
pop ecx
jne 0x442186
cmp dword [0x47ad88], 1
je 0x44229e
cmp ebx, 0xfc
je 0x4422d1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4801e8
push ebp
call fcn.0044abbd
add esp, 0xc
test eax, eax
je 0x4421bc
push esi
push esi
push esi
push esi
push esi
call fcn.0043e017
add esp, 0x14
push 0x104
mov esi, 0x480201
push esi
push 0
mov byte [0x480305], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x442200
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044abbd
add esp, 0xc
test eax, eax
je 0x442200
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043e017
add esp, 0x14
push esi
call fcn.00441ba0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x442245
push esi
call fcn.00441ba0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4804fc
push 0x463c1c
sub ecx, eax
push ecx
push eax
call fcn.0044fd85
add esp, 0x14
test eax, eax
je 0x442245
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043e017
add esp, 0x14
jmp 0x442247
xor esi, esi
push 0x463c18
push ebx
push ebp
call fcn.0044fd14
add esp, 0xc
test eax, eax
je 0x442267
push esi
push esi
push esi
push esi
push esi
call fcn.0043e017
add esp, 0x14
push dword [edi*8 + 0x47b1d4]
push ebx
push ebp
call fcn.0044fd14
add esp, 0xc
test eax, eax
je 0x442289
push esi
push esi
push esi
push esi
push esi
call fcn.0043e017
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044fb57
add esp, 0xc
jmp 0x4422d1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4422d1
cmp ebp, 0xffffffff
je 0x4422d1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x47b1d4]
push dword [esi]
call fcn.00441ba0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44fb57
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00442cfb
xor ebx, ebx
cmp dword [0x480cec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44fc2d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44fd0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44fd0d
push eax
call fcn.00442c8d
mov dword [esp], 0x464128
push edi
mov dword [0x480cec], eax
call esi
push eax
call fcn.00442c8d
mov dword [esp], 0x464114
push edi
mov dword [0x480cf0], eax
call esi
push eax
call fcn.00442c8d
mov dword [0x480cf4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043dd9a
test eax, eax
pop ecx
pop ecx
je 0x44fbfb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043e017
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44fc2d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00442c8d
cmp eax, ebx
pop ecx
mov dword [0x480cfc], eax
je 0x44fc2d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00442c8d
pop ecx
mov dword [0x480cf8], eax
mov eax, dword [0x480cf8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44fcb2
cmp dword [0x480cfc], ecx
je 0x44fcb2
push eax
call fcn.00442d04
push dword [0x480cfc]
mov esi, eax
call fcn.00442d04
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44fcb2
cmp edi, ebx
je 0x44fcb2
call esi
cmp eax, ebx
je 0x44fc7f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44fc7f
test byte [ebp - 0x18], 1
jne 0x44fcb2
lea eax, [ebp - 0x10]
push eax
call fcn.0043ddd1
test eax, eax
pop ecx
je 0x44fc9a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043e017
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44fca9
or dword [ebp + 0x10], 0x200000
jmp 0x44fced
or dword [ebp + 0x10], 0x40000
jmp 0x44fced
mov eax, dword [0x480cf0]
cmp eax, dword [ebp - 8]
je 0x44fced
push eax
call fcn.00442d04
cmp eax, ebx
pop ecx
je 0x44fced
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44fced
mov eax, dword [0x480cf4]
cmp eax, dword [ebp - 8]
je 0x44fced
push eax
call fcn.00442d04
cmp eax, ebx
pop ecx
je 0x44fced
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x480cec]
call fcn.00442d04
cmp eax, ebx
pop ecx
je 0x44fd0d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44fd0f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402257
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.004079a0
mov dword [esp], str.KernelBase
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
sub esp, 4
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov ecx, dword [0x440030]
add ecx, ecx
mov dword [esp + 0x18], ecx
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_SetWindowPos]
sub esp, 0x1c
nop
test eax, eax
nop
call fcn.004021c6
nop
test eax, eax
nop
push 1
push dword fs:[0]
mov dword fs:[0], esp
mov dword [esp], str._s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
nop
test eax, eax
nop
mov byte [0x4418cc], 1
nop
test eax, eax
nop
add dword [0x44002c], 0xffffff9c
nop
test eax, eax
nop
mov eax, dword [0x44002c]
mov dword [esp], eax
call fcn.00401457
test eax, eax
je 0x402333
mov dword [esp], 0x1b207
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov dword [esp], 0
call fcn.0040574d
sub esp, 4
nop
test eax, eax
nop
call fcn.00404dad
nop
test eax, eax
nop
xor eax, eax
inc eax
add esp, 0x1c
pop ebp
ret
nop
test eax, eax
nop
mov dword [esp], 1
call sub.msvcrt.dll_exit
Function at 0x4028d6
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x90
mov edi, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
nop
test eax, eax
nop
nop
test eax, eax
nop
nop
test eax, eax
nop
nop
test eax, eax
nop
xor ecx, ecx
movaps xmm0, xmmword [0x438870]
movdqa xmm1, xmmword [0x438880]
nop
test eax, eax
nop
movsx edx, byte [eax + ecx]
movd xmm2, edx
pshufd xmm2, xmm2, 0
movdqa xmm3, xmm2
psrld xmm3, 3
movdqa xmm4, xmm2
psrld xmm4, 2
punpckhqdq xmm4, xmm3
movdqa xmm5, xmm2
psrld xmm5, 1
movdqa xmm3, xmm2
punpcklqdq xmm3, xmm5
shufps xmm3, xmm4, 0xcc
movdqa xmm4, xmm2
psrld xmm4, 7
movdqa xmm5, xmm2
psrld xmm5, 6
punpckhqdq xmm5, xmm4
movdqa xmm4, xmm2
psrld xmm4, 5
psrld xmm2, 4
punpcklqdq xmm2, xmm4
shufps xmm2, xmm5, 0xcc
andps xmm2, xmm0
andps xmm3, xmm0
packuswb xmm3, xmm2
packuswb xmm3, xmm3
pand xmm3, xmm1
movq qword [esp + ecx*8 + 0x20], xmm3
inc ecx
cmp ecx, 8
jne 0x402913
nop
test eax, eax
nop
lea ebx, [esp + 0x20]
push ebx
call fcn.004026ce
nop
test eax, eax
nop
xor ebp, ebp
lea esi, [esp + 0x60]
nop
test eax, eax
nop
movups xmm0, xmmword [ebx + 0x20]
movdqu xmm1, xmmword [ebx + 0x30]
movdqu xmmword [esp + 0x70], xmm1
movups xmmword [esp + 0x60], xmm0
nop
test eax, eax
nop
push esi
call fcn.00402784
nop
test eax, eax
nop
xor eax, eax
nop
test eax, eax
nop
mov cl, byte [edi + eax]
xor byte [esp + eax + 0x60], cl
nop
test eax, eax
nop
inc eax
cmp eax, 0x30
jne 0x4029e3
nop
test eax, eax
nop
push esi
call fcn.00402824
nop
test eax, eax
nop
push esi
call fcn.004027d8
xor eax, eax
nop
test eax, eax
nop
mov cl, byte [esp + eax + 0x60]
xor byte [esp + eax + 0x20], cl
nop
test eax, eax
nop
inc eax
cmp eax, 0x20
jne 0x402a12
nop
test eax, eax
nop
cmp ebp, 0xf
je 0x402a8e
nop
test eax, eax
nop
movups xmm0, xmmword [esp + 0x20]
movups xmm1, xmmword [esp + 0x30]
movups xmmword [esp + 0x10], xmm1
movups xmmword [esp], xmm0
nop
test eax, eax
nop
movups xmm0, xmmword [ebx + 0x20]
movups xmm1, xmmword [ebx + 0x30]
movups xmmword [esp + 0x30], xmm1
movups xmmword [esp + 0x20], xmm0
nop
test eax, eax
nop
movups xmm0, xmmword [esp]
movdqu xmm1, xmmword [esp + 0x10]
movdqu xmmword [ebx + 0x30], xmm1
movups xmmword [ebx + 0x20], xmm0
nop
test eax, eax
nop
nop
test eax, eax
nop
inc ebp
add edi, 0x30
jmp 0x4029b8
push ebx
call fcn.00402726
nop
test eax, eax
nop
push dword [esp + 0xac]
push ebx
call fcn.00402544
nop
test eax, eax
nop
add esp, 0x90
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x402ab8
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x90
mov edi, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
nop
test eax, eax
nop
xor ecx, ecx
movaps xmm0, xmmword [0x438890]
movdqa xmm1, xmmword [0x4388a0]
nop
test eax, eax
nop
movsx edx, byte [eax + ecx]
movd xmm2, edx
pshufd xmm2, xmm2, 0
movdqa xmm3, xmm2
psrld xmm3, 3
movdqa xmm4, xmm2
psrld xmm4, 2
punpckhqdq xmm4, xmm3
movdqa xmm5, xmm2
psrld xmm5, 1
movdqa xmm3, xmm2
punpcklqdq xmm3, xmm5
shufps xmm3, xmm4, 0xcc
movdqa xmm4, xmm2
psrld xmm4, 7
movdqa xmm5, xmm2
psrld xmm5, 6
punpckhqdq xmm5, xmm4
movdqa xmm4, xmm2
psrld xmm4, 5
psrld xmm2, 4
punpcklqdq xmm2, xmm4
shufps xmm2, xmm5, 0xcc
andps xmm2, xmm0
andps xmm3, xmm0
packuswb xmm3, xmm2
packuswb xmm3, xmm3
pand xmm3, xmm1
movq qword [esp + ecx*8 + 0x20], xmm3
inc ecx
cmp ecx, 8
jne 0x402ae6
nop
test eax, eax
nop
lea ebx, [esp + 0x20]
push ebx
call fcn.004026ce
nop
test eax, eax
nop
add edi, 0x2d0
mov ebp, 0xf
lea esi, [esp + 0x60]
nop
test eax, eax
nop
movups xmm0, xmmword [ebx + 0x20]
movdqu xmm1, xmmword [ebx + 0x30]
movdqu xmmword [esp + 0x70], xmm1
movups xmmword [esp + 0x60], xmm0
nop
test eax, eax
nop
push esi
call fcn.00402784
nop
test eax, eax
nop
xor eax, eax
nop
test eax, eax
nop
mov cl, byte [edi + eax]
xor byte [esp + eax + 0x60], cl
nop
test eax, eax
nop
inc eax
cmp eax, 0x30
jne 0x402bbf
nop
test eax, eax
nop
push esi
call fcn.00402824
nop
test eax, eax
nop
push esi
call fcn.004027d8
xor eax, eax
nop
test eax, eax
nop
mov cl, byte [esp + eax + 0x60]
xor byte [esp + eax + 0x20], cl
nop
test eax, eax
nop
inc eax
cmp eax, 0x20
jne 0x402bee
nop
test eax, eax
nop
sub ebp, 1
jb 0x402c6e
nop
test eax, eax
nop
nop
test eax, eax
nop
movups xmm0, xmmword [esp + 0x20]
movups xmm1, xmmword [esp + 0x30]
movups xmmword [esp + 0x10], xmm1
movups xmmword [esp], xmm0
nop
test eax, eax
nop
movups xmm0, xmmword [ebx + 0x20]
movups xmm1, xmmword [ebx + 0x30]
movups xmmword [esp + 0x30], xmm1
movups xmmword [esp + 0x20], xmm0
nop
test eax, eax
nop
movups xmm0, xmmword [esp]
movdqu xmm1, xmmword [esp + 0x10]
movdqu xmmword [ebx + 0x30], xmm1
movups xmmword [ebx + 0x20], xmm0
nop
test eax, eax
nop
nop
test eax, eax
nop
add edi, 0xffffffd0
jmp 0x402b94
push ebx
call fcn.00402726
nop
test eax, eax
nop
push dword [esp + 0xac]
push ebx
call fcn.00402544
nop
test eax, eax
nop
add esp, 0x90
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x4037ce
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov dword [esp + 0x30], edx
mov ebp, ecx
nop
test eax, eax
nop
mov eax, dword [ecx + 0x3c]
nop
test eax, eax
nop
mov esi, dword [ecx + eax + 0x78]
nop
test eax, eax
nop
nop
test eax, eax
nop
mov eax, dword [ecx + esi + 0x1c]
add eax, ecx
mov dword [esp + 0x20], eax
nop
test eax, eax
nop
mov eax, dword [ecx + esi + 0x20]
add eax, ecx
mov dword [esp + 0x2c], eax
nop
test eax, eax
nop
mov eax, dword [ecx + esi + 0x24]
add eax, ecx
mov dword [esp + 0x1c], eax
nop
test eax, eax
nop
nop
test eax, eax
nop
lea ebx, [esp + 0xc]
mov ecx, ebx
call fcn.00454088
push ebx
call sub.msvcrt.dll_atoi
add esp, 4
mov dword [esp + 0x28], esi
cmp eax, dword [ebp + esi + 0x18]
jae 0x403990
mov edi, eax
mov dword [esp + 0x24], ebp
nop
test eax, eax
nop
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + edi*4]
add esi, ebp
nop
test eax, eax
nop
lea ecx, [esp + 0xc]
push dword [esp + 0x30]
call fcn.004015ea
lea ecx, [esp + 0x3c]
push esi
call fcn.004015ea
nop
test eax, eax
nop
movzx eax, byte [esp + 0xc]
mov edx, eax
lea ecx, [esp + 0xd]
and dl, 1
je 0x403893
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], ecx
mov dword [esp + 0x18], edi
movzx ebx, byte [esp + 0x3c]
mov esi, dword [esp + 0x44]
test bl, 1
je 0x4038b3
mov edi, dword [esp + 0x40]
mov dword [esp + 8], esi
jmp 0x4038bf
mov edi, ebx
shr edi, 1
lea ecx, [esp + 0x3d]
mov dword [esp + 8], ecx
test edi, edi
mov dword [esp + 0x38], ebx
je 0x4038d5
test dl, dl
mov dword [esp + 0x34], esi
je 0x4038dd
mov eax, dword [esp + 0x10]
jmp 0x4038df
mov bl, 1
mov edi, dword [esp + 0x18]
jmp 0x403951
shr eax, 1
mov ecx, dword [esp + 4]
lea esi, [ecx + eax]
cmp eax, edi
jge 0x4038ee
mov ebp, esi
jmp 0x403936
mov byte [esp + 3], dl
mov ebp, ecx
mov ecx, dword [esp + 8]
movsx ebx, byte [ecx]
sub eax, edi
inc eax
je 0x40392c
push eax
push ebx
push ebp
call sub.msvcrt.dll_memchr
add esp, 0xc
test eax, eax
je 0x40392c
mov ebp, eax
push edi
push dword [esp + 0xc]
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x40392e
inc ebp
mov eax, esi
sub eax, ebp
cmp eax, edi
jge 0x4038fb
mov ebp, esi
mov dl, byte [esp + 3]
mov ecx, dword [esp + 4]
cmp ebp, esi
setne al
sub ebp, ecx
cmp ebp, 0xffffffff
setne bl
and bl, al
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
test byte [esp + 0x38], 1
je 0x403968
push esi
call fcn.004065b0
add esp, 4
mov dl, byte [esp + 0xc]
and dl, 1
test dl, dl
je 0x403978
push dword [esp + 0x14]
call fcn.004065b0
add esp, 4
nop
test eax, eax
nop
test bl, bl
jne 0x403999
inc edi
mov eax, dword [esp + 0x28]
cmp edi, dword [ebp + eax + 0x18]
jb 0x403850
nop
test eax, eax
nop
xor ebp, ebp
jmp 0x4039a8
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + edi*2]
mov ecx, dword [esp + 0x20]
add ebp, dword [ecx + eax*4]
mov eax, ebp
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret