joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431540
Capabilities:
Get file system object information

Disassembly:
push 0x328
mov eax, 0x4a5ff3
call fcn.00457e45
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x318]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2f4], eax
call fcn.0040e1b3
and dword [ebp - 4], 0
cmp byte [edi], 0
je 0x4315c3
push dword [edi + 0xc]
lea ecx, [ebp - 0x334]
push dword [edi + 8]
call fcn.004313c2
push eax
mov edx, 0xdb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x328]
call fcn.00431385
push eax
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 2
call fcn.0040e3aa
push dword [ebp - 0x328]
call fcn.00457dcd
push dword [ebp - 0x334]
mov byte [ebp - 4], 0
call fcn.00457dcd
pop ecx
pop ecx
lea ecx, [edi + 0x18]
call fcn.0040f605
mov esi, eax
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 1]
push ecx
lea ecx, [ebp - 0x30c]
call fcn.0040dfcf
mov eax, dword [edi + 0x18]
lea ecx, [ebp - 0x300]
add eax, 2
mov byte [ebp - 4], 3
lea eax, [eax + esi*2]
push eax
call fcn.0040e176
lea eax, [ebp - 0x30c]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.004314df
lea eax, [ebp - 0x300]
mov ecx, ebx
push eax
call fcn.004314df
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0040e09e
lea ecx, [ebp - 0x2f0]
mov byte [ebp - 4], 5
call fcn.0040e893
lea eax, [ebp - 0x300]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0040e76f
lea ecx, [ebp - 0x2f0]
call fcn.0040e893
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0040e76f
lea ecx, [ebp - 0x2f0]
call fcn.0040e893
cmp byte [edi + 1], 0
je 0x4316b6
mov edx, 0x3f4
lea ecx, [ebp - 0x2f0]
call fcn.00430483
push 0x4af520
lea ecx, [ebp - 0x2f0]
call fcn.0040e7ad
push 0
lea ecx, [edi + 0x10]
lea edx, [ebp - 0x30]
call fcn.00416cd5
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0040e7ad
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call esi
push dword [ebp - 0x2f0]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push pe_nt_image_headers32
push 0x2b4
lea eax, [ebp - 0x2e4]
push eax
push 0x80
push dword [edi + 0x18]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x431713
push dword [ebp - 0x2f4]
push dword [ebx + 4]
call esi
push 0
push dword [ebp - 0x2e4]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x2f0]
call fcn.00457dcd
push dword [ebp - 0x300]
call fcn.00457dcd
push dword [ebp - 0x30c]
call fcn.00457dcd
push dword [ebp - 0x318]
call fcn.00457dcd
add esp, 0x10
call fcn.00457df4
ret 0xc
Function at 0x4326df
Capabilities:
Hide graphical window

Disassembly:
push 0x44
mov eax, 0x4a6395
call fcn.00457e12
mov ebx, ecx
xor esi, esi
push esi
call fcn.00433408
push 1
mov ecx, ebx
call fcn.00433a6e
mov edx, 0x198
lea ecx, [ebp - 0x20]
call fcn.00416d88
push dword [ebp - 0x20]
push 2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [ebp - 0x20]
call fcn.00457dcd
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
push 1
push 1
push 0xf4
push 2
push dword [ebx + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1bc
push dword [ebx + 4]
call edi
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0x1be
push dword [ebx + 4]
call edi
push 0
push eax
call esi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
lea ecx, [ebp - 0x50]
call fcn.004319fe
and dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004319fe
lea esi, [ebx + 0x200]
mov dword [ebp - 4], 1
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x1c8]
lea edi, [ebx + 0x1d0]
push edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], eax
call fcn.00431c8a
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.00431c8a
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x40], 0
je 0x432818
cmp dword [ebp - 0x4c], 0
mov byte [ebx + 0x21b], 1
jne 0x4327e7
push 0x4af60c
lea ecx, [ebp - 0x50]
call fcn.0040e40b
push 0x10
push dword [ebp - 0x50]
push dword [ebp - 0x44]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x43284e
cmp byte [ebx + 0x156], 0
jne 0x43284e
mov ecx, ebx
mov byte [ebx + 0x155], 1
call fcn.0043392d
jmp 0x432859
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4327ff
mov byte [ebx + 0x21b], 1
cmp dword [ebp - 0x28], eax
je 0x43284e
cmp dword [ebp - 0x34], eax
jne 0x43283d
push 0x4af60c
lea ecx, [ebp - 0x38]
call fcn.0040e40b
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x50]
call fcn.00431c0b
mov al, 1
call fcn.00457de0
ret
Function at 0x432bcc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov eax, dword [edx]
lea esi, [edi + 0xb4]
cmp eax, dword [esi]
jne 0x432bff
cmp dword [edx + 8], 0xffffff65
jne 0x432bff
movzx eax, word [edx + 0xc]
sub eax, 0x2d
je 0x432c21
sub eax, 0x14
je 0x432c07
dec eax
sub eax, 1
je 0x432c21
xor al, al
pop edi
pop esi
pop ebp
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x432bff
mov ecx, esi
call fcn.00433261
mov al, 1
jmp 0x432c01
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x432bff
mov ecx, edi
call fcn.00432031
jmp 0x432c1d

