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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016268
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x100044f8
cmp byte [edi + 0x49], 0
je 0x100044f8
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x100044ec
lea esi, [ebp - 0x2c]
call fcn.10004c50
mov dword [ebp - 4], 0
mov ebx, 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp eax, ebx
jae 0x1000444b
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x10004450
dec eax
je 0x10004454
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x100044f3
call fcn.10004a00
xor al, al
jmp 0x100044fa
mov eax, dword [ebp - 0x2c]
jmp 0x10004415
mov byte [edi + 0x49], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, edx
cmp ecx, ebx
jae 0x10004463
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x10004488
mov eax, edx
cmp ecx, ebx
jae 0x10004473
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x100044e4
cmp byte [edi + 0x49], 0
je 0x100044f0
test esi, esi
jne 0x10004406
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, eax
cmp edx, 8
jbe 0x10004515
lea esi, [eax + 8]
lea eax, [ebp - 0x2c]
call fcn.10004c00
test al, al
je 0x10004406
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x100044c1
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], ebx
jae 0x100044db
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10004406
lea esi, [ebp - 0x2c]
call fcn.10004a00
xor al, al
jmp 0x100044fa
lea esi, [ebp - 0x2c]
call fcn.10004a00
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015384
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10005420
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10005480
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x10005466
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.10015372
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x10005487
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
je 0x1000547a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100054c0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
call fcn.10005420
test al, al
jne 0x100054ce
pop esi
ret
push edi
mov edi, dword [esi + 8]
cmp edi, 8
jae 0x100054dc
pop edi
xor al, al
pop esi
ret
mov edx, dword [esi + 4]
mov eax, 0x10018de0
mov ecx, 8
sub edx, eax
push ebx
lea esp, [esp]
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0x1000555e
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x100054f0
add edi, 0xfffffff8
xor eax, eax
test edi, edi
jle 0x10005553
jmp 0x10005510
mov ecx, dword [esi + 4]
mov edx, eax
and edx, 0x1f
movsx edx, byte [edx + 0x1012f614]
and edx, 0xf
movzx edx, byte [edx + 0x10018de8]
sub byte [ecx + eax + 8], dl
lea ecx, [ecx + eax + 8]
mov ecx, dword [esi + 4]
mov edx, eax
and edx, 0xf
movzx edx, byte [edx + 0x10018de8]
xor byte [ecx + eax + 8], dl
lea ecx, [ecx + eax + 8]
mov ecx, dword [esi + 8]
inc eax
sub ecx, 8
cmp eax, ecx
jl 0x10005510
mov edi, esi
call fcn.10005570
pop ebx
pop edi
pop esi
ret
pop ebx
pop edi
xor al, al
pop esi
ret

Function at 0x10005570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [edi + 0xc]
call dword [sym.imp.MSVCR100.dll_rand]
cdq
mov ecx, 0x2710
idiv ecx
push edx
push 0x10018df8
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x102
push 2
push 0
push 7
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100055e3
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push 0
lea edx, [ebp - 4]
push edx
sub eax, 8
push eax
add ecx, 8
push ecx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x100055ea
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005600
Capabilities:
Delete file

Disassembly:
push edi
lea edi, [esi + 0xc]
mov ecx, 0x10018e1c
mov eax, edi
jmp 0x10005610
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10005630
test dl, dl
je 0x1000562c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10005630
add eax, 2
add ecx, 2
test dl, dl
jne 0x10005610
xor eax, eax
jmp 0x10005635
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000566c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1000566c
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push 0x100
push 0
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.MSVCR100.dll_memset
add esp, 0x10
pop edi
ret

Function at 0x10005730
Capabilities:
Check for time delay via gettickcount
Connect to http server
Create http request
Delete file
Send file using ftp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10134480], 0
push ebx
push esi
push edi
je 0x10005861
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x10124138]
cmp eax, 0x927c0
jb 0x1000576f
call esi
mov dword [0x10124138], eax
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0
push 1
push 0x101344c8
mov ebx, eax
movzx eax, word [0x101344a4]
push 0x101344a8
push eax
push 0x10134484
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
lea ecx, [ebp - 0x120]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x11a]
movzx eax, word [ebp - 0x11e]
movzx ecx, word [ebp - 0x120]
push edx
push eax
push ecx
lea edx, [ebp - 0x110]
push str._04d__02d__02d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.WININET.dll_FtpCreateDirectoryA]
lea ecx, [ebp - 0x110]
push ecx
lea edi, [ebp - 0x13c]
call fcn.10005a00
mov eax, dword [ebp - 0x13c]
mov edi, 0x10
cmp dword [ebp - 0x128], edi
jae 0x1000581a
lea eax, [ebp - 0x13c]
push 0
push 2
push eax
push str.image.jpeg
push esi
call dword [sym.imp.WININET.dll_FtpPutFileA]
test eax, eax
je 0x1000583b
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push str.image.jpeg
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
cmp dword [ebp - 0x128], edi
jb 0x10005861
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015384
mov esp, ebp
pop ebp
ret
Function at 0x10005880
Capabilities:
Check for time delay via gettickcount
Connect to http server
Create http request
Send file using ftp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov dword [ebp - 0x210], eax
call esi
sub eax, dword [0x10124138]
cmp eax, 0x927c0
jb 0x100058ba
call esi
mov dword [0x10124138], eax
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
movzx ecx, word [0x101344a4]
push 0
push 0
push 1
push 0x101344c8
push 0x101344a8
push ecx
mov edi, eax
push 0x10134484
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, dword [str.Tools]
push 0xfe
mov esi, eax
mov ax, word [0x10018e40]
lea ecx, [ebp - 0x102]
push 0
push ecx
mov dword [ebp - 0x108], edx
mov word [ebp - 0x104], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
push esi
call dword [sym.imp.WININET.dll_FtpCreateDirectoryA]
mov eax, dword [ebp - 0x210]
push eax
lea ecx, [ebp - 0x108]
push ecx
push str._s__s
lea edx, [ebp - 0x20c]
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x14
push 0
push 2
lea eax, [ebp - 0x20c]
push eax
push ebx
push esi
call dword [sym.imp.WININET.dll_FtpPutFileA]
test eax, eax
je 0x1000597a
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10015384
mov esp, ebp
pop ebp
ret 4

