joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c323
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10014008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x1000c37b
cmp byte [esi + 0x3d], bl
je 0x1000c37b
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000c3b5
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x1000c38c
sub eax, 1
je 0x1000c38f
dec eax
sub eax, 1
jne 0x1000c3b5
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c62f
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000c3ad
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1000c3b5
cmp byte [esi + 0x3d], bl
sete al
jmp 0x1000c37d
xor al, al
jmp 0x1000c37d
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x417037
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x41703d
pop eax
sub eax, 0x3d
push eax
lea edi, [eax - 0x16000]
push edi
add word [edi + 0x1559c], 0
lea esi, [eax + 0x1ec]
or ebp, 0xffffffff
xor ebx, ebx
jmp 0x417066
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417060
mov eax, 1
add ebx, ebx
jne 0x417083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x417078
jne 0x417094
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417078
xor ecx, ecx
sub eax, 3
jb 0x417102
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41711e
mov ebp, eax
add ebx, ebx
jne 0x4170b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4170c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4170e4
inc ecx
add ebx, ebx
jne 0x4170d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x4170c5
jne 0x4170e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4170c5
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x417108
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4170f4
jmp 0x417066
mov eax, ebp
jmp 0x4170a8
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x417108
add edi, ecx
jmp 0x417066
pop esi
pop ebp
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0x214
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41712f
cmp byte [edi], 6
jne 0x41712f
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 eax, ebx
loop 0x417134
pop edi
mov eax, dword [edi]
or eax, eax
je 0x417199
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15000]
add ebx, esi
push eax
add edi, 8
call dword [ebp]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41715c
push edx
mov ecx, edi
jns 0x417189
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [ebp + 4]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x417176
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4171ca
cmp al, 0xef
ja 0x4171bd
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41719f
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4171ac
popal
jmp 0x409b33
Function at 0x10005a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push esi
push edi
test ecx, ecx
jg 0x10005a9b
jl 0x10005a8e
test eax, eax
jne 0x10005a9b
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10005ab6
push ecx
push eax
push dword [ebp + 8]
mov ecx, ebx
call fcn.10006db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, eax
mov ecx, ebx
mov dword [esp + 0x10], esi
call fcn.10009120
mov dword [esp + 0x14], eax
test eax, eax
je 0x10005b08
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.10005b80
add esp, 8
mov ecx, ebx
mov esi, dword [eax]
push esi
call fcn.100091e0
mov edi, dword [ebp + 8]
push eax
push edi
call fcn.10009b70
sub dword [esp + 0x1c], esi
add esp, 0xc
mov ecx, ebx
add edi, esi
push esi
call fcn.100091a0
mov esi, dword [esp + 0x10]
jmp 0x10005b0b
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x10005b67
mov ecx, ebx
call fcn.10008910
mov esi, dword [esp + 0x10]
cmp esi, 0xfff
jbe 0x10005b4e
push dword [ebx + 0x4c]
push 0xfff
push 1
push edi
call fcn.1003cab3
mov esi, dword [esp + 0x20]
add esp, 0x10
sub esi, eax
add edi, eax
mov dword [esp + 0x10], esi
cmp eax, 0xfff
jne 0x10005b67
cmp esi, eax
ja 0x10005b24
test esi, esi
je 0x10005b67
push dword [ebx + 0x4c]
push esi
push 1
push edi
call fcn.1003cab3
mov esi, dword [esp + 0x20]
add esp, 0x10
sub esi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, esi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001bce0
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov ebx, ecx
push str..pipelunar_monitor_pipe
mov dword [0x100727ec], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001bd32
push 0
push 0
push 4
push 0x100727f4
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 4
push 0x10072800
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.1002c110
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1002c5f0
push 0x1001be20
push 0x10072838
call fcn.1002b990
pop edi
pop ebx
jmp fcn.1002c170

Function at 0x1001c7b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057995
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10070090]
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 eax, dword [0x100727e8]
test eax, eax
je 0x1001c7f8
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWait]
mov dword [0x100727e8], 0
mov eax, dword [0x100727fc]
test eax, eax
je 0x1001c808
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
call fcn.1002a670
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000f3e0
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.1001d870
lea ecx, [ebp - 0x2c]
call fcn.10003fb0
test al, al
je 0x1001c8c6
lea ecx, [ebp - 0x2c]
call fcn.1001bb30
test al, al
je 0x1001c8c6
lea ecx, [ebp - 0x60]
call fcn.10004e10
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.10006200
test al, al
je 0x1001c8af
mov byte [ebp - 4], 2
call fcn.100061f0
push 0x100654c4
mov ecx, eax
call fcn.1000f470
sub esp, 0x10
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.1001d2c0
push eax
call fcn.1001d8e0
lea ecx, [ebp - 0x44]
call fcn.10007650
lea ecx, [ebp - 0x60]
call fcn.10004f50
jmp 0x1001c8df
movzx eax, byte [0x10068834]
push eax
call fcn.1001d210
lea ecx, [ebp - 0x60]
call fcn.10004f50
jmp 0x1001c8df
lea ecx, [ebp - 0x2c]
call fcn.1001bbc0
push 2
lea ecx, [ebp - 0x2c]
call fcn.10003200
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x10
push 0
lea ecx, [ebp - 0x2c]
call fcn.10003200
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [0x100727fc], eax
cmp eax, 0xffffffff
je 0x1001c913
push 8
push 0xffffffffffffffff
push 0
push 0x1001c940
push eax
push 0x100727e8
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
lea ecx, [ebp - 0x2c]
call fcn.100032b0
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.1002eca1
mov esp, ebp
pop ebp
ret
Function at 0x1001ea50
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057d5b
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x10070090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], edx
mov edi, ecx
mov eax, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x7c], eax
call fcn.1001f930
lea ecx, [ebp - 0x184]
mov dword [ebp - 4], 0
call fcn.10021620
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x70]
push eax
call fcn.1001b8f0
mov edx, eax
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.10021890
mov edx, str.___ExportLevel__
mov ecx, eax
call fcn.100218c0
mov ecx, dword [ebp - 0x78]
mov esi, eax
lea eax, [ebp - 0x58]
push eax
call fcn.1001b8f0
mov edx, eax
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.10021890
mov edx, 0x1006659c
mov ecx, eax
call fcn.100218c0
mov ecx, dword [ebp - 0x7c]
mov esi, eax
lea eax, [ebp - 0x40]
push eax
call fcn.1001b8f0
mov edx, eax
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.10021890
mov edx, 0x100663bc
mov ecx, eax
call fcn.100218c0
push ecx
mov ecx, eax
call fcn.1001fb30
push dword [ebp + 0xc]
mov ecx, eax
call fcn.1001fa10
lea ecx, [ebp - 0x40]
call fcn.10007370
lea ecx, [ebp - 0x58]
call fcn.10007370
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.10007370
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x194]
call fcn.1001f8e0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.1001fbc0
lea ecx, [ebp - 0x28]
mov esi, dword [eax]
lea eax, [ebp - 0x78]
push eax
call fcn.1001fc00
push ecx
push esi
lea ecx, [ebp - 0xa0]
push dword [eax]
call fcn.10021b90
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x80], 0
call fcn.1001f040
lea eax, [ebp - 0x94]
mov dword [ebp - 0xe4], 0x44
push eax
lea eax, [ebp - 0xe4]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xa0]
movlpd qword [ebp - 0xe0], xmm0
movlpd qword [ebp - 0xd8], xmm0
movlpd qword [ebp - 0xd0], xmm0
movlpd qword [ebp - 0xc8], xmm0
movlpd qword [ebp - 0xc0], xmm0
movlpd qword [ebp - 0xb8], xmm0
movlpd qword [ebp - 0xb0], xmm0
movlpd qword [ebp - 0xa8], xmm0
movups xmmword [ebp - 0x94], xmm0
call fcn.1000e8f0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1001ec29
mov byte [ebp - 0x71], al
jmp 0x1001ec6b
push 0xffffffffffffffff
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x94]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x90]
call esi
cmp dword [ebp - 0x84], 0
sete byte [ebp - 0x71]
lea ecx, [ebp - 0xa0]
call fcn.1001f080
lea ecx, [ebp - 0x28]
call fcn.10007370
lea ecx, [ebp - 0x194]
call fcn.1001ecb0
mov al, byte [ebp - 0x71]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002eca1
mov esp, ebp
pop ebp
ret
Function at 0x1002a840
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1002a9f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1002a90d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1002a88a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10070004]
ja 0x1002a88a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002a85a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100309a0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1002a8b0
jmp 0x1002a90d
cmp dword [ebp - 0x14], 0x10000
jne 0x1002a8f3
cmp dword [ebp - 0x18], 0x10000
jb 0x1002a8f3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002a8e6
mov eax, dword [ebp - 8]
jmp 0x1002a90f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002a908
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1002a9f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002a85a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1002a920
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1002aa20
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1002a9e5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1002a965
mov eax, dword [ebp - 4]
cmp eax, dword [0x10070004]
ja 0x1002a965
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002a935
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100309a0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1002a98b
jmp 0x1002a9e5
cmp dword [ebp - 0x14], 0x10000
jne 0x1002a9ce
cmp dword [ebp - 0x18], 0x10000
jb 0x1002a9ce
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002a9c1
mov eax, dword [ebp - 8]
jmp 0x1002a9e7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002a9e0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1002aa20
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002a935
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10041073
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005d818
push 0x1005d810
push str.FlsAlloc
push 0x1f
call fcn.10046b57
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10046d20
push dword [ebp + 8]
mov ecx, esi
call dword [0x100591e4]
call esi
jmp 0x10046d26
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10046d6a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005d828
push 0x1005d820
push str.FlsGetValue
push 0x21
call fcn.10046b57
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10046da1
push dword [ebp + 8]
mov ecx, esi
call dword [0x100591e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10046da9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005d830
push 0x1005d828
push str.FlsSetValue
push 0x22
call fcn.10046b57
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10046de3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100591e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10047584
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1002fde0
mov eax, dword [0x10070090]
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.10041f22
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100475c6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10047722
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10055740
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 + 0x10072388]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10048d72
mov ecx, dword [esi*4 + 0x10072388]
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 0x1004771b
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004771b
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 0x1004771b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10048d72
add esp, 0x14
test edx, edx
jl 0x1004771b
jg 0x10047691
test eax, eax
jb 0x1004771b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004771b
jl 0x100476ab
cmp dword [ebp - 0x1008], eax
ja 0x1004771b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100476c9
test ebx, ebx
je 0x10047702
cmp ecx, edi
jae 0x10047702
mov al, byte [ecx]
cmp al, 0xd
jne 0x100476e3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100476ef
cmp byte [ecx + 1], 0xa
jne 0x100476ef
inc ecx
jmp 0x100476ef
movzx eax, al
movsx eax, byte [eax + 0x10070320]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100476c9
cmp edx, ebx
jne 0x100476c9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10047720
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002eca1
leave
ret
Function at 0x1004820a
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 + 0x10072388]
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 0x1004824a
cmp byte [ebx], 0xa
jne 0x1004824a
or byte [edi + eax + 0x28], 4
jmp 0x1004824f
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 0x1004834e
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10048331
inc eax
cmp dl, 0xd
je 0x1004827b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100482a1
cmp eax, ecx
jae 0x100482af
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 0x10048263
jmp 0x1004834e
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 0x1004832c
cmp dword [ebp - 0x10], 0
je 0x1004832c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10072388]
test byte [eax + edi + 0x28], 0x48
je 0x10048306
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100482f1
mov byte [esi], dl
jmp 0x10048302
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10072388]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004834e
cmp byte [ebp - 1], 0xa
jne 0x10048315
cmp esi, ebx
jne 0x10048315
mov byte [esi], 0xa
jmp 0x1004834d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10048d90
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004834e
mov byte [esi], 0xd
jmp 0x1004834d
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10072388]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004834b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004834e
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret