joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc142
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.004cc201
and dword [ebp - 4], 0
cmp dword [0x5404c8], 0
mov ebx, eax
jne 0x4dc1f3
push 0x42435c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4dc2a4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x424350
push edi
call esi
test eax, eax
je 0x4dc2a4
push eax
call fcn.004cc18f
mov dword [esp], 0x424340
push edi
mov dword [0x5404c8], eax
call esi
push eax
call fcn.004cc18f
mov dword [esp], 0x42432c
push edi
mov dword [0x5404cc], eax
call esi
push eax
call fcn.004cc18f
mov dword [esp], 0x4206d0
push edi
mov dword [0x5404d0], eax
call esi
push eax
call fcn.004cc18f
pop ecx
mov dword [0x5404d8], eax
test eax, eax
je 0x4dc1f3
push 0x4206ec
push edi
call esi
push eax
call fcn.004cc18f
pop ecx
mov dword [0x5404d4], eax
mov eax, dword [0x5404d4]
cmp eax, ebx
je 0x4dc24b
cmp dword [0x5404d8], ebx
je 0x4dc24b
push eax
call fcn.004cc20a
push dword [0x5404d8]
mov esi, eax
call fcn.004cc20a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4dc24b
test edi, edi
je 0x4dc24b
call esi
test eax, eax
je 0x4dc242
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4dc242
test byte [ebp - 0xc], 1
jne 0x4dc24b
or dword [ebp + 0x10], 0x200000
jmp 0x4dc284
mov eax, dword [0x5404cc]
cmp eax, ebx
je 0x4dc284
push eax
call fcn.004cc20a
pop ecx
test eax, eax
je 0x4dc284
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4dc284
mov eax, dword [0x5404d0]
cmp eax, ebx
je 0x4dc284
push eax
call fcn.004cc20a
pop ecx
test eax, eax
je 0x4dc284
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5404c8]
call fcn.004cc20a
pop ecx
test eax, eax
je 0x4dc2a4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4dc2a6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e0fb0
Capabilities:
Encrypt data using speck

