joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec53
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
jg 0x40ec32
inc ebp
int 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040e942
sal byte [ecx], 0xf9
mov esi, 0x50c0458d
call fcn.0040e952
push eax
push esi
push dword [ebp + 8]
call fcn.0040e907
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0040e942
test byte [ebx - 0x4c], ah
xor al, 0x8d
inc ebp
call 0x51294a38
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0040e952
push eax
push esi
push dword [ebp + 8]
call fcn.0040e907
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
invalid
inc ebp

Function at 0x40ede5
Capabilities:
Contain obfuscated stackstrings
Inspect section memory permissions

Disassembly:
adc byte [ecx - 0x3a], 0x45
xor dword [ebx - 0x3a], 0xc6628245
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
invalid
inc ebp
invalid

Function at 0x416590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4165bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4165bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4190b8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4190c0
push ebx
push esi
mov eax, 0x418ff8
call fcn.0040642c
xor eax, eax
push ebp
push 0x4192b5
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
push 0x42c260
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x14]
mov edx, 0x42c260
mov ecx, pe_nt_image_headers32
call fcn.0040487c
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
mov eax, 0x4192cc
call fcn.004175fc
mov edx, dword [ebp - 0x18]
pop eax
call fcn.004048d4
mov eax, dword [ebp - 0x14]
call fcn.0040b460
test al, al
je 0x419170
push 0
lea eax, [ebp - 0x1c]
mov edx, 0x42c260
mov ecx, pe_nt_image_headers32
call fcn.0040487c
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, 0x4192cc
call fcn.004175fc
mov edx, dword [ebp - 0x20]
pop eax
call fcn.004048d4
mov eax, dword [ebp - 0x1c]
call fcn.00404acc
push eax
call sub.kernel32.dll_WinExec
call fcn.00417980
jmp 0x41929a
lea eax, [ebp - 0x24]
mov edx, 0x42c260
mov ecx, pe_nt_image_headers32
call fcn.0040487c
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
call fcn.00417738
lea eax, [ebp - 0x28]
mov edx, 0x4192dc
call fcn.004048d4
mov edx, dword [ebp - 0x28]
pop eax
call fcn.00404a18
je 0x41921b
lea eax, [ebp - 0x2c]
mov edx, 0x42c260
mov ecx, pe_nt_image_headers32
call fcn.0040487c
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
call fcn.00417738
lea eax, [ebp - 0x30]
mov edx, 0x4192f0
call fcn.004048d4
mov edx, dword [ebp - 0x30]
pop eax
call fcn.00404a18
je 0x419295
lea eax, [ebp - 0x34]
mov edx, 0x42c260
mov ecx, pe_nt_image_headers32
call fcn.0040487c
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
call fcn.00417738
lea eax, [ebp - 0x38]
mov edx, 0x41930c
call fcn.004048d4
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00404a18
je 0x419272
jmp 0x419166
call fcn.00418320
call fcn.00418a04
mov eax, 0x419324
call fcn.00417c74
mov eax, 0x419330
call fcn.00417c74
mov eax, 0x41933c
call fcn.00417c74
mov eax, 0x419324
call fcn.00418cb8
mov eax, 0x419330
call fcn.00418cb8
mov eax, 0x41933c
call fcn.00418cb8
mov edx, 0x419348
mov eax, 0x41935c
call fcn.00417f98
jmp 0x41929a
xor esi, esi
mov ebx, 0x41a404
mov eax, dword [ebx]
call fcn.0041747c
inc esi
add ebx, 4
cmp esi, 0x40
jne 0x419279
push 0x3e7
call sub.kernel32.dll_Sleep_1
jmp 0x419272
call fcn.00418b3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4192bc
lea eax, [ebp - 0x38]
mov edx, 0xa
call fcn.00404630
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10031a69
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10031aa8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10031aa8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10031aa8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10031aa8
cmp dword [ecx + 0x74], 0xe
jbe 0x10031aa8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003469b
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 0x10034738
push ebx
push esi
call fcn.10034664
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.100345f8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100346e5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10034737
push edi
push eax
call fcn.100355c4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10034705
call fcn.10033140
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10034736
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100345f8
add esp, 0x20
test eax, eax
jne 0x10034724
push edi
call fcn.10033140
jmp 0x1003472c
push ebx
call fcn.10033140
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 0x100349a5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003da10
push 0x1003da08
push str.FlsAlloc
push 0x1f
call fcn.100348c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100349d9
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b174]
call esi
jmp 0x100349df
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10034a23
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003da20
push 0x1003da18
push str.FlsGetValue
push 0x21
call fcn.100348c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10034a5a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003b174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10034a62
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003da28
push 0x1003da20
push str.FlsSetValue
push 0x22
call fcn.100348c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10034a9c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1003b174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10039ff0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003a01d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003a01d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4038f7
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040f6], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404650], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045e4], eax
mov dword [0x4040ee], eax
mov dword [0x4045d0], 0x30
mov dword [0x4045d4], 2
jmp 0x40393c
mov dword [0x4045d8], 0x40321a
mov dword [0x4045dc], 0
mov dword [0x4045e0], 0
mov dword [0x4045f8], 0x40454d
mov dword [0x4045f0], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045e8], eax
mov dword [0x4045fc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045ec], eax
push 0x4045d0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040ee]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.lofegaswer_huijd
push str.lisclass
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404648], eax
push 5
push dword [0x404648]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404648]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404600]
jmp 0x403a10
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a02
mov eax, dword [0x404608]
jmp 0x403a2b
call 0x402c21
ret
Function at 0x4012c0
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0
push 0x20000000
push 0x45b458
push 0x45b390
push 0
mov dword [0x45b520], ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x4012f8
pop esi
ret
push 1
push str.5F9A4315_599C_4B39_A3D3_DCAE0D2FF382
push esi
call dword [sym.imp.USER32.dll_SetPropW]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.004014a0
mov eax, 1
pop esi
ret

