joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404286
Capabilities:
Create process on windows
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
sub esp, 0xa40
mov eax, dword [0x4251a4]
xor eax, esp
mov dword [esp + 0xa3c], eax
push ebx
push ebp
push esi
push edi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x404456
mov ebx, 0x105
mov ebp, 0x428480
push ebx
push ebp
call fcn.00405d54
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x230]
push ebx
push eax
call fcn.0040bbf5
add esp, 0x18
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x10]
mov edi, 0x209
push eax
lea eax, [esp + 0x430]
mov dword [esp + 0x14], edi
push eax
push str.winzip_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x40437e
lea eax, [esp + 0x840]
push 0x104
push eax
call fcn.00402f3a
pop ecx
pop ecx
test eax, eax
je 0x404456
push 0xffffffffffffffff
push str.WinZipUWPHelper.exe
lea eax, [esp + 0x434]
push edi
push eax
call fcn.0040bbf5
push 0x20a
xor esi, esi
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00403817
push ebp
lea eax, [esp + 0x860]
push eax
push str.RunExe20083F0D_D8B0_49E2_B454_D6DA05DFFB81_s20083F0D_D8B0_49E2_B454_D6DA05DFFB81__s_
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.004046ba
push 0xffffffffffffffff
lea eax, [esp + 0x48]
push eax
push edi
push ebp
call fcn.0040bbf5
add esp, 0x40
jmp 0x4043ff
xor esi, esi
lea edi, [esp + 0x42c]
mov ebx, esi
cmp word [esp + 0x42c], bx
je 0x4043b0
push 4
push str.___1
push edi
call fcn.0040c11b
add esp, 0xc
test eax, eax
je 0x4043b0
add edi, 2
inc ebx
cmp word [edi], si
jne 0x404393
add ebx, ebx
cmp ebx, 0x412
jae 0x404495
xor eax, eax
push 0x20a
mov word [esp + ebx + 0x430], ax
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00403817
push ebp
push str.__s_
mov edi, 0x105
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004046ba
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
push edi
push ebp
call fcn.0040bbf5
add esp, 0x2c
mov eax, dword [0x425048]
test eax, 0x1000
je 0x404434
test eax, 0x8000
jne 0x404434
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x7a
pop ecx
push 0x69
lea eax, [eax*2 + 0x428478]
mov word [eax], cx
pop ecx
push 0x70
mov word [eax + 2], cx
pop ecx
mov word [eax + 4], cx
push 1
lea eax, [esp + 0x224]
push eax
push ebp
lea eax, [esp + 0x438]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test eax, eax
setne al
jmp 0x40447c
push 0
push 0x7d0
call fcn.00403845
push eax
push 0x40e
call fcn.00403845
push eax
push dword [0x428468]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov ecx, dword [esp + 0xa4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004088ba
add esp, 0xa40
ret
call fcn.004087e0
int3
Function at 0x404587
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x11c]
sub esp, 0x19c
mov eax, dword [0x4251a4]
xor eax, ebp
mov dword [ebp + 0x118], eax
mov eax, dword [0x425e5c]
mov ecx, eax
mov edx, dword [ebp + 0x124]
inc eax
mov dword [0x425e5c], eax
push esi
test ecx, ecx
jne 0x404695
push dword [ebp + 0x128]
push edx
push 0x7d4
call fcn.00403845
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x30
push 0x7d0
call fcn.00403845
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x428468]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str.WZSFX32.RPT
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404695
push 0x41c5bc
lea eax, [ebp - 0x7c]
push 0x191
push eax
call fcn.0040c294
add esp, 0xc
lea eax, [ebp - 0x80]
push 0
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040c300
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00403c47
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.WZSFX32.RPT
push 0x7d1
call fcn.00403845
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x30
push 0x7d0
call fcn.00403845
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x428468]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4046e3
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xfe8
mov eax, dword [0x4251a4]
xor eax, esp
mov dword [esp + 0xfe4], eax
push ebx
mov ebx, dword [esp + 0xff0]
lea eax, [esp + 0xa20]
push ebp
mov ebp, dword [esp + 0xffc]
push esi
mov esi, dword [esp + 0xffc]
push edi
push ebx
push 0x2e3
push eax
call fcn.0040bac6
xor edi, edi
add esp, 0xc
cmp word [esi], di
je 0x40475a
push 0x41c318
lea eax, [esp + 0xa30]
push 0x2e3
push eax
call fcn.0040bac6
push esi
lea eax, [esp + 0xa3c]
push 0x2e3
push eax
call fcn.0040ba51
add esp, 0x18
cmp ebp, 0xffffffff
jne 0x4047b2
push 0x10
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00403817
push 0x44
pop edi
push edi
xor ecx, ecx
lea eax, [esp + 0x30]
push ecx
push eax
call fcn.00403817
add esp, 0x18
mov dword [esp + 0x20], edi
lea eax, [esp + 0x10]
xor edi, edi
push eax
lea eax, [esp + 0x24]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0xa4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4047b2
mov eax, dword [esp + 0x10]
jmp 0x4048ea
lea eax, [esp + 0x464]
push eax
push edi
push ebx
call dword [sym.imp.SHELL32.dll_FindExecutableW]
mov edi, eax
cmp edi, 0x1f
jne 0x404829
mov ebp, 0x100
lea eax, [esp + 0x64]
push ebp
push eax
push 0xffffffffffffffff
push 0x427
call fcn.00403845
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edi, edi
push eax
push edi
push edi
call esi
push ebx
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x46c]
push 0x2e3
push eax
call fcn.004046ba
add esp, 0x10
lea eax, [esp + 0x264]
push ebp
push eax
push 0xffffffffffffffff
push 0x7d0
call fcn.00403845
push eax
push edi
push edi
call esi
push 0x10
jmp 0x4048cc
cmp edi, 0x20
jbe 0x40486f
xor eax, eax
xor ecx, ecx
cmp word [esi], cx
push 1
cmovne eax, esi
push ecx
push eax
mov eax, dword [0x425048]
and eax, 0x20000
neg eax
push ebx
sbb eax, eax
and eax, 0x41c31c
push eax
push dword [0x428468]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
test ebp, ebp
je 0x404866
mov dword [ebp], edi
cmp edi, 0x20
jbe 0x40486f
mov eax, edi
jmp 0x4048ea
mov ebp, 0x100
lea eax, [esp + 0x64]
push ebp
push eax
push 0xffffffffffffffff
push 0x400
call fcn.00403845
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
xor eax, eax
push eax
push eax
call esi
push ebx
push edi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x470]
push 0x2e3
push eax
call fcn.004046ba
add esp, 0x14
lea eax, [esp + 0x264]
push ebp
push eax
push 0xffffffffffffffff
push 0x7d0
call fcn.00403845
push eax
xor ebx, ebx
push ebx
push ebx
call esi
push ebx
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0x46c]
push eax
push dword [0x428468]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0xff4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004088ba
add esp, 0xfe8
ret
Function at 0x404f77
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x224
push 0xffffffffffffffff
push 0x41bbe0
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4251a4]
xor eax, ebp
mov dword [ebp + 0x220], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x22c]
lea eax, [ebp + 0x18]
push 0x104
push 0
push eax
call fcn.00403817
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x404fd6
mov eax, dword [esi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0x41c620
push eax
lea eax, [ebp + 0x18]
push eax
call ebx
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4050e0
push 0x104
lea eax, [ebp + 0x11c]
push 0
push eax
call fcn.00403817
add esp, 0xc
test byte [ebp - 0x14c], 0x10
je 0x40509b
lea eax, [ebp - 0x120]
push 0x41c578
push eax
call fcn.0040f6f0
pop ecx
pop ecx
test eax, eax
je 0x4050c3
lea eax, [ebp - 0x120]
push 0x41c624
push eax
call fcn.0040f6f0
pop ecx
pop ecx
test eax, eax
je 0x4050c3
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40505f
mov eax, dword [esi]
lea ecx, [ebp - 0x120]
push ecx
push eax
lea eax, [ebp + 0x11c]
push eax
call ebx
lea eax, [ebp + 0x11c]
push eax
lea ecx, [ebp]
call fcn.00404e12
and dword [ebp - 4], 0
lea eax, [ebp]
push eax
call fcn.00404f77
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp]
call fcn.004055fb
jmp 0x4050c3
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4050a5
mov eax, dword [esi]
lea ecx, [ebp - 0x120]
push ecx
push eax
lea eax, [ebp + 0x11c]
push eax
call ebx
lea eax, [ebp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405004
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 0x10
jb 0x4050e8
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x220]
xor ecx, ebp
call fcn.004088ba
add ebp, 0x224
leave
ret
Function at 0x405117
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4251a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x405138
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4051ce
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
push edi
lea eax, [ebp - 0x24]
push 0x41c628
push eax
call fcn.00404df8
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40516c
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40519f
inc edi
jmp 0x405150
push 0
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x128]
push eax
call fcn.0040c300
pop ecx
push eax
lea eax, [ebp - 0x128]
mov ecx, esi
push eax
call fcn.00405704
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004088ba
leave
ret