Disassembly:
sub esp, 0x2c
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x28], eax
cmp byte [0x5406b4], 0
jne 0x4e11fb
xor eax, eax
lea ecx, [ecx]
mov byte [esp + eax + 0xc], al
inc eax
cmp eax, 0x1b
jl 0x4e0fd0
push ebx
push ebp
push esi
mov ebp, 0x1b
lea eax, [esp + 0x32]
push edi
mov edi, dword [esp + 0x40]
mov esi, 0x1a
sub ebp, eax
lea ecx, [esp + esi + 0x1c]
mov eax, edi
imul edi, edi, 0x6255
xor edx, edx
lea ebx, [ecx + ebp]
div ebx
mov bl, byte [ecx]
add edi, 0x3619
dec esi
and edi, 0xffff
cmp esi, 1
lea eax, [esp + edx + 0x1c]
mov dl, byte [eax]
mov byte [ecx], dl
mov byte [eax], bl
jge 0x4e0ff2
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x4e1030
movzx esi, byte [esp + ebp + 0x1c]
cmp esi, 0x10
jb 0x4e1041
mov edi, 6
jmp 0x4e106d
cmp esi, 8
jb 0x4e104d
mov edi, 5
jmp 0x4e106d
cmp esi, 4
jb 0x4e1059
mov edi, 4
jmp 0x4e106d
cmp esi, 2
jb 0x4e1065
mov edi, 3
jmp 0x4e106d
cmp esi, 1
sbb edi, edi
add edi, 2
mov dl, bl
and dl, 7
movzx ebp, dl
lea ecx, [edi + ebp]
mov eax, 1
shl eax, cl
mov ecx, 1
mov dword [esp + 0x14], ecx
mov ecx, ebp
mov ebp, dword [esp + 0x14]
shl ebp, cl
dec eax
mov byte [esi*4 + 0x54064b], dl
mov ecx, ebx
dec ebp
xor eax, ebp
mov ebp, dword [esp + 0x18]
movzx edx, byte [esp + ebp + 0x1d]
shr ecx, 3
mov byte [esi*4 + 0x540649], al
shr eax, 8
add ebx, edi
mov byte [esi*4 + 0x540648], cl
mov byte [esi*4 + 0x54064a], al
cmp edx, 0x10
jb 0x4e10cf
mov esi, 6
jmp 0x4e10fb
cmp edx, 8
jb 0x4e10db
mov esi, 5
jmp 0x4e10fb
cmp edx, 4
jb 0x4e10e7
mov esi, 4
jmp 0x4e10fb
cmp edx, 2
jb 0x4e10f3
mov esi, 3
jmp 0x4e10fb
cmp edx, 1
sbb esi, esi
add esi, 2
mov al, bl
and al, 7
movzx edi, al
mov byte [esp + 0x13], al
lea ecx, [edi + esi]
mov eax, 1
shl eax, cl
mov ecx, 1
mov dword [esp + 0x14], ecx
mov ecx, edi
mov edi, dword [esp + 0x14]
shl edi, cl
mov ecx, ebx
shr ecx, 3
mov byte [edx*4 + 0x540648], cl
mov cl, byte [esp + 0x13]
dec eax
dec edi
xor eax, edi
mov byte [edx*4 + 0x54064b], cl
mov byte [edx*4 + 0x540649], al
shr eax, 8
mov byte [edx*4 + 0x54064a], al
movzx edx, byte [esp + ebp + 0x1e]
add ebx, esi
cmp edx, 0x10
jb 0x4e1160
mov esi, 6
jmp 0x4e118c
cmp edx, 8
jb 0x4e116c
mov esi, 5
jmp 0x4e118c
cmp edx, 4
jb 0x4e1178
mov esi, 4
jmp 0x4e118c
cmp edx, 2
jb 0x4e1184
mov esi, 3
jmp 0x4e118c
cmp edx, 1
sbb esi, esi
add esi, 2
mov al, bl
and al, 7
movzx edi, al
mov byte [esp + 0x13], al
lea ecx, [edi + esi]
mov eax, 1
shl eax, cl
mov ecx, 1
mov dword [esp + 0x14], ecx
mov ecx, edi
mov edi, dword [esp + 0x14]
shl edi, cl
mov ecx, ebx
shr ecx, 3
mov byte [edx*4 + 0x540648], cl
mov cl, byte [esp + 0x13]
dec eax
dec edi
xor eax, edi
mov byte [edx*4 + 0x54064b], cl
mov byte [edx*4 + 0x540649], al
add ebp, 3
shr eax, 8
add ebx, esi
cmp ebp, 0x1b
mov byte [edx*4 + 0x54064a], al
mov dword [esp + 0x18], ebp
jl 0x4e1030
pop edi
pop esi
pop ebp
mov byte [0x5406b4], 1
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x2c
ret 4
Function at 0x4e1210
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
lea edi, [ebx*4 + 0x540644]
mov dword [esp + 0x10], ecx
dec ebx
lea esp, [esp]
movzx eax, byte [edi]
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + eax]
add ecx, eax
movzx eax, byte [edi + 1]
and eax, edx
mov dl, byte [edi + 2]
test dl, dl
je 0x4e1258
movzx ecx, byte [ecx + 1]
movzx edx, dl
and ecx, edx
shl ecx, 8
or eax, ecx
mov cl, byte [edi + 3]
shr eax, cl
test ebx, ebx
je 0x4e12b7
mov ecx, ebx
mov esi, 1
shl esi, cl
test ebp, esi
setne cl
mov byte [esp + 0x1c], cl
test al, 1
je 0x4e1280
test cl, cl
sete cl
mov byte [esp + 0x1c], cl
shr eax, 1
xor edx, edx
div ebx
mov eax, 1
mov ecx, edx
shl eax, cl
test ebp, eax
je 0x4e1297
or ebp, esi
jmp 0x4e129b
not esi
and ebp, esi
cmp byte [esp + 0x1c], 0
je 0x4e12aa
or ebp, eax
dec ebx
sub edi, 4
jmp 0x4e1230
not eax
and ebp, eax
dec ebx
sub edi, 4
jmp 0x4e1230
test al, 1
je 0x4e12be
xor ebp, 1
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x100010d0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x48
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
xor ebp, ebp
push 0x1000000
mov dword [esp + 0x24], ebp
push ebp
mov dword [esp + 0x24], ebp
push ebp
push ebp
push 0x10011038
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x18], eax
cmp eax, ebp
je 0x1000129a
mov esi, dword [esp + 0x5c]
push ebp
mov ecx, dword [esp + 0x1c]
push 0x1000000
push ebp
mov eax, dword [esi + 8]
push ebp
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
je 0x1000129a
mov eax, dword [esi + 0x10]
push 0x1000
mov dword [esp + 0x28], 0x1c
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT40.dll_malloc]
add esp, 4
mov ebx, eax
test ebx, ebx
jne 0x10001159
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000129a
lea eax, [esp + 0x48]
lea ecx, [esp + 0x24]
push eax
push ecx
push edi
call section..text
add esp, 0xc
test eax, eax
je 0x1000129a
mov dword [esp + 0x20], 1
lea eax, [esp + 0x24]
push eax
call dword [esi + 0xc]
add esp, 4
test eax, eax
je 0x1000127f
mov eax, dword [esi + 0x18]
test eax, eax
je 0x100011a3
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp 0x100011c3
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 1
dec dword [esp + 0x14]
test eax, eax
je 0x1000127f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
mov ebp, dword [ecx + 4]
test ebp, ebp
jne 0x1000120b
push 0
push 2
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
mov ecx, dword [esp + 0x10]
sub eax, dword [ecx]
mov ebp, eax
test ebp, ebp
je 0x10001260
mov eax, dword [esp + 0x30]
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
lea eax, [esp + 0x38]
push eax
cmp ebp, 0x1000
mov eax, ebp
jb 0x10001231
mov eax, 0x1000
push eax
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10001277
cmp dword [esp + 0x38], 0
je 0x10001260
lea eax, [esp + 0x24]
push eax
call dword [esi + 0xc]
add esp, 4
test eax, eax
je 0x1000127f
mov eax, dword [esp + 0x38]
add dword [esp + 0x30], eax
sub ebp, eax
jne 0x1000120b
add dword [esp + 0x10], 8
mov eax, dword [esp + 0x14]
dec dword [esp + 0x14]
test eax, eax
jne 0x100011df
jmp 0x1000127f
mov dword [esp + 0x1c], 0x80004005
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], eax
push ecx
mov dword [esp + 0x30], 2
call dword [esi + 0xc]
add esp, 4
test ebx, ebx
je 0x100012a8
push ebx
call dword [sym.imp.MSVCRT40.dll_free]
add esp, 4
test edi, edi
je 0x100012b7
push edi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x100012bd
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esp + 0x18], 0
je 0x100012cb
mov eax, dword [esp + 0x18]
push eax
call esi
mov eax, dword [esp + 0x20]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x48
ret
Function at 0x10001390
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000141b
push eax
mov dword fs:[0], esp
sub esp, 4
xor edx, edx
push esi
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0x1000f0b8
mov dword [ecx + 0xc], edx
mov dword [ebp - 4], edx
mov dword [ecx], 0x1000f070
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ecx + 4], 0x1000f0a0
mov dword [esi + 4], 0x1000f058
mov dword [esi + 0x30], 0x1c
mov dword [esi + 0x2c], eax
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x28], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov dword [esi + 0x60], eax
mov eax, esi
mov dword [esi + 0x64], edx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10003b40
Capabilities:
Read .ini file

Disassembly:
mov ax, word [esp + 0xc]
sub esp, 0x120
cmp ax, 0xffff
push ebx
push esi
push edi
lea esi, [esp + 0x2c]
push ebp
je 0x10003b7a
mov ecx, dword [esp + 0x138]
lea edx, [esp + 0x10]
movzx eax, ax
push eax
push ecx
push str._s__d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x10003b8d
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x134]
lea edx, [esp + 0x30]
lea ebx, [esp + 0x10]
mov eax, dword [ecx]
push eax
push 0x100
push edx
mov eax, dword [ecx + 4]
push 0x100111c4
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push eax
call ebp
cmp byte [esp + 0x30], 0
jne 0x10003bcc
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x120
ret
lea ebx, [esp + 0x144]
xor edi, edi
mov ebp, dword [sym.imp.MSVCRT40.dll_atof]
mov eax, dword [esp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, edi
jle 0x10003ca6
mov eax, dword [esp + 0x140]
movsx ecx, byte [eax + edi]
sub ecx, 0x62
cmp ecx, 0x11
ja case.0x10003c10.102
xor eax, eax
mov al, byte [ecx + 0x10003ccc]
jmp dword [eax*4 + 0x10003cb8]
mov ecx, dword [ebx]
add ebx, 4
mov al, byte [esp + 0x30]
sub al, 0x59
cmp al, 1
sbb eax, eax
neg eax
mov word [ecx], ax
jmp 0x10003c73
add ebx, 4
push esi
call dword [sym.imp.MSVCRT40.dll_atoi]
add esp, 4
mov ecx, dword [ebx - 4]
mov word [ecx], ax
jmp 0x10003c73
add ebx, 4
push esi
call ebp
add esp, 4
mov eax, dword [ebx - 4]
fstp dword [eax]
jmp 0x10003c73
mov ax, word [ebx + 4]
add ebx, 4
mov ecx, ebx
push eax
add ebx, 4
lea edx, [esp + 0x34]
push edx
mov ecx, dword [ecx - 4]
push ecx
call fcn.10004080
add esp, 0xc
mov byte [esi], 0
cmp byte [esi], 0
je case.0x10003c10.102
mov al, byte [esi]
cmp al, 0x20
je 0x10003c88
cmp al, 0x2c
je 0x10003c88
inc esi
cmp byte [esi], 0
jne 0x10003c78
cmp byte [esi], 0
je case.0x10003c10.102
mov al, byte [esi]
cmp al, 0x20
je 0x10003c97
cmp al, 0x2c
jne case.0x10003c10.102
inc esi
cmp byte [esi], 0
jne 0x10003c8d
inc edi
test esi, esi
jne 0x10003bdb
mov ax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x120
ret
Function at 0x10004820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push ebx
mov dword [esp + 4], 0
mov byte [esp + 0x10], 0
push esi
push edi
push eax
push 0x20019
push 0
push str.SoftwareAdobeAcrobatLanguage
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100048c1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov dword [esp + 0x18], 0x100
push edx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100048c1
cmp byte [esp + 0x18], 0
je 0x100048c1
lea edi, [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100048c1
lea edi, [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x10006fc0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10007066
push eax
mov dword fs:[0], esp
sub esp, 4
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
lea edi, [ecx + 0x30]
mov esi, ecx
xor ebx, ebx
call fcn.10002be0
push 0x400
mov ecx, edi
mov dword [ebp - 4], ebx
call sub.MFC40.DLL_CMemFile::CMemFile
mov byte [ebp - 4], 1
lea ecx, [esi + 0x64]
call sub.MFC40.DLL_CString::CString
mov byte [ebp - 4], 2
push ebx
mov dword [esi], 0x1000fab0
mov ecx, edi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 4], 0x1000fa98
mov eax, dword [edi]
call dword [eax + 0x34]
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov eax, esi
pop edi
mov dword [esi + 0x68], ebx
mov dword [esi + 0x78], ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10008c60
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x108
cmp word [eax], 2
push ebx
push esi
push edi
je 0x10008d61
mov edi, dword [eax + 0x20]
mov esi, dword [esp + 0x118]
mov dword [esp + 0xc], 0
mov word [esi + 0xc4], 1
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x10008cb3
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x108
ret
lea eax, [esi + 0xc6]
lea ecx, [esp + 0x10]
push eax
push 0
push 0x100115d8
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x10008cdd
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x108
ret
push 0x58
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push edi
call ebx
push 0x5a
mov dword [esi + 0x1d0], eax
push edi
call ebx
push 0xc
mov dword [esi + 0x1d4], eax
push edi
call ebx
mov dword [esi + 0x1d8], eax
cmp eax, 1
jne 0x10008d34
push 0xe
push edi
call ebx
cmp eax, 1
jle 0x10008d24
mov ecx, dword [esi + 0x1d8]
imul ecx, eax
mov dword [esi + 0x1d8], ecx
jmp 0x10008d34
push 0x18
push edi
call ebx
cmp eax, 1
jle 0x10008d34
mov dword [esi + 0x1d8], eax
lea eax, [esp + 0xc]
push 0
mov dword [esp + 0x10], 0x1013
push eax
push 4
push 8
push edi
call dword [sym.imp.GDI32.dll_Escape]
mov word [esi + 0x1dc], ax
mov dword [esi + 0x1e0], 1
jmp 0x10008d68
mov esi, dword [esp + 0x118]
mov ax, 1
pop edi
mov dword [esi], 0x1e4
pop esi
pop ebx
add esp, 0x108
ret
Function at 0x1000a960
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push esi
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 8]
lea edx, [esp + 0x10c]
push ecx
push 0
push 0x10011850
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edi, [esp + 8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call dword [sym.imp.MSVCRT40.dll_malloc]
lea edi, [esp + 0xc]
add esp, 4
mov edx, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
add esp, 0x208
ret

Function at 0x1000aa90
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x1000aaaf
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push eax
push 1
push ecx
call dword [sym.imp.MSVCRT40.dll_fread]
add esp, 0x10
ret
xor eax, eax
ret

Function at 0x1000aac0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x1000aadf
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push eax
push 1
push ecx
call dword [sym.imp.MSVCRT40.dll_fwrite]
add esp, 0x10
ret
xor eax, eax
ret

Function at 0x1000ac50
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov bx, ax
push 0x20
and ebx, 0x8000
lea eax, [esp + 0x30]
mov edi, dword [esp + 0x54]
push eax
push 0x3f4
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0xc]
push 0x20
push eax
push 0xb
call fcn.10003d90
lea ecx, [esp + 0x38]
lea edx, [esp + 0x18]
add esp, 0xc
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1000acc2
or al, al
je 0x1000acbe
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1000acc2
add ecx, 2
add edx, 2
or al, al
jne 0x1000aca2
xor eax, eax
jmp 0x1000acc7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000accf
push 1
jmp 0x1000acd1
push 0
push edi
call fcn.1000af40
lea eax, [esp + 0x14]
add esp, 8
push 0x20
push eax
push 0xc
call fcn.10003d90
add esp, 0xc
test ebx, ebx
jne 0x1000acf6
cmp byte [esp + 0xc], 0x52
je 0x1000ad0a
lea eax, [esp + 0xc]
push eax
push 0x3fb
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x1000ad20
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x48
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
push esi
neg edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x10011868
push 0x22
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov esi, dword [sym.imp.GDI32.dll_CreateFontA]
push 0
push 0
push 0
push 0
push edi
call esi
push str.Arial
mov dword [0x100150f8], eax
push 0x22
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push edi
call esi
mov esi, dword [esp + 0x110]
push 0
push eax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x30
mov dword [0x10015100], eax
push 0x4e3
push esi
call edi
push eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
call ebx
push 0
mov eax, dword [0x100150f8]
push eax
push 0x30
push 0x4e4
push esi
call edi
push eax
call ebx
push 0
mov eax, dword [0x100150f8]
push eax
push 0x30
push 0x4e5
push esi
call edi
push eax
call ebx
push 0
mov eax, dword [0x100150f8]
push eax
push 0x30
push 0x3fe
push esi
call edi
push eax
call ebx
push 0
mov eax, dword [0x100150f8]
push eax
push 0x30
push 0x3fb
push esi
call edi
push eax
call ebx
push 0
mov eax, dword [0x100150f8]
push eax
push 0x30
push 0x3ff
push esi
call edi
push eax
call ebx
lea eax, [esp + 0xc]
push 0x100
push eax
push 0xd
call fcn.10003d90
lea eax, [esp + 0x18]
add esp, 0xc
push eax
push 0x4e3
push esi
call edi
push eax
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextA]
call ebx
lea eax, [esp + 0xc]
push 0x100
push eax
push 0xe
call fcn.10003d90
lea eax, [esp + 0x18]
add esp, 0xc
push eax
push 0x4e4
push esi
call edi
push eax
call ebx
push 0xd7
mov eax, dword [0x10015108]
push 0xfffffffffffffffa
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call ebx
push eax
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
call edi
push 0xd5
mov dword [0x10015104], eax
push 0xfffffffffffffffa
mov eax, dword [0x10015108]
push eax
call ebx
push eax
call edi
push 0
mov dword [0x100150fc], eax
push esi
call fcn.1000af40
add esp, 8
push esi
call fcn.1000ab30
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x1000af40
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x800
test eax, eax
push ebx
push esi
push edi
je 0x1000af64
cmp eax, 1
je 0x1000b095
pop edi
pop esi
pop ebx
add esp, 0x800
ret
lea eax, [esp + 0xc]
push 0x400
push eax
push 0xf
call fcn.10003d90
lea eax, [esp + 0x418]
add esp, 0xc
push 0x400
push eax
push 0x10
call fcn.10003d90
lea eax, [esp + 0x418]
lea ecx, [esp + 0x18]
add esp, 0xc
mov esi, dword [sym.imp.MSVCRT40.dll_strncat]
push 0x400
push eax
push ecx
call esi
lea ecx, [esp + 0x418]
add esp, 0xc
push 0x400
push ecx
push 0x11
call fcn.10003d90
lea eax, [esp + 0x418]
lea ecx, [esp + 0x18]
add esp, 0xc
push 0x400
push eax
push ecx
call esi
lea ecx, [esp + 0x418]
add esp, 0xc
push 0x400
push ecx
push 0x12
call fcn.10003d90
lea ecx, [esp + 0x418]
lea edx, [esp + 0x18]
add esp, 0xc
push 0x400
push ecx
push edx
call esi
lea ecx, [esp + 0x18]
mov ebx, dword [esp + 0x81c]
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
push 0x3fe
push ebx
call esi
push eax
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
call edi
push 0
mov eax, dword [0x100150fc]
push eax
push 0x170
push 0x4ec
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0xc]
push 0x400
push eax
push 0xb
call fcn.10003d90
lea eax, [esp + 0x18]
add esp, 0xc
push eax
push 0x3f4
push ebx
call esi
push eax
call edi
push 5
push 0x3fe
push ebx
call esi
push eax
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push 0
push 0x4e5
push ebx
call esi
push eax
call edi
pop edi
pop esi
pop ebx
add esp, 0x800
ret
lea eax, [esp + 0xc]
push 0x400
push eax
push 0x13
call fcn.10003d90
lea eax, [esp + 0x418]
add esp, 0xc
push 0x400
push eax
push 0x14
call fcn.10003d90
lea eax, [esp + 0x418]
lea ecx, [esp + 0x18]
add esp, 0xc
push 0x400
push eax
push ecx
call dword [sym.imp.MSVCRT40.dll_strncat]
lea ecx, [esp + 0x18]
mov ebx, dword [esp + 0x81c]
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
push 0x4e5
push ebx
call esi
push eax
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
call edi
push 0
mov eax, dword [0x10015104]
push eax
push 0x170
push 0x4ec
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0xc]
push 0x400
push eax
push 0x15
call fcn.10003d90
lea eax, [esp + 0x18]
add esp, 0xc
push eax
push 0x3f4
push ebx
call esi
push eax
call edi
push 5
push 0x4e5
push ebx
call esi
push eax
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push 0
push 0x3fe
push ebx
call esi
push eax
call edi
pop edi
pop esi
pop ebx
add esp, 0x800
ret