joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42612d
Capabilities:
Create thread

Disassembly:
mov eax, 0x5b2469
call fcn.005b0d74
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.0042c48a
push dword [edi + 0xc0]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, pe_nt_image_headers32
push 1
push ebx
push dword [edi + 0x20]
call esi
push dword [edi + 0xc0]
push 0
push ebx
push dword [edi + 0x20]
call esi
mov ecx, edi
call fcn.00426474
mov ecx, edi
call fcn.00426591
push edi
lea esi, [edi + 0x6190]
push 0x3fa
mov ecx, esi
call fcn.0042146c
push 0
mov ecx, esi
call fcn.0043544a
mov eax, dword [0x636460]
xor esi, esi
sub eax, dword [0x63645c]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
sar eax, 3
test eax, eax
je 0x4261d0
push 0
push 0
push esi
push 0x426837
push 0
push 0
call ebx
mov eax, dword [0x636460]
inc esi
sub eax, dword [0x63645c]
sar eax, 3
cmp esi, eax
jb 0x4261ad
mov ecx, edi
call fcn.00426840
push ecx
push dword [edi + 0xc4]
mov ecx, edi
call fcn.0041f0bd
cmp dword [0x6362d4], 0x10
mov eax, 0x6362c0
mov ecx, edi
cmovae eax, dword [0x6362c0]
push eax
call fcn.004353f8
mov dword [ebp - 4], 1
call fcn.0043c016
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0041e879
mov dword [ebp - 4], 2
mov eax, 0x636350
cmp dword [0x636364], 0x10
cmovae eax, dword [0x636350]
push eax
lea eax, [ebp - 0x10]
push 0x603018
push eax
call fcn.0041f35d
add esp, 0xc
mov ecx, edi
push 0x3fb
call fcn.004349ea
push 0x603028
mov ecx, eax
call fcn.004353f8
push 0x3fc
mov ecx, edi
call fcn.004349ea
mov esi, dword [ebp - 0x10]
mov ecx, eax
push esi
call fcn.004353f8
cmp byte [0x6364e2], 0
je 0x426284
call fcn.00427ca6
jmp 0x4262d4
xor eax, eax
push eax
push eax
cmp byte [0x6364e1], al
je 0x426298
push eax
push 0x427505
jmp 0x4262a7
cmp byte [0x6364e0], 0
je 0x4262ad
push eax
push 0x4272f9
push eax
push eax
call ebx
jmp 0x4262d4
push edi
push 0x42856f
push eax
push eax
call ebx
test eax, eax
je 0x4262c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [esi - 0x10]
call fcn.0041e8a2
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x42750a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x636e60]
push esi
xor esi, esi
test eax, eax
je 0x427535
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x427567
mov eax, dword [0x636e60]
test eax, eax
je 0x427535
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, dword [0x6364fc]
and ecx, 0x1f
inc edx
shl edx, cl
mov ecx, dword [ebp + 8]
shr ecx, 5
test dword [eax + ecx*4], edx
jne 0x427567
push esi
push esi
push dword [ebp + 8]
push 0x427bda
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x636e60], eax
pop esi
pop ebp
ret 4
Function at 0x427ca6
Capabilities:
Copy file

Disassembly:
mov eax, 0x5b25d2
call fcn.005b0d74
sub esp, 0x9c
push ebx
push esi
push edi
push 0xf
xor ebx, ebx
pop eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x30], bl
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00410264
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040faf5
mov byte [ebp - 4], 3
mov esi, dword [0x6365c4]
mov ecx, dword [ebp - 0x18]
push 0x30
pop edi
cmp esi, 0xffffffff
je 0x427dea
mov eax, dword [ebp - 0x14]
sub eax, ecx
cdq
idiv edi
cmp esi, eax
jge 0x427dea
imul eax, esi, 0x30
add ecx, 0x18
add ecx, eax
lea eax, [ebp - 0x78]
push ecx
push eax
call fcn.004129ed
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x48]
call fcn.00410fb3
lea ecx, [ebp - 0x78]
call fcn.0040672a
mov dl, 1
lea ecx, [ebp - 0xa8]
call fcn.004102bd
mov esi, eax
push 0x5ff814
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x90]
call fcn.00411136
push esi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
call fcn.004111a4
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00410fb3
lea ecx, [ebp - 0x78]
call fcn.0040672a
lea ecx, [ebp - 0x90]
call fcn.0040672a
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 3
call fcn.0040672a
push 0x10
pop esi
cmp dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x30]
push 1
cmovae ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], esi
push ecx
cmovae eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [ebp - 0x1c], esi
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
mov ecx, 0x6364e4
push eax
call fcn.0040682d
mov eax, dword [0x635fd0]
push ebx
push 1
push esi
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x427e17
push dword [ebp - 0x14]
push ecx
call fcn.00411092
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
cdq
idiv edi
imul eax, eax, 0x30
push eax
push dword [ebp - 0x18]
call fcn.004024e9
pop ecx
pop ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x60]
call fcn.0040672a
lea ecx, [ebp - 0x30]
call fcn.0040672a
lea ecx, [ebp - 0x48]
call fcn.0040672a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42bc5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x42bc86
cmp dword [ebx + 0x80], 0
jne 0x42bc86
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.0043b258
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.0042bf17
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42bcc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0043b258
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42bcf7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0042bd16
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x42f3d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x42f417
call fcn.0043b258
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42f417
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x42f433
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00435d96
mov ebx, eax
test edi, edi
je 0x42f431
test esi, esi
je 0x42f431
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x430204
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4302c2
cmp dword [esi + 0x20], 0
je 0x4302c2
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4302c2
cmp dword [ebp + 8], 0
je 0x4302c2
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0043b258
push 0x5c6a88
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x430293
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4302c2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.004534fc
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x4302b3
test edi, edi
je 0x4302b3
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x4302be
mov ecx, esi
call fcn.0042ffa6
mov eax, ebx
jmp 0x4302c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x434e47
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5b2a44
call fcn.005728f2
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x434e6d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x434ecd
call fcn.0043c016
push eax
lea ecx, [ebp - 0x10]
call fcn.0041e879
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5c1b6c]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005848eb
push eax
call fcn.00434771
add esp, 0x14
test esi, esi
je 0x434ec0
push esi
call fcn.00584860
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041e8a2
mov eax, ebx
call fcn.005728bb
ret 8
Function at 0x436025
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.00434a24
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.004362e2
cmp esi, 3
je 0x436063
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x4360ac
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x436086
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0042ceef
jmp 0x436097
push 0xff
mov ecx, esi
call fcn.0041f26a
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0042d13d
jmp 0x4360d0
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4360d0
push dword [esi]
push dword [ebp - 4]
call fcn.00451432
pop edi
pop esi
leave
ret 0xc

Function at 0x436239
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004362e2
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x436281
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042ceef
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0042d13d
jmp 0x43628c
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00451432
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4419d5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x441a1f
call fcn.0043b258
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x441a1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x441a6f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x441a4c
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5c1b6c]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x441a4c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x441a6d
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x5c1b6c]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x44d929
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x44d97c
push esi
push dword [ebp + 8]
call fcn.0044db0f
mov edi, eax
test edi, edi
je 0x44d977
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x44d977
mov eax, dword [ebp - 8]
jmp 0x44d98e
mov eax, dword [ebp + 0x10]
jmp 0x44d98e
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x45605a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4560b0
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x456089
call fcn.0043da78
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x45609e
call fcn.0043da78
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4560b0
call fcn.0043da78
call fcn.0043b258
cmp dword [eax + 0x3c], 0
je 0x4560c5
push edi
mov ecx, ebx
call fcn.00455787
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00456297
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4560ee
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4560fa
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x45ea47
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00585f06
pop ecx
test eax, eax
jne 0x45ea89
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0043641a
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45ea4f
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret
Function at 0x46f64e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x46f668
call fcn.0043b258
mov esi, dword [eax + 0xc]
push 0x5cc080
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x46f6be
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x46f6be
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x46f69d
xor esi, esi
jmp 0x46f6b3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0046f6c7
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x46f6c0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4eaca6
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00559804
call fcn.0043b2ac
cmp dword [eax + 0x14], 0
jne 0x4eacc1
mov ecx, esi
pop esi
jmp fcn.004e9fd1
pop esi
ret

Function at 0x4f972a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0040243c
call fcn.0043b2ac
cmp dword [eax + 0x14], 0
jne 0x4f9745
mov ecx, esi
pop esi
jmp fcn.004f8fa6
pop esi
ret