Function at 0x4053a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4251a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x103
jb 0x4053d4
xor eax, eax
jmp 0x405420
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x208
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
lea ecx, [ebp - 0x108]
lea esi, [ebp - 0x310]
cmove esi, ecx
push esi
call fcn.0040c300
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00405704
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004088ba
leave
ret
Function at 0x405f95
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [0x428d6e]
test edi, edi
jg 0x405fab
and dword [0x428ea8], 0
xor eax, eax
pop edi
ret
mov eax, 0x800
cmp edi, eax
push esi
cmova edi, eax
push edi
push dword [0x428eb0]
push dword [0x425c20]
call dword [sym.imp.KERNEL32.dll__lread]
cmp dword [0x425c3c], 0
mov esi, eax
mov dword [0x428ea8], esi
je 0x406029
cmp esi, 0xffffffff
je 0x406029
cmp esi, edi
je 0x40603a
test esi, esi
js 0x406029
mov ax, word [0x425024]
push dword [0x425c40]
inc ax
movzx eax, ax
push eax
call fcn.00403a15
mov esi, dword [0x428ea8]
test esi, esi
jne 0x406023
push edi
push dword [0x428eb0]
push dword [0x425c20]
call dword [sym.imp.KERNEL32.dll__lread]
mov esi, eax
mov dword [0x428ea8], esi
cmp esi, 0xffffffff
cmovne edi, esi
cmp esi, edi
je 0x40603a
push 2
call fcn.0040175f
mov esi, dword [0x428ea8]
sub dword [0x428d6e], esi
cmp dword [0x425c30], 0
mov edi, dword [0x428eb0]
mov dword [0x428eac], edi
je 0x406076
test esi, esi
je 0x406076
call fcn.00407e0b
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.00407edc
inc edi
pop ecx
sub esi, 1
jne 0x406059
mov esi, dword [0x428ea8]
lea eax, [esi - 1]
mov dword [0x428ea8], eax
mov eax, esi
pop esi
pop edi
ret
Function at 0x407e5d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4251a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x425c38]
mov esi, dword [ebp + 8]
call fcn.00407e25
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.004037f3
add esp, 0x10
xor esi, esi
call fcn.00407e0b
xor byte [ebp + esi - 0x10], al
movzx eax, byte [ebp + esi - 0x10]
push eax
call fcn.00407edc
inc esi
pop ecx
cmp esi, 0xc
jl 0x407e8d
cmp dword [0x425c34], 0
movzx ecx, byte [ebp - 5]
movzx eax, byte [0x428d67]
pop esi
jne 0x407ec4
movzx eax, byte [0x428d6d]
cmp cx, ax
je 0x407ece
or eax, 0xffffffff
jmp 0x407ed0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004088ba
leave
ret

Function at 0x407edc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x428440]
mov eax, ecx
xor eax, dword [esp + 4]
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x4286c0]
xor eax, ecx
mov ecx, dword [0x428448]
mov dword [0x428440], eax
movzx eax, al
add eax, dword [0x428444]
imul eax, eax, 0x8088405
inc eax
mov dword [0x428444], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4286c0]
mov dword [0x428448], ecx
ret
Function at 0x10083e40
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10084024
pushal
mov esi, section.UPX1
lea edi, [esi - 0x64000]
push edi
or ebp, 0xffffffff
jmp 0x10083e6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10083e71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10083e60
mov eax, 1
add ebx, ebx
jne 0x10083e83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10083e94
jne 0x10083eb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10083eb3
dec eax
add ebx, ebx
jne 0x10083ea0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10083e78
add ebx, ebx
jne 0x10083eaf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10083f05
xor ecx, ecx
sub eax, 3
jb 0x10083ecb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10083f3a
sar eax, 1
mov ebp, eax
jmp 0x10083ed6
add ebx, ebx
jne 0x10083ed6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10083ea4
inc ecx
add ebx, ebx
jne 0x10083ee4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10083ea4
add ebx, ebx
jne 0x10083ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10083ee6
jne 0x10083f02
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10083ee6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10083f24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10083f16
jmp 0x10083e66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10083f24
add edi, ecx
jmp 0x10083e66
pop esi
mov edi, esi
mov ecx, 0x3d5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10083f42
cmp byte [edi], 5
jne 0x10083f42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10083f47
lea edi, [esi + 0x81000]
mov eax, dword [edi]
or eax, eax
je 0x10083fb6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x849f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x84a94]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10083f74
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x84a98]
or eax, eax
je 0x10083fb0
mov dword [ebx], eax
add ebx, 4
jmp 0x10083f91
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10083fe7
cmp al, 0xef
ja 0x10083fda
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10083fbc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10083fc9
mov ebp, dword [esi + 0x84a9c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1008401b
sub esp, 0xffffff80
jmp 0x100020e0
Function at 0x1008475e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1009e2a0
mov eax, dword [0x100bd100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1009155f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100847a0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100848fc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1009e1f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100be3d0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1009315f
mov ecx, dword [esi*4 + 0x100be3d0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100848f5
cmp eax, dword [ecx + edi + 0x24]
jne 0x100848f5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100848f5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009315f
add esp, 0x14
test edx, edx
jl 0x100848f5
jg 0x1008486b
test eax, eax
jb 0x100848f5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100848f5
jl 0x10084885
cmp dword [ebp - 0x1008], eax
ja 0x100848f5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100848a3
test ebx, ebx
je 0x100848dc
cmp ecx, edi
jae 0x100848dc
mov al, byte [ecx]
cmp al, 0xd
jne 0x100848bd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100848c9
cmp byte [ecx + 1], 0xa
jne 0x100848c9
inc ecx
jmp 0x100848c9
movzx eax, al
movsx eax, byte [eax + 0x100bd370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100848a3
cmp edx, ebx
jne 0x100848a3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100848fa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1007db3c
leave
ret

Function at 0x1008e8bc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1008e8fb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1008e8fb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008e8fb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1008e8fb
cmp dword [ecx + 0x74], 0xe
jbe 0x1008e8fb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10090acb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100af2e0
push 0x100af2d8
push str.FlsAlloc
push 0x1f
call fcn.100909e7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10090aff
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a11e0]
call esi
jmp 0x10090b05
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10090b49
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100af2f0
push 0x100af2e8
push str.FlsGetValue
push 0x21
call fcn.100909e7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10090b80
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a11e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10090b88
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100af2f8
push 0x100af2f0
push str.FlsSetValue
push 0x22
call fcn.100909e7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10090bc2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100a11e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1009245d
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 + 0x100be3d0]
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 0x1009249d
cmp byte [ebx], 0xa
jne 0x1009249d
or byte [edi + eax + 0x28], 4
jmp 0x100924a2
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 0x100925a1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10092584
inc eax
cmp dl, 0xd
je 0x100924ce
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100924f4
cmp eax, ecx
jae 0x10092502
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 0x100924b6
jmp 0x100925a1
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 0x1009257f
cmp dword [ebp - 0x10], 0
je 0x1009257f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100be3d0]
test byte [eax + edi + 0x28], 0x48
je 0x10092559
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10092544
mov byte [esi], dl
jmp 0x10092555
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100be3d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100925a1
cmp byte [ebp - 1], 0xa
jne 0x10092568
cmp esi, ebx
jne 0x10092568
mov byte [esi], 0xa
jmp 0x100925a0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1009317d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100925a1
mov byte [esi], 0xd
jmp 0x100925a0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100be3d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1009259e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100925a1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret