joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2ee38078
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.2ee36224
mov eax, dword [ebp - 0x21c]
call fcn.2ee36224
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x2ee38217
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.2ee3623c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.2ee362c8
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x2ee38118
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x2ee3812a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x2ee38115
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x2ee381e3
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x2ee38153
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.2ee37bc8
cmp dword [ebp - 0x220], 0
je 0x2ee3818b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.2ee37f6c
pop ecx
mov ebx, eax
jmp 0x2ee381e3
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.2ee377a4
mov eax, dword [ebp - 0x224]
call fcn.2ee37f6c
pop ecx
mov ebx, eax
test bl, bl
jne 0x2ee381d6
cmp byte [0x2ee679cc], 0
jne 0x2ee381d6
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.2ee377a4
mov eax, dword [ebp - 0x228]
call fcn.2ee37f6c
pop ecx
mov ebx, eax
test bl, bl
jne 0x2ee381e3
push ebp
call fcn.2ee3801c
pop ecx
mov ebx, eax
test bl, bl
je 0x2ee381f9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.2ee36424
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2ee3821e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.2ee36234
ret

Function at 0x2ee386b4
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x2ee387a0
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x2ee65754], 1
jae 0x2ee38849
call fcn.2ee316dc
call fcn.2ee34230
call fcn.2ee3738c
mov byte [0x2ee5b73c], 2
mov dword [0x2ee64e78], 0x2ee5a2e2
mov dword [0x2ee64e7c], 0x2ee5a2f4
mov byte [0x2ee64ebe], 2
call fcn.2ee386b4
mov dword [0x2ee64ec0], eax
mov dword [0x2ee64e64], 0x2ee36e48
call fcn.2ee34cb0
mov word [0x2ee64ec8], 0xd7b0
mov word [0x2ee65198], 0xd7b0
mov word [0x2ee65468], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x2ee64eb0], eax
call fcn.2ee32828
mov dword [0x2ee64eac], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x2ee6573c], eax
mov dword [0x2ee65740], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x2ee64ea4], eax
call fcn.2ee386c8
ret
Function at 0x2ee4f9a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x2ee4f9c0
call fcn.2ee50b34
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x2ee4f9df
test bl, 1
je 0x2ee4f9df
call fcn.2ee56334
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x2ee52d7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.2ee4e728
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.2ee4e7d8
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.2ee4e7d8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x2ee60ee5
lea ecx, [ebp - 0x200]
push ecx
call fcn.2ee4e728
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.2ee4e7d8
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.2ee54024
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x2ee52e8d
push esi
call fcn.2ee4e7d8
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.2ee4e7d8
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.2ee4d934
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x2ee52e64
xor eax, eax
jmp 0x2ee52f16
push esi
call fcn.2ee4e7d8
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.2ee4e7d8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.2ee4e657
add esp, 0xc
jmp 0x2ee52ecf
mov edi, ebx
mov edi, dword [edi + 0x24]
push edi
call fcn.2ee4e7d8
pop ecx
push eax
push esi
call fcn.2ee4e7d8
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.2ee4e7d8
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.2ee4d954
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x2ee52ecf
xor eax, eax
jmp 0x2ee52f16
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.2ee4e728
add esp, 8
push 0x2ee60ee7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.2ee4e728
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.2ee4e728
add esp, 8
push 0x2ee60ee9
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.2ee4e728
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x2ee562c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x2ee562f5
jmp 0x2ee5632c
call fcn.2ee56278
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.2ee4e7d8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.2ee4e7d8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x2ee563b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x2ee61524], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x2ee5648a
cmp dword [0x2ee61520], 0
jne 0x2ee5648a
cmp dword [0x2ee61720], 0
je 0x2ee56444
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.2ee55d78
add esp, 8
mov ebx, eax
test eax, eax
jne 0x2ee5642a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.2ee55d78
add esp, 8
mov ebx, eax
test eax, eax
jne 0x2ee5642a
lea ebx, [ebp - 0x84]
jmp 0x2ee5642b
inc ebx
call fcn.2ee56368
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x2ee564c5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x2ee61528
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.2ee4e7d8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x2ee6152b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x2ee564c5
cmp dword [0x2ee61520], 0
je 0x2ee564a4
cmp dword [0x2ee61520], 0xffffffff
je 0x2ee564c5
push esi
call dword [0x2ee61520]
pop ecx
mov eax, dword [0x2ee61524]
test eax, eax
je 0x2ee564c5
cmp dword [0x2ee61524], 0xffffffff
je 0x2ee564c5
cmp byte [eax], 0
je 0x2ee564c5
push esi
push eax
call fcn.2ee562c8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x2ee56d64
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x2ee6878c], 0
jne 0x2ee56de5
cmp dword [0x2ee687ac], 0
jne 0x2ee56d94
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x2ee687ac], eax
test eax, eax
jne 0x2ee56d94
push str.GetEnvironmentStrings_failed
call fcn.2ee564dc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x2ee687ac]
jmp 0x2ee56da8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.2ee4e7d8
pop ecx
mov edi, eax
test eax, eax
jne 0x2ee56da0
lea edi, [ebp + 1]
push edi
call fcn.2ee4d934
pop ecx
mov ebx, eax
mov dword [0x2ee68790], ebx
test ebx, ebx
jne 0x2ee56dd2
xor eax, eax
jmp 0x2ee56ea5
push edi
mov edx, dword [0x2ee687ac]
push edx
push ebx
call fcn.2ee4e470
add esp, 0xc
jmp 0x2ee56e07
xor esi, esi
mov ebx, dword [0x2ee6878c]
jmp 0x2ee56dff
push eax
call fcn.2ee4e7d8
pop ecx
test eax, eax
jne 0x2ee56dfb
dec esi
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x2ee56def
lea ebx, [esi + 4]
push 4
mov dword [0x2ee68794], ebx
inc ebx
push ebx
call fcn.2ee4d898
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x2ee56e27
xor eax, eax
jmp 0x2ee56ea5
cmp dword [0x2ee6878c], 0
jne 0x2ee56e56
xor esi, esi
mov ebx, dword [0x2ee68790]
mov ebp, dword [esp]
jmp 0x2ee56e47
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.2ee4e7d8
pop ecx
mov edi, eax
test eax, eax
jne 0x2ee56e3d
jmp 0x2ee56e87
xor esi, esi
mov ebx, dword [0x2ee6878c]
mov edi, dword [esp]
jmp 0x2ee56e7f
push eax
call fcn.2ee4e7d8
pop ecx
test eax, eax
je 0x2ee56e74
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x2ee56e78
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, ebx
mov eax, dword [eax]
test eax, eax
jne 0x2ee56e63
mov eax, dword [0x2ee6878c]
test eax, eax
je 0x2ee56e97
push eax
call fcn.2ee4d944
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x2ee6878c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x43b590
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45e4ec
push 0x45e4e4
push str.FlsAlloc
push 0x1e
call fcn.0043b260
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b5c4
push dword [ebp + 8]
mov ecx, esi
call dword [0x45b198]
call esi
jmp 0x43b5ca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43b60e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45e4fc
push 0x45e4f4
push str.FlsGetValue
push 0x20
call fcn.0043b260
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b645
push dword [ebp + 8]
mov ecx, esi
call dword [0x45b198]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x443053
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00442f27
Function at 0x44395f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x465014]
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 0x4439aa
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00443d75
test al, al
jne 0x4439a4
sub edx, 2
cmp edx, edi
jne 0x44398a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4439cc
lea eax, [edi + 2]
cmp edx, eax
je 0x4439cc
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00443626
add esp, 0x10
jmp 0x443ac6
push esi
lea ecx, [ebp - 0x255]
call fcn.00443d75
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 0x443a0f
push dword [ebp - 0x25c]
jmp 0x4439bc
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 0x443a4c
cmp word [ebp - 0x226], 0
je 0x443a6d
cmp word [ebp - 0x226], ax
jne 0x443a4c
cmp word [ebp - 0x224], 0
je 0x443a6d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00443626
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x443ab9
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x443a26
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x443aa1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x443ac6
push 0x443076
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00451690
add esp, 0x10
jmp 0x443a96
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.0040176c
leave
ret
Function at 0x445163
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 0x445200
push ebx
push esi
call fcn.0044511f
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.00445011
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4451ad
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4451ff
push edi
push eax
call fcn.0043df44
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4451cd
call fcn.0043ac10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4451fe
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00445011
add esp, 0x20
test eax, eax
jne 0x4451ec
push edi
call fcn.0043ac10
jmp 0x4451f4
push ebx
call fcn.0043ac10
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 0x445203
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x445214
pop esi
ret
push ebx
push edi
push esi
call fcn.0044511f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043df44
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44523c
push ebx
push esi
push edi
call fcn.0040ac90
add esp, 0xc
push 0
call fcn.0043ac10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x445b1d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004454af
Function at 0x450650
Capabilities:
Read file on windows

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

