joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52dfb0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x631d70]
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x52dff0
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0052d910
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret

Function at 0x52e3a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x631d70]
mov edi, dword [ebp + 8]
test eax, eax
je 0x52e47c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x52e491
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x52e450
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x52e3e8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x52e3f8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x52e443
test edx, edx
jne 0x52e436
test ecx, ecx
je 0x52e3e0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x52e4a0
cmp eax, 8
je 0x52e3e0
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x52e3d2
call fcn.0052d9e0
mov eax, dword [0x631d70]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x52e3c4
call fcn.0052e010
mov eax, dword [0x631d70]
jmp 0x52e3c4
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0052e310
cmp eax, 7
jne 0x52e43b
mov eax, dword [0x631d70]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x52e4f3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x52e51e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x52e4ff
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0052d9e0
mov eax, dword [0x631d70]
jmp 0x52e4d1
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x52e4e2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x52e4e2
call fcn.0052e010
mov eax, dword [0x631d70]
jmp 0x52e4d8
Function at 0x52e780
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x631d70]
mov edi, dword [ebp + 8]
test eax, eax
je 0x52e814
mov esi, dword [eax + 0x30]
test esi, esi
js 0x52e830
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x52e850
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x52e808
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0052e310
cmp eax, 7
jne 0x52e8cf
mov eax, dword [0x631d70]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x52e8a6
mov edx, dword [eax + 0x30]
test edx, edx
js 0x52e8c0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x52e880
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0052e530
jmp 0x52e7c5
call fcn.0052d9e0
mov eax, dword [0x631d70]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x52e7a0
lea esi, [esi]
call fcn.0052e010
mov eax, dword [0x631d70]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x52e7ab
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x52e7ae
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x52e7f7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x52e7f7
call fcn.0052d9e0
mov eax, dword [0x631d70]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x52e7e9
nop
lea esi, [esi]
call fcn.0052e010
mov eax, dword [0x631d70]
jmp 0x52e7e9
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x52e8e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x52e972
mov eax, dword [0x631d70]
test eax, eax
je 0x52e966
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x52e9e1
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x52e987
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0052e530
cmp eax, 7
jne 0x52e9ff
mov eax, dword [0x631d70]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x52e9d2
mov edx, dword [eax + 0x30]
test edx, edx
js 0x52e9f0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x52e9b3
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0052d9e0
mov eax, dword [0x631d70]
jmp 0x52e902
mov dword [esp], edi
call fcn.0052e3a0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x52e917
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x52e955
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x52e955
call fcn.0052d9e0
mov eax, dword [0x631d70]
jmp 0x52e940
call fcn.0052e010
mov eax, dword [0x631d70]
jmp 0x52e90d
call fcn.0052e010
mov eax, dword [0x631d70]
jmp 0x52e94b
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x562d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
push edx
push ecx
call fcn.0056308a
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x562e98
push 0x64
call fcn.0053419b
add esp, 4
mov dword [ebp - 4], eax
push 4
call fcn.0053419b
add esp, 4
mov dword [ebp - 0xc], eax
push 4
call fcn.0053419b
add esp, 4
mov esi, eax
push 0
push 0
push esi
call fcn.0053435e
add esp, 0xc
push 0x64
push 0
push dword [ebp - 0xc]
call fcn.0053435e
add esp, 0xc
push ebx
call fcn.00522dd3
add esp, 4
mov ebx, eax
push dword [ebp - 0xc]
call fcn.005341fd
add esp, 4
push eax
push dword [ebp - 4]
call fcn.005341fd
add esp, 4
push eax
push esi
call fcn.005341fd
add esp, 4
push eax
push 0
push ebx
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov edi, eax
push ebx
call fcn.00523ed4
add esp, 4
mov eax, edi
cmp eax, 0
jne 0x562e88
mov dword [ebp - 8], 0x5c04b8
push 0
push esi
call fcn.00534345
add esp, 8
mov edi, eax
mov eax, edi
cmp eax, 1
je 0x562de6
cmp eax, 3
je 0x562de6
cmp eax, 4
je 0x562e3f
jmp 0x562e5a
mov esi, 0
push 0
push dword [ebp - 0xc]
call fcn.00534345
add esp, 8
sub eax, 1
mov ebx, eax
jmp 0x562e39
push esi
push dword [ebp - 4]
call fcn.005342cf
add esp, 8
cmp eax, 0
jne 0x562e12
jmp 0x562e3d
push esi
push dword [ebp - 4]
call fcn.005342cf
add esp, 8
push eax
call fcn.0052214e
add esp, 4
push eax
push dword [ebp - 8]
call fcn.0052261b
add esp, 8
mov dword [ebp - 8], eax
add esi, 1
cmp esi, ebx
jle 0x562dff
jmp 0x562e5a
push 0
push dword [ebp - 4]
call fcn.00534345
add esp, 8
push eax
call fcn.0052219a
add esp, 4
mov dword [ebp - 8], eax
jmp 0x562e5a
cmp dword [ebp + 0x18], 0
je 0x562e86
push dword [ebp - 8]
push 0x5c04d4
push edi
call fcn.0052219a
add esp, 4
push eax
call fcn.0052261b
add esp, 8
push eax
call fcn.0052261b
add esp, 8
mov dword [ebp - 8], eax
jmp 0x562e8d
mov dword [0x5c04b4], eax
push dword [ebp - 0x10]
call fcn.00563105
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x562e9d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x562ea4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push eax
push edx
call fcn.0056308a
add esp, 8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0xffffffff
je 0x562fb5
mov edi, 0x59cfa0
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x562eea
cmp eax, 3
je 0x562eea
cmp eax, 4
je 0x562f37
jmp 0x562f5c
mov eax, dword [ebp + 0x14]
push dword [eax + 8]
call fcn.0053419b
add esp, 4
mov edi, eax
mov esi, 1
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax + 8]
jmp 0x562f31
push 1
push esi
push dword [ebp + 0x14]
call fcn.00558f58
add esp, 0xc
push eax
call fcn.005228a2
add esp, 4
push eax
mov eax, esi
sub eax, 1
push eax
push edi
call fcn.005342e8
add esp, 0xc
add esi, 1
cmp esi, ebx
jle 0x562f07
jmp 0x562f5c
push 4
call fcn.0053419b
add esp, 4
mov edi, eax
push dword [ebp + 0x14]
call fcn.00522908
add esp, 4
push eax
push 0
push edi
call fcn.0053435e
add esp, 0xc
jmp 0x562f5c
push dword [ebp + 0x10]
call fcn.00522dd3
add esp, 4
mov ebx, eax
push edi
call fcn.00534241
add esp, 4
push eax
push edi
call fcn.005341fd
add esp, 4
push eax
push dword [ebp + 0x18]
push 0
push ebx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
mov esi, eax
push ebx
call fcn.00523ed4
add esp, 4
cmp esi, 0
jne 0x562fa4
mov dword [ebp - 8], 1
jmp 0x562faa
mov dword [0x5c04b4], esi
push dword [ebp - 4]
call fcn.00563105
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x562fba
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x56333b
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
mov esi, 0x64
mov dword [ebp - 4], 0
add esi, 0x64
push esi
call fcn.00523eb0
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push esi
push ebx
call sub.PSAPI.DLL_EnumProcesses
cmp eax, 0
jne 0x56337d
push ebx
call fcn.00523ed4
add esp, 4
mov eax, 0x59aeb0
jmp 0x5633bb
cmp esi, dword [ebp - 4]
jle 0x56334f
mov eax, dword [ebp - 4]
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
push 0x5c04f2
call fcn.00520e11
add esp, 8
mov esi, eax
push dword [ebp - 4]
push ebx
lea eax, [esi + 0x18]
push eax
call fcn.00523efe
add esp, 0xc
push ebx
call fcn.00523ed4
add esp, 4
mov eax, esi
jmp 0x5633bb
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x56d1a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp eax, 0
je 0x56d1be
push 5
push dword [ebx + 0x80]
call sub.USER32.dll_ShowWindow
jmp 0x56d1fd
mov eax, dword [ebx + 0xc]
cmp eax, 0x59cfa0
setne al
movzx eax, al
cmp eax, 0
je 0x56d1e0
call fcn.005684c4
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x34]
add esp, 8
cmp eax, 0
je 0x56d1f0
push dword [ebx + 0xc]
call fcn.005684a5
add esp, 4
push 0
push dword [ebx + 0x80]
call sub.USER32.dll_ShowWindow
mov eax, 0
jmp 0x56d204
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x578e74
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0
push 0x10
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x578e91
or ebx, 1
push 0x11
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x578ea5
or ebx, 2
push 0x12
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x578eb9
or ebx, 4
push 0x5b
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
jne 0x578ed6
push 0x5c
call sub.USER32.dll_GetKeyState
and eax, 0x8000
cmp eax, 0
je 0x578ede
or ebx, 8
mov eax, ebx
jmp 0x578ee2
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4f1008], 0x8088405
inc edx
mov dword [ebx + 0x4f1008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f04c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4d553a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f09b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
jmp 0x41f0ba
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f12c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f115
test esi, esi
jbe 0x41f12c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f107
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f12c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0e4
jmp 0x41f12c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f12c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5541
ret
Function at 0x420284
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4d689f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202bf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202d8
lea eax, [ebp - 0x10]
mov edx, dword [0x4f3348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202eb
lea eax, [ebp - 0x10]
mov edx, dword [0x4f3348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4202f7
adc edx, 0
mov edx, dword [edx*4 + 0x4f2178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420471
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420464
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420464
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420402
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420402
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420402
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420402
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420464
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420464
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420489
inc ebx
cmp ebx, 0x19
jne 0x4202b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d68a6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4013a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x43600c
push 0x80000002
call dword [0x43650c]
test eax, eax
jne 0x4013cc
mov eax, 0xd903
jmp 0x401476
mov dword [0x436504], 0x24e1
mov ecx, dword [0x436504]
sub ecx, 0x24e1
mov dword [0x436504], ecx
mov edx, 1
test edx, edx
je 0x401476
mov eax, dword [0x436504]
cmp eax, dword [ebp + 0xc]
jb 0x401401
jmp 0x401476
cmp dword [0x436504], 0
jne 0x40141f
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x40141f
xor eax, eax
jmp 0x401476
mov ecx, dword [ebp + 8]
add ecx, dword [0x436504]
mov edx, dword [ecx]
add edx, dword [0x436504]
mov eax, dword [ebp + 8]
add eax, dword [0x436504]
mov dword [eax], edx
mov dword [ebp - 8], 0xf8c0dc94
mov ecx, dword [0x436504]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 2]
push eax
mov ecx, dword [ebp + 8]
add ecx, dword [0x436504]
push ecx
call fcn.00401160
add esp, 8
mov edx, dword [0x436504]
add edx, 4
mov dword [0x436504], edx
jmp 0x4013e8
mov esp, ebp
pop ebp
ret
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x402ee4
pop dword [ebp - 8]
mov eax, 0x402ee4
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x623b320
add dword [ebp - 0x18], 0x482e922b
mov dword [ebp - 0x14], 0x200cc273
add dword [ebp - 0x14], 0x122689d2
mov dword [ebp - 0x10], 0xbe9f8494
sub dword [ebp - 0x10], 0x72534066
mov dword [ebp - 0xc], 0xca0a3958
sub dword [ebp - 0xc], 0xca0a3958
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x14afeb3d
sub dword [ebp - 0x18], 0xa03d81e7
mov dword [ebp - 0x14], 0x7dabfc79
add dword [ebp - 0x14], 0xc3c064fc
mov dword [ebp - 0x10], 0x27ceb869
sub dword [ebp - 0x10], 0xc45f4bfd
mov dword [ebp - 0xc], 0x6992c79b
sub dword [ebp - 0xc], 0x6992c79b
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x7dff9951
add eax, 0x8240e7af
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x36103
push 0
call eax
mov ecx, 0x441c
xor esi, esi
add esi, eax
mov edx, 0x46e400
add edx, dword [ebp - 8]
mov ebx, 0x14fe1a14
mov edi, dword [edx]
add dword [ebp - 4], 0x8719df3f
add edi, ebx
sub dword [ebp - 4], ecx
mov dword [esi], edi
xor dword [ebp - 4], eax
add esi, 4
add edx, 4
loop 0x402fec
add eax, 0x10343
mov ebx, eax
add eax, 0x392c8ca7
add eax, 0xc6d3735e
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10