Function at 0x402d60
Capabilities:
Get common file path

Disassembly:
mov ecx, 0x45ca18
lea edx, [ecx + 2]
jmp 0x402d70
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402d70
sub ecx, edx
sar ecx, 1
jne 0x402db8
push 1
push 0x1a
push 0x45ca18
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x402db3
push str.XiaomiMiPhoneManager_
push 0x104
push 0x45ca18
call fcn.00427c10
add esp, 0xc
mov eax, 0x45ca18
ret
call fcn.00402c00
mov eax, 0x45ca18
ret

Function at 0x4035e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x458008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x40360e
push str.lpPath___NULL
lea edx, [esi + 0x18]
call fcn.00403f70
add esp, 4
xor eax, eax
mov dword [edi], 0
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov dword [edi + 4], esi
mov dword [edi + 8], 0
call fcn.004344b0
add esp, 0xc
test esi, esi
je 0x40367a
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403645
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jb 0x40367a
cmp word [esi + 2], 0x3a
je 0x40374e
push 0x44fbb8
push esi
call fcn.00428061
add esp, 8
cmp eax, esi
je 0x40374e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004344b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x20c]
call fcn.00403d70
test eax, eax
jne 0x4036c9
push str.MiFileUtil::IsAbsolutePath_szCurrentDirectory_
lea edx, [eax + 0x23]
call fcn.00403f70
add esp, 4
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4036d2
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 2]
cmp ecx, 0x208
jae 0x403762
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403703
sub ecx, edx
mov eax, 0x5c
sar ecx, 1
push esi
mov word [ebp + ecx*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.00402350
lea eax, [ebp - 0x414]
add esp, 0x10
cmp eax, esi
je 0x40374e
mov ecx, eax
call fcn.00403e60
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00426319
mov esp, ebp
pop ebp
ret 0xc
call fcn.00427ebb
int3
Function at 0x4037b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
sub esp, 8
push ecx
lea ecx, [ebp - 0xc]
call fcn.004035e0
mov esi, eax
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x4037f7
mov ecx, dword [esi]
test ecx, ecx
jne 0x4037f7
mov ecx, dword [esi + 4]
call fcn.00403ce0
mov ecx, dword [esi + 4]
test eax, eax
jne 0x4037e7
mov dword [esi + 8], ecx
jmp 0x4037f7
call fcn.00403e60
mov ecx, eax
mov dword [esi], eax
call fcn.00403cb0
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], 0
test eax, eax
je 0x40381e
push eax
call fcn.00427bd8
add esp, 4
cmp ebx, 0xffffffff
je 0x403833
test bl, 0x10
jne 0x403833
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403840
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.004037b0
test eax, eax
jne 0x40385c
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
sub esp, 8
lea ecx, [ebp - 0xc]
push esi
call fcn.004035e0
mov esi, eax
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x40389b
mov ecx, dword [esi]
test ecx, ecx
jne 0x40389b
mov ecx, dword [esi + 4]
call fcn.00403ce0
mov ecx, dword [esi + 4]
test eax, eax
jne 0x40388b
mov dword [esi + 8], ecx
jmp 0x40389b
call fcn.00403e60
mov ecx, eax
mov dword [esi], eax
call fcn.00403cb0
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
test ecx, ecx
je 0x4038c2
push ecx
call fcn.00427bd8
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4038d0
Capabilities:
Clear file content
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
test edi, edi
je 0x4039c8
mov esi, edi
lea ecx, [esi + 2]
lea ebx, [ebx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4038f0
sub esi, ecx
sar esi, 1
je 0x4039c8
test edx, edx
je 0x4039c8
mov ecx, edi
call fcn.00403c10
cmp eax, 1
jne 0x4039c2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 4
push 0
push eax
push 0x40000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x403970
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x403959
test al, 1
je 0x403959
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call ebx
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
setne bl
cmp ebx, 1
jne 0x4039b3
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebx, eax
cmp ebx, 1
jne 0x4039b3
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4039b1
cmp dword [ebp - 4], edi
jne 0x4039b1
jmp 0x4039b3
xor ebx, ebx
cmp esi, 0xffffffff
je 0x4039bf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4039d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, edx
test ecx, ecx
je 0x403a95
mov esi, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4039e5
sub esi, edx
sar esi, 1
je 0x403a95
test edi, edi
je 0x403a95
cmp dword [edi], 0
jne 0x403a95
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
mov esi, eax
cmp esi, 0xffffffff
setne bl
cmp ebx, 1
jne 0x403a80
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [ebx + 1]
push ecx
call fcn.00427a9b
add esp, 4
mov dword [edi], eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push 0
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403a7e
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jne 0x403a7e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403a77
mov dword [eax], ecx
mov ebx, 1
jmp 0x403a80
xor ebx, ebx
cmp esi, 0xffffffff
je 0x403a8c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403aa0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
sub esp, 8
push ecx
lea ecx, [ebp - 0xc]
call fcn.004035e0
mov esi, eax
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x403ae7
mov ecx, dword [esi]
test ecx, ecx
jne 0x403ae7
mov ecx, dword [esi + 4]
call fcn.00403ce0
mov ecx, dword [esi + 4]
test eax, eax
jne 0x403ad7
mov dword [esi + 8], ecx
jmp 0x403ae7
call fcn.00403e60
mov ecx, eax
mov dword [esi], eax
call fcn.00403cb0
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], 0
test eax, eax
je 0x403b0e
push eax
call fcn.00427bd8
add esp, 4
cmp ebx, 0xffffffff
je 0x403b23
test bl, 0x10
je 0x403b23
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403b30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x403bfa
mov edx, ebx
lea ecx, [edx + 2]
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403b50
sub edx, ecx
sar edx, 1
je 0x403bfa
push esi
push edi
sub esp, 8
lea ecx, [ebp - 0x14]
push ebx
call fcn.004035e0
lea ecx, [ebp - 0x14]
call fcn.00403770
mov edi, eax
mov esi, edi
cmp word [edi], 0
je 0x403bc4
mov ebx, 0x2f
lea ebx, [ebx]
movzx eax, word [esi]
cmp eax, 0x5c
je 0x403b9d
cmp eax, 0x2f
jne 0x403bb8
xor eax, eax
mov ecx, edi
mov word [esi], ax
call fcn.00403aa0
test eax, eax
jne 0x403bb5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], bx
add esi, 2
cmp word [esi], 0
jne 0x403b90
mov ebx, dword [ebp - 4]
mov ecx, ebx
call fcn.00403aa0
test eax, eax
je 0x403bd6
mov esi, 1
jmp 0x403be1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x403bf1
push ecx
call fcn.00427bd8
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c6a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
mov eax, dword [0x458008]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
push edi
lea edi, [esi + 0x10]
je 0x40c7f1
cmp byte [0x45b93c], 0
je 0x40c7f1
push 0x104
lea eax, [esp + 0x84]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x80]
push 0x5c
push eax
call fcn.00427905
add esp, 8
test eax, eax
je 0x40c709
xor ecx, ecx
mov word [eax + 2], cx
push str.debug_message.exe
lea eax, [esp + 0x84]
push 0x104
push eax
call fcn.00427c10
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x40c72b
mov esi, dword [esi]
mov eax, dword [edi]
lea edx, [esp + 8]
lea ecx, [esp + 0x68]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
call fcn.00407140
cmp dword [esp + 0x78], 0
je 0x40c7de
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004344b0
add esp, 0xc
mov dword [esp + 0x20], 0x44
cmp dword [esp + 0x7c], 8
lea ecx, [esp + 0x10]
lea eax, [esp + 0x68]
cmovae eax, dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40c7bd
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
jmp 0x40c7de
cmp dword [esp + 0x7c], 8
lea eax, [esp + 0x68]
push 0x40010
cmovae eax, dword [esp + 0x6c]
push str.Fatal_error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x7c], 8
jb 0x40c7f1
push dword [esp + 0x68]
call fcn.00426468
add esp, 4
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
xor ecx, esp
call fcn.00426319
mov esp, ebp
pop ebp
ret
Function at 0x40e590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov esi, edx
test edi, edi
je 0x40e5bb
call fcn.004136a0
cmp eax, 1
jl 0x40e5bb
mov dword [ebp - 4], 0x10000
jmp 0x40e5bd
xor edi, edi
push 8
call fcn.0042646d
add esp, 4
mov ebx, eax
push 0
push dword [ebp - 4]
mov dword [ebx], esi
mov esi, dword [ebp + 8]
test esi, esi
push ebx
push 0x40e500
push edi
setne cl
push 0
mov byte [ebx + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40e600
push ebx
call fcn.00426468
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40e616
mov dword [esi], eax
mov al, 1
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ee00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445e22
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x458008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ebx, [esi + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
call fcn.00410070
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004100a0
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 2
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
call fcn.004100d0
mov dword [esi + 0x34], eax
lea eax, [esi + 0x3c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 4
lea edi, [esi + 0x54]
push 8
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.0042646d
add esp, 4
test eax, eax
jne 0x40eef1
call fcn.0042622f
mov dword [edi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi]
mov dword [eax], edi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 5
mov dword [esi + 0x6c], 0xffffffff
cmp ebx, eax
je 0x40ef22
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00402770
mov ecx, esi
call fcn.0040f100
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4