Function at 0x45065b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004503bf

Function at 0x45375e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x466a10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45379e
cmp byte [ebx], 0xa
jne 0x45379e
or byte [eax + edi + 0x28], 4
jmp 0x4537a3
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4538a1
mov al, byte [edx]
cmp al, 0x1a
je 0x453883
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4537d2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4537f7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x453801
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4537b4
jmp 0x4538a1
push 0
lea eax, [ebp - 0xc]
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 0x45387e
cmp dword [ebp - 0xc], 0
je 0x45387e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x466a10]
test byte [eax + edi + 0x28], 0x48
je 0x453858
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x453843
mov byte [esi], dl
jmp 0x453854
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x466a10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4538a1
cmp byte [ebp - 1], 0xa
jne 0x453867
cmp esi, ebx
jne 0x453867
mov byte [esi], 0xa
jmp 0x4538a0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00453700
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4538a1
mov byte [esi], 0xd
jmp 0x4538a0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x466a10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45389d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4538a1
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4538aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x466a10]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4538ed
cmp word [esi], dx
jne 0x4538ed
or byte [edi + eax + 0x28], 4
jmp 0x4538f2
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x453a2b
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x453a0b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x453934
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45396a
cmp eax, edx
jae 0x453976
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x45390c
jmp 0x453a2b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x453a07
cmp dword [ebp - 0x14], 0
je 0x453a07
mov eax, dword [ebx*4 + 0x466a10]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4539df
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x453a25
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x466a10]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x466a10]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x466a10]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x453a28
pop ebx
cmp word [ebp - 4], bx
jne 0x4539f0
cmp esi, dword [ebp + 0xc]
jne 0x4539f0
mov word [esi], bx
jmp 0x453a28
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00453700
add esp, 0x10
cmp word [ebp - 4], bx
je 0x453a2b
push 0xd
jmp 0x453a24
mov ecx, dword [ebx*4 + 0x466a10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x453a22
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x453a2b
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45454d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045436d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4546c5
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4546c5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x454674
jg 0x4545a6
test eax, eax
je 0x45466a
push 1
push 0x1000
call fcn.0043abad
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4545cc
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x454661
push 0x8000
push ebx
call fcn.00435a0c
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4545f8
jg 0x4545f3
cmp ecx, 0x1000
jb 0x4545f8
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0044b79e
add esp, 0x10
cmp eax, 0xffffffff
je 0x45463d
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4545f3
jl 0x454624
test ecx, ecx
jne 0x4545e5
push dword [ebp - 0xc]
push ebx
call fcn.00435a0c
push esi
call fcn.0043ac10
add esp, 0xc
xor edi, edi
jmp 0x4546d6
cmp byte [edi + 0x24], 0
je 0x454654
cmp dword [edi + 0x20], 5
jne 0x454654
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x45465f
mov edi, dword [edi + 0x18]
jmp 0x454661
xor edi, edi
push esi
call fcn.0043ac10
pop ecx
jmp 0x4546d6
test ecx, ecx
jg 0x454636
jl 0x454674
test eax, eax
jae 0x454636
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00453700
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x454697
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x454636
jmp 0x4546ce
push ebx
call fcn.00445f4f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x454636
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4546d6
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4546d3
mov edi, dword [edi + 0x18]
jmp 0x4546d6
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00453700
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x54e745bb
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x272d1aad
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219