Function at 0x10005fc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10124160]
cmp eax, 0x64
jle 0x10005fe1
mov eax, 1
jmp 0x10005fe2
inc eax
push eax
mov dword [0x10124160], eax
lea eax, [ebp - 0x28]
push 0x10018ea4
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000603b
push 0x24
lea edx, [ebp - 0x28]
push edx
push 1
push eax
mov eax, dword [ebp - 0x2c]
push str.VolumeEffect
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.10015384
mov esp, ebp
pop ebp
ret
Function at 0x10006ba0
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, eax
movzx eax, byte [esi + 4]
push edi
push eax
push str.r_jj
call fcn.10012280
add esp, 4
push eax
push 0
mov ecx, 0x101241e8
call fcn.10009a20
movzx eax, byte [esi + 4]
add esp, 0xc
cmp eax, 0xb
ja case.default.0x10006bd0
jmp dword [eax*4 + 0x10006d94]
mov ecx, 0xe
push 0x1388
call fcn.1000a170
push eax
push 2
mov eax, 0x10134778
call fcn.10012100
add esp, 0xc
pop edi
pop esi
pop ebx
ret
mov ecx, 0xf
jmp 0x10006bdc
mov ecx, 0x10
jmp 0x10006bdc
mov ecx, 0x11
jmp 0x10006bdc
mov ecx, 0x12
jmp 0x10006bdc
mov ecx, 0x13
jmp 0x10006bdc
mov ecx, 0x14
jmp 0x10006bdc
mov ecx, 0x16
jmp 0x10006bdc
mov ecx, 0x18
jmp 0x10006bdc
mov ecx, 0x19
jmp 0x10006bdc
push 0x7d0
mov ecx, 0x64
jmp 0x10006be1
mov ecx, 0x15
call fcn.1000a170
mov esi, eax
push esi
push 1
push 2
push 0x1001e078
call fcn.10012280
add esp, 4
push eax
push 0
mov ecx, 0x101241e8
call fcn.10009a20
add esp, 0x14
mov eax, dword [0x1013452c]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_UnregisterClassA]
je 0x10006cab
push 0
push 0
push 0x10
push eax
call edi
mov ecx, dword [0x1013521c]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x1013452c], 0
call ebx
mov eax, dword [0x10134654]
test eax, eax
je 0x10006cd6
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x1013521c]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x10134654], 0
call ebx
mov eax, dword [0x1013477c]
test eax, eax
je 0x10006d01
push 0
push 0
push 0x10
push eax
call edi
mov edx, dword [0x1013521c]
mov eax, dword [str.SPLASH]
push edx
push eax
mov dword [0x1013477c], 0
call ebx
push 0x2b39c0
mov eax, esi
push 0x6a
mov esi, 0x10134778
call fcn.100117f0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push esi
push 0x10012060
push 0
push 0
mov dword [0x10134780], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x10134780]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x10134780]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1013477c]
test eax, eax
je 0x10006d8d
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x1013521c]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x1013477c], 0
call ebx
call fcn.10011c90
mov edi, edi
imul byte [ebx]
adc bh, dl
imul eax, dword [eax], 0x10
cli
imul eax, dword [eax], 16
add dword [eax + eax + 0x10], ebp
or byte [eax + eax + 16], ch
invalid
Function at 0x10007230
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, 0x15
call fcn.1000a170
push eax
push 1
push 2
push 0x1001e078
mov dword [ebp - 4], eax
call fcn.10012280
add esp, 4
push eax
xor esi, esi
push esi
mov ecx, 0x101241e8
call fcn.10009a20
mov eax, dword [0x1013452c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_UnregisterClassA]
add esp, 0x14
cmp eax, esi
je 0x10007298
push esi
push esi
push 0x10
push eax
call edi
mov eax, dword [0x1013521c]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x1013452c], esi
call ebx
mov eax, dword [0x10134654]
cmp eax, esi
je 0x100072bd
push esi
push esi
push 0x10
push eax
call edi
mov edx, dword [0x1013521c]
mov eax, dword [str.SPLASH]
push edx
push eax
mov dword [0x10134654], esi
call ebx
mov eax, dword [0x1013477c]
cmp eax, esi
je 0x100072e3
push esi
push esi
push 0x10
push eax
call edi
mov ecx, dword [0x1013521c]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x1013477c], esi
call ebx
mov eax, dword [ebp - 4]
push 0x2b39c0
push 0x6a
mov esi, 0x10134778
call fcn.100117f0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push esi
push 0x10012060
push 0
push 0
mov dword [0x10134780], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [0x10134780]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x10134780]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1013477c]
test eax, eax
je 0x1000736f
push 0
push 0
push 0x10
push eax
call edi
mov edx, dword [0x1013521c]
mov eax, dword [str.SPLASH]
push edx
push eax
mov dword [0x1013477c], 0
call ebx
call fcn.10011c90
int3
Function at 0x10008d90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10008e06
mov eax, dword [ebp + 8]
mov dword [0x1013521c], eax
call fcn.1000ff10
call fcn.10010020
mov ecx, 0x10023e78
call fcn.10001030
push 0
push 0
push 0
push 0x10002dd0
push 0
push 0
mov dword [0x10135348], 0x10019ed0
mov dword [0x10135354], 4
mov dword [0x1013534c], 0x10019ee4
mov dword [0x10135350], 1
mov dword [0x10135358], 0
mov dword [0x1013535c], 0x3a7
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10008fe0
Capabilities:
Check mutex on windows

Disassembly:
push edi
xor edi, edi
mov eax, 1
cmp dword [0x1012416c], edi
jle 0x1000904a
push ebx
xor ebx, ebx
push esi
mov eax, dword [0x10124170]
add eax, ebx
cmp dword [eax + 0x14], 0x10
jb 0x10009003
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10009039
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add ebx, 0x1c
cmp edi, dword [0x1012416c]
jl 0x10008ff4
pop esi
pop ebx
mov eax, 1
pop edi
ret
inc edi
mov dword [0x10124184], esi
pop esi
mov dword [0x10124180], edi
xor eax, eax
pop ebx
pop edi
ret
Function at 0x100094f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x1012418c]
mov dword [ebp - 0x48], eax
xor al, al
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x25], al
cmp edi, dword [0x10124190]
je 0x1000960e
mov ebx, dword [ebp - 0x38]
mov ecx, 4
lea edx, [ebp - 0x24]
sub ecx, edx
mov dword [ebp - 0x44], ecx
cmp byte [edi], 0
jne 0x100095df
test al, al
jne 0x10009565
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
push ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x30]
lea ebx, [ebp - 0x2c]
call fcn.10009670
test al, al
je 0x1000960e
mov ebx, dword [ebp - 0x38]
mov byte [ebp - 0x25], 1
mov esi, dword [edi + 4]
mov eax, dword [ebx + 0x34]
mov edx, esi
sub edx, eax
push edx
push eax
push ebx
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
test eax, eax
je 0x100095dc
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
push 0
sub ecx, dword [ebx + 0x34]
push 0
add ecx, esi
mov esi, dword [ebp - 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100095dc
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100095dc
mov edx, dword [ebp - 0x44]
mov ecx, 0x20
lea eax, [ebp - 0x24]
lea edx, [edx + edi + 4]
cmp ecx, 4
jb 0x10009623
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x100095dc
sub ecx, 4
add eax, 4
jmp 0x100095c8
mov al, byte [ebp - 0x25]
add edi, 0x48
cmp edi, dword [0x10124190]
jne 0x10009533
test al, al
je 0x1000960e
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015384
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x34]
lea esi, [edi + 0x28]
mov edi, dword [ebp - 0x40]
mov ecx, 8
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.10015384
mov esp, ebp
pop ebp
ret 4
Function at 0x10009670
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 1
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0xc]
push closesocket
push eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100096c3
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x100096d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015384
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push 0
push eax
push ecx
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x1000970d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015384
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x1000974b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10009744
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10009744
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x1000976b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015384
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x44]
mov dword [ebx], esi
mov dword [edx], edi
mov edx, dword [ebp - 0x3c]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.10015384
mov esp, ebp
pop ebp
ret 8
Function at 0x10009900
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10124400]
push ebx
push esi
push edi
test eax, eax
js 0x10009a0d
cmp eax, 1
jge 0x10009a0d
mov esi, eax
imul esi, esi, 0x214
add esi, 0x101241ec
push 0x100190ac
inc eax
lea ebx, [esi + 4]
push 0x100
mov dword [0x10124400], eax
push ebx
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x10009a0d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push ebx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.log
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x100099e8
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015384
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10009a0d
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015384
mov esp, ebp
pop ebp
ret