joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41963a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push 0x4333bc
push dword [esp + 0x10]
push dword [0x440060]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x419730
push ebx
push esi
push dword [0x440060]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x41968d
push esi
push dword [0x440060]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41968d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x419694
xor eax, eax
jmp 0x41972f
push ebp
push edi
push ebx
xor ebp, ebp
push 2
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x419729
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x419722
push ebx
push esi
push eax
call fcn.0041ea80
add esp, 0xc
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x18]
push eax
push ebp
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41971b
push ebp
push dword [esp + 0x1c]
call fcn.004195cf
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
je 0x41971b
mov ecx, dword [esi + 8]
mov dword [esi + 8], ebp
test ecx, ecx
jne 0x419713
push 0xffffff
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x419713
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4

Function at 0x419ca1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041d940
cmp word [0x4485fa], 0
je 0x419d3d
push esi
push 6
push dword [0x43d5f8]
mov esi, 0x4485fa
push esi
call fcn.0040b943
push eax
call fcn.00411432
test eax, eax
jne 0x419d3c
push 0x4475f8
call fcn.00419a8d
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.0040fab1
lea eax, [ebp - 0x1024]
push eax
call fcn.00422b33
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.0041e920
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419d99
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43d610], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x419de4
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x45de30], ax
xor eax, eax
mov word [0x45de32], ax
mov dword [0x43d610], 0x45de30
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f980
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43d600
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x419ffc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041d940
cmp byte [0x449600], 0
je 0x41a0aa
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0041b482
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a0aa
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a0a1
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x41a085
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040fab1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x41a156
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041d940
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41a171
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x41a17e
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x41a241
movzx eax, word [esi]
test ax, ax
je 0x41a241
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x41a1cb
test edi, edi
je 0x41a1d5
test ebx, ebx
jne 0x41a1d5
test ecx, ecx
je 0x41a1c7
mov byte [ecx], 1
mov ebx, ebp
jmp 0x41a1ec
cmp eax, 0xd
je 0x41a1ff
cmp eax, 0xa
je 0x41a202
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x41a1fa
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x41a1ad
jmp 0x41a202
mov byte [edx], 1
jmp 0x41a202
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x41a23b
mov word [edi], ax
test ebx, ebx
je 0x41a23b
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040fab1
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x41a243
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x41a24e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x41a29d
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x41a2a5
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41c6a0
Capabilities:
Hide graphical window