Function at 0x58ca3f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058c8be

Function at 0x592d0e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005929ce

Function at 0x59ba94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x409140
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x629a1e
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
lea esi, [edi + 4]
push esi
mov dword [ebp - 0x220], esi
call fcn.00480d2c
add esp, 4
test eax, eax
je 0x409192
push eax
call fcn.00480de4
add esp, 4
push 0xc
mov dword [ebp - 4], 0
call fcn.005bb0ab
add esp, 4
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4091c8
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00514560
jmp 0x4091ca
xor eax, eax
push 0x208
mov dword [edi], eax
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005fc2a0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x63fd28
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409229
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.chathistory.db
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [edi]
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 2
call fcn.00515030
push esi
mov dword [ebp - 4], 7
call fcn.00480d51
add esp, 4
test eax, eax
je 0x40937b
push eax
call fcn.00480de4
add esp, 4
jmp 0x40937b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret

Function at 0x40a300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a359
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a359
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40a34a
cmp esi, edx
jae 0x40a359
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40a338
cmp esi, edx
jae 0x40a359
cmp word [esi], 0
je 0x40a359
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40e510
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x40e52c
mov esi, dword [edi]
lea ebx, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x40e551
nop word [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x40e540
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
mov ebx, dword [ebx + 4]
mov edx, dword [ecx + eax*8]
lea eax, [eax*8 + 4]
add eax, ecx
mov dword [ebp - 8], edx
mov esi, edx
mov dword [ebp - 0xc], eax
cmp edx, ebx
jne 0x40e57b
mov eax, ebx
jmp 0x40e57f
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x40e5f6
cmp dword [edi + 0x14], 8
lea eax, [esi + 8]
mov ecx, edi
jb 0x40e590
mov ecx, dword [edi]
mov edi, dword [eax + 0x14]
cmp edi, 8
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
jb 0x40e5a6
mov eax, dword [eax]
cmp edx, dword [edi + 0x10]
jne 0x40e5ba
push edx
push ecx
push eax
call fcn.0040e100
add esp, 0xc
test eax, eax
je 0x40e5c4
mov esi, dword [esi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x40e573
cmp dword [ebp - 0x10], 8
lea eax, [esi + 8]
jb 0x40e5cf
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x40e5d9
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
cmp edx, dword [ebp - 0x14]
jne 0x40e5f0
push edx
push eax
push ecx
call fcn.0040e100
add esp, 0xc
test eax, eax
je 0x40e5f2
mov esi, ebx
mov eax, esi
jmp 0x40e5fa
mov esi, ebx
mov eax, ebx
cmp eax, ebx
jne 0x40e65a
mov esi, dword [ebx]
lea eax, [ebp + 0xf]
mov ebx, dword [ebp - 4]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov edi, dword [esi + 4]
push eax
push 0x6401e8
push edi
push esi
lea ecx, [ebx + 4]
call fcn.0040e1e0
mov edx, eax
mov ecx, 0x3333332
mov eax, dword [ebx + 8]
sub ecx, eax
cmp ecx, 1
jb 0x40e66c
inc eax
mov ecx, ebx
mov dword [ebx + 8], eax
mov dword [esi + 4], edx
mov esi, dword [ebp + 8]
mov dword [edi], edx
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
push esi
call fcn.0040e2b0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.list_T__too_long
call fcn.0047fc51
int3
Function at 0x40e680
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [edi + 0x1c], 8
lea esi, [edi + 8]
mov ebx, dword [edi + 0x18]
jb 0x40e6a4
mov esi, dword [edi + 8]
xor ecx, ecx
mov edx, 0x811c9dc5
add ebx, ebx
je 0x40e6c1
nop
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x40e6b0
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
lea edx, [eax*8]
mov eax, dword [ecx + edx]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x40e6fa
cmp eax, edi
jne 0x40e6f2
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x40e702
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x40e702
cmp eax, edi
jne 0x40e702
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
lea ecx, [edi + 8]
mov esi, dword [edi]
mov dword [eax], esi
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
dec dword [ebx + 8]
call fcn.0040e810
push 0x50
push edi
call fcn.005bb0db
mov eax, dword [ebp - 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8