Function at 0x434673
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x5302c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2b8]
push 0x4010
push 0x2b4
push eax
or edx, 0x80
push edx
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x2b4]
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00457b1d
leave
ret 4

Function at 0x4346c0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x5302c4]
xor eax, ebp
mov dword [ebp - 4], eax
test cl, cl
mov edx, 0x4011
mov eax, 0x4110
cmovne eax, edx
push eax
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x90
push 0x4ade90
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457b1d
leave
ret
Function at 0x4592b7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4592f6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4592f6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4592f6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4592f6
cmp dword [ecx + 0x74], 0xe
jbe 0x4592f6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x468fee
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46902d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46902d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46902d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x46902d
cmp dword [ecx + 0x74], 0xe
jbe 0x46902d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x48a210
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x511cbc
push 0x511cb4
push str.FlsAlloc
push 0x1f
call fcn.00489edd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48a244
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ad344]
call esi
jmp 0x48a24a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48a28e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x511ccc
push 0x511cc4
push str.FlsGetValue
push 0x21
call fcn.00489edd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48a2c5
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ad344]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x48a2cd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x511cd4
push 0x511ccc
push str.FlsSetValue
push 0x22
call fcn.00489edd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48a307
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4ad344]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x48b63d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5302c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x48b688
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0048badd
test al, al
jne 0x48b682
sub edx, 2
cmp edx, edi
jne 0x48b668
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x48b6aa
lea eax, [edi + 2]
cmp edx, eax
je 0x48b6aa
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0048b304
add esp, 0x10
jmp 0x48b7a4
push esi
lea ecx, [ebp - 0x255]
call fcn.0048badd
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48b6ed
push dword [ebp - 0x25c]
jmp 0x48b69a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x48b72a
cmp word [ebp - 0x226], 0
je 0x48b74b
cmp word [ebp - 0x226], ax
jne 0x48b72a
cmp word [ebp - 0x224], 0
je 0x48b74b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0048b304
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x48b797
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x48b704
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x48b77f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x48b7a4
push 0x48ad54
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00494c60
add esp, 0x10
jmp 0x48b774
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457b1d
leave
ret
Function at 0x48d194
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x48d231
push ebx
push esi
call fcn.0048d150
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0048d08d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x48d1de
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48d230
push edi
push eax
call fcn.00488b62
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x48d1fe
call fcn.00488b28
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48d22f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0048d08d
add esp, 0x20
test eax, eax
jne 0x48d21d
push edi
call fcn.00488b28
jmp 0x48d225
push ebx
call fcn.00488b28
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x48d234
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x48d245
pop esi
ret
push ebx
push edi
push esi
call fcn.0048d150
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00488b62
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x48d26d
push ebx
push esi
push edi
call fcn.00459ac0
add esp, 0xc
push 0
call fcn.00488b28
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x48db5c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048d4e2

Function at 0x48f2e3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048f1b7

Function at 0x49221d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004895a9
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49228c
cmp esi, dword [ebp - 4]
je 0x492287
cmp dword [ebp + 0xc], 0
je 0x492287
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x492264
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00491d6f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x49228e
xor eax, eax
inc eax
jmp 0x49228e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4922f3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5302c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004895a9
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004895a9
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x49236a
cmp word [ecx], dx
je 0x49236a
mov eax, dword [0x512e04]
push edi
dec eax
push eax
push 0x512cf0
call fcn.00492292
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4923dd
cmp word [eax], dx
je 0x4923dd
mov eax, dword [edi]
test eax, eax
je 0x49238e
cmp word [eax], dx
je 0x49238e
lea eax, [ebp - 0x10]
push eax
call fcn.00491c75
jmp 0x492397
lea eax, [ebp - 0x10]
push eax
call fcn.00491d10
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x492407
mov eax, dword [0x512cec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5129e0
call fcn.00492292
add esp, 0xc
test al, al
je 0x492407
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4923d2
cmp word [eax], di
je 0x4923d2
lea eax, [ebp - 0x10]
push eax
call fcn.00491c75
pop ecx
jmp 0x492409
lea eax, [ebp - 0x10]
push eax
call fcn.00491d10
jmp 0x4923cf
mov eax, dword [edi]
test eax, eax
je 0x4923f4
cmp word [eax], dx
je 0x4923f4
lea eax, [ebp - 0x10]
push eax
call fcn.00491c0c
pop ecx
jmp 0x492407
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4924d2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00492117
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4924d2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4924d2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4924d2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x49245f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0048a59e
test ebx, ebx
je 0x4924cd
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0048a59e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4924d2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4924d2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0049706f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4924d4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00457b1d
leave
ret
Function at 0x49ccc7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x538cf8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49cd07
cmp byte [ebx], 0xa
jne 0x49cd07
or byte [edi + eax + 0x28], 4
jmp 0x49cd0c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x49ce0b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49cdee
inc eax
cmp dl, 0xd
je 0x49cd38
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49cd5e
cmp eax, ecx
jae 0x49cd6c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x49cd20
jmp 0x49ce0b
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49cde9
cmp dword [ebp - 0x10], 0
je 0x49cde9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x538cf8]
test byte [eax + edi + 0x28], 0x48
je 0x49cdc3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49cdae
mov byte [esi], dl
jmp 0x49cdbf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x538cf8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49ce0b
cmp byte [ebp - 1], 0xa
jne 0x49cdd2
cmp esi, ebx
jne 0x49cdd2
mov byte [esi], 0xa
jmp 0x49ce0a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049cb19
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49ce0b
mov byte [esi], 0xd
jmp 0x49ce0a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x538cf8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49ce08
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49ce0b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49ce14
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x538cf8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49ce5a
cmp word [ebx], dx
jne 0x49ce5a
or byte [eax + edi + 0x28], 4
jmp 0x49ce5f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x49cfc2
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x49cfa2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x49cea0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49ced6
cmp eax, edx
jae 0x49cee4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x49ce7b
jmp 0x49cfc2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49cf9d
cmp dword [ebp - 0x18], 0
je 0x49cf9d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x538cf8]
test byte [eax + edi + 0x28], 0x48
je 0x49cf73
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x49cf37
mov word [esi], cx
jmp 0x49cf6e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x538cf8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x538cf8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x538cf8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x49cfc2
pop eax
cmp word [ebp - 4], ax
jne 0x49cf83
cmp esi, ebx
jne 0x49cf83
mov word [esi], ax
jmp 0x49cfbf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0049cb19
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x49cfc2
push 0xd
pop eax
jmp 0x49cf7e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x538cf8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49cfbc
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x49cfc2
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a1eb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a1edd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a1edd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x124b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0124b1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x124b07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x124b06a
add dl, dl
jne 0x124b089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x124b0dc
xor eax, eax
add dl, dl
jne 0x124b096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x124b17d
add dl, dl
jne 0x124b0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x124b0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x124b0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x124b0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x124b0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x124b075
mov eax, 1
add dl, dl
jne 0x124b0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x124b0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x124b0e1
sub eax, ebx
mov ebx, 1
jne 0x124b128
mov ecx, 1
add dl, dl
jne 0x124b10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x124b119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x124b105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x124b075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x124b13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x124b14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x124b136
cmp eax, 0x7d00
jae 0x124b16d
cmp eax, 0x500
jb 0x124b168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x124b075
cmp eax, 0x7f
ja 0x124b170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x124b075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x124b19e
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 0x124b075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10