Disassembly:
and dword [0x4475dc], 0
push 1
push dword [esp + 8]
mov byte [0x4475d0], 1
mov byte [0x4475d1], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401294
cmp dword [0x4475e4], 0
jne 0x41c6e0
cmp byte [0x4475d6], 0
je 0x41c6e9
cmp dword [0x4475cc], 0
jne 0x41c6fc
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41c7fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041d940
cmp byte [0x449600], 0
je 0x41c88b
cmp word [0x449602], 0
je 0x41c88b
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x449602
call fcn.0041b482
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41c88a
push dword [ebp + 8]
call fcn.00422b33
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41c891
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041d940
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040f835
mov esi, eax
test esi, esi
je 0x41c8e9
movzx ecx, word [esi]
push ecx
jmp 0x41c8d4
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040f94c
test al, al
jne 0x41c8cd
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4010a0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x43c130
push 0x67
push esi
call edi
push 0x64
push 0x43c068
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401250
mov eax, dword [ebp + 0x10]
mov edx, 0x43cc38
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4010f0
call fcn.00403c90
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
mov dword [0x438f90], eax
call edi
call fcn.004015f0
test eax, eax
je 0x40112c
call fcn.00403330
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.004020b0
add esp, 4
test eax, eax
jne 0x40114f
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.004155fc
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00417c50
mov eax, dword [0x43c880]
add esp, 0xc
test eax, eax
jbe 0x4011a1
cmp word [0x43c884], 0
jbe 0x4011a1
push eax
mov esi, 0x4394d8
call fcn.00403c10
mov dx, word [0x43c884]
add esp, 4
mov word [0x4394e8], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x432bc8
mov edx, 0x43ce40
call fcn.00403310
call fcn.00402b50
lea esi, [esp + 0x10]
call fcn.004034d0
push 0x432be0
mov edx, esi
push 0x104
push edx
call fcn.004157f4
add esp, 0x14
push 0x43ce40
mov eax, esi
push 0x104
push eax
call fcn.004157f4
add esp, 0xc
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401231
push 0x1f4
call edi
push 1
push 0
push 0x432be4
mov edx, esi
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
call fcn.004028b0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401520
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x432c50
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00415a07
add esp, 0xc
test eax, eax
je 0x401544
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.00415ae4
mov eax, dword [esp + 0x1c]
push eax
call fcn.00415d06
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.00415ae4
lea ebp, [esi + 0x32]
push ebp
call fcn.0041565a
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.00416014
mov eax, dword [esp + 0x40]
push eax
call fcn.004160a8
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00403fc0
mov ecx, dword [esp + 0x4c]
push 0x432c58
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00415a07
add esp, 0x40
test eax, eax
je 0x4015c2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00416286
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004160a8
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x402610
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push ebx
mov edi, eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402641
mov eax, ebx
call fcn.00403d90
cmp eax, edi
jne 0x402641
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x200000
call fcn.0041565a
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
push ebp
push eax
lea edx, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], 0x200000
call fcn.00406ea0
add esp, 8
test eax, eax
je 0x40270c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00416308
add esp, 4
call fcn.0041631a
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x4334e8]
fmul qword [0x433510]
fadd qword [0x433508]
call fcn.00419970
mov esi, dword [esp + 0x14]
lea ebx, [esi + ebp]
mov edi, eax
call fcn.00403fc0
add edi, esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
call fcn.00406e30
mov esi, eax
cmp esi, 0xffffffff
je 0x40270a
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
cmp eax, edi
jne 0x4026e9
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
jne 0x40270a
push ebp
mov esi, ebx
call fcn.00415724
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor esi, esi
push ebp
call fcn.00415724
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x402c50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x434
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x43c]
push ebx
push ebp
mov ebp, dword [esp + 0x440]
push esi
push edi
push eax
mov ecx, ebp
call fcn.00406570
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x402e0f
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x32]
push edx
mov word [esp + 0x34], cx
call fcn.00417c50
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x23a]
push ecx
mov word [esp + 0x23c], ax
call fcn.00417c50
add esp, 0xc
lea esi, [esp + 0x28]
call fcn.004034d0
push 0x433244
mov edx, esi
push 0x104
push edx
call fcn.004157f4
xor eax, eax
lea ebx, [esp + 0x20]
add esp, 0xc
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov esi, 0x43c208
sub ebx, 0x43c30c
cmp word [esi], 0
je 0x402d87
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push 0x104
push ecx
call fcn.00415871
add esp, 0xc
push esi
lea edx, [esp + 0x234]
push 0x104
push edx
call fcn.004157f4
lea eax, [esp + 0x23c]
add esp, 0xc
push eax
lea edi, [esp + 0x18]
call fcn.00405b90
add esp, 4
test eax, eax
je 0x402d87
mov ecx, 0x14
lea eax, [esi + 0x104]
lea ecx, [ecx]
mov edx, dword [ebx + eax]
cmp edx, dword [eax]
jne 0x402d87
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x402d70
xor eax, eax
mov word [esi], ax
add esi, 0x118
sub ebx, 0x118
cmp esi, 0x43c780
jl 0x402d14
mov edi, dword [esp + 0x44c]
mov esi, 0x43c208
jmp 0x402db0
cmp word [esi], 0
je 0x402dce
mov ecx, dword [esi + 0x100]
mov dword [0x43c1fc], ecx
push edi
push ebp
mov ecx, esi
call fcn.00406770
add esp, 8
add esi, 0x118
cmp esi, 0x43c780
jl 0x402db0
push 0x43ce40
lea edx, [esp + 0x2c]
push 0x104
push edx
call fcn.004157f4
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402e0b
mov dword [esp + 0x10], 2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004155fc
add esp, 0x434
ret
Function at 0x402f70
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x68c
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x684], eax
push ebx
push ebp
push esi
push edi
push 0x4332d0
push 0x4332d4
call fcn.00416400
mov esi, eax
add esp, 8
test esi, esi
je 0x402fc8
push 0
push 0x2580
push esi
call fcn.00415ae4
add esp, 0xc
push esi
push 5
push 1
push 0x4332e0
call fcn.00416286
push esi
call fcn.004160a8
add esp, 0x14
cmp byte [0x43c78b], 1
jne 0x403146
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x492]
push ecx
mov word [esp + 0x494], ax
call fcn.00417c50
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
push 0x4332e8
mov dword [esp + 0x18], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
je 0x40304e
test al, 1
je 0x403028
xor eax, 1
test al, 4
je 0x40302f
xor eax, 4
test al, 2
je 0x403036
xor eax, 2
test al, 0x20
je 0x40303d
xor eax, 0x20
push eax
push 0x4332e8
call edi
push 0x4332e8
call ebx
call ebp
push 0x433304
call esi
cmp eax, 0xffffffff
je 0x403087
test al, 1
je 0x403061
xor eax, 1
test al, 4
je 0x403068
xor eax, 4
test al, 2
je 0x40306f
xor eax, 2
test al, 0x20
je 0x403076
xor eax, 0x20
push eax
push 0x433304
call edi
push 0x433304
call ebx
call ebp
push 0x433330
call esi
cmp eax, 0xffffffff
je 0x4030c0
test al, 1
je 0x40309a
xor eax, 1
test al, 4
je 0x4030a1
xor eax, 4
test al, 2
je 0x4030a8
xor eax, 2
test al, 0x20
je 0x4030af
xor eax, 0x20
push eax
push 0x433330
call edi
push 0x433330
call ebx
call ebp
push 0x104
lea edx, [esp + 0x48c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 0x488]
sub eax, 0x41
push eax
lea ebx, [esp + 0x18]
call fcn.00404440
mov ebx, dword [esp + 0x18]
add esp, 4
call fcn.004042c0
mov edi, eax
cmp edi, 0xffffffff
je 0x403146
lea esi, [esp + 0x250]
call fcn.00404780
test eax, eax
je 0x403146
mov ecx, edi
call fcn.004031c0
mov ecx, 0x8d
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x250]
push 0x236
lea edx, [esp + 0x1c]
push edx
movsw word es:[edi], word [esi]
push 0x1e
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0x5042475f
call fcn.00404250
add esp, 0xc
mov ecx, dword [esp + 0x694]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004155fc
add esp, 0x68c
ret
Function at 0x4031c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x22c
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
xor eax, eax
push edi
xor ebp, ebp
mov edi, ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
cmp edi, 0xffffffff
je 0x40322a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x200
lea edx, [esp + 0x3c]
push edx
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
jne 0x403231
xor eax, eax
jmp 0x4032f0
lea esi, [esp + 0x30]
call fcn.004048f0
test eax, eax
jne 0x4032ec
mov eax, dword [esp + 0x30]
mov byte [esp + 0x28], 0x33
mov byte [esp + 0x29], 0xf6
mov byte [esp + 0x2a], 0xb8
mov byte [esp + 0x2b], 0x40
cmp eax, dword [esp + 0x28]
jne 0x4032de
cmp byte [esp + 0x34], 7
jne 0x4032de
cmp byte [esp + 0x35], 0x8e
jne 0x4032de
mov eax, esi
call fcn.00403160
mov ebx, eax
cmp ebx, ebp
jne 0x403281
mov dword [esp + 0x10], ebp
jmp 0x4032ec
lea ecx, [esp + 0x30]
push ecx
push ebx
mov eax, 1
call fcn.00404050
add esp, 8
test eax, eax
je 0x40322a
lea esi, [esp + 0x30]
call fcn.004048f0
cmp eax, 1
je 0x4032ec
mov edx, esi
push edx
lea eax, [ebx + 1]
push eax
mov eax, 1
call fcn.00404050
add esp, 8
test eax, eax
je 0x40322a
cmp byte [esp + 0x30], 0x56
jne 0x40322a
push ebx
mov ecx, edi
call fcn.00404830
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4032ec
mov esi, edi
call fcn.00404380
mov ecx, edi
call fcn.00404990
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004155fc
add esp, 0x22c
ret
Function at 0x403330
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x4334d8
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0041681b
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.00416768
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.004167d0
add esp, 0x14
test eax, eax
je 0x4033bb
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4034b7
mov eax, 0x439550
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4033f0
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403407
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403420
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040b1cc
push edi
mov esi, eax
push 0
push esi
call fcn.00417c50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x439550
push edi
push esi
call fcn.004167fd
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403470
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x432b68
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x4034b5
push esi
call fcn.0040b1c1
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.004155fc
add esp, 0x314
ret