joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003967d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
cmp byte [ebp + 0x14], 0
mov eax, edx
push ebx
push esi
push edi
mov dword [esp + 0x24], eax
mov esi, ecx
je 0x10039790
cmp byte [ebp + 0x18], 0
je 0x100396ca
mov dword [esi], 0
cmp dword [esi], 1
jge 0x100397d1
mov edx, dword [ebp + 8]
mov ecx, dword [esi]
mov eax, dword [edx]
mov dword [eax + ecx*4], 6
inc dword [esi]
cmp dword [esi], 1
jl 0x100396b3
jmp 0x100397d1
mov dword [esp + 0x1c], 0x7786
cmp dword [esp + 0x1c], 0x7ad3
push 0
pop ebx
jle 0x10039768
push ebx
push 0x1f37
push 0x270f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatA]
mov edi, ebx
mov esi, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], 0x3191
mov eax, esi
lea ecx, [esp + 0x28]
xor eax, edi
cdq
push edx
push eax
call fcn.10001a9f
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10039730
mov eax, dword [eax]
push eax
call fcn.10046233
pop ecx
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.1000ebf5
dec esi
dec dword [esp + 0x14]
jne 0x10039716
mov esi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x18], esi
cmp esi, 0x4dad
jl 0x1003970a
inc edi
cmp edi, 0x3be8
jl 0x10039704
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x1003977a
push 0x2133
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp dword [esp + 0x1c], 0x74af
jge 0x100397d1
push str.gkel_vawaooj_acde_lvhyc_vmbhfaswn_owmwfg_lpvfyu_clbvzac_mtfovx_vzkx_mth_opa_qzqi_xhbbz
call fcn.10046233
jmp 0x100397aa
cmp byte [ebp + 0xc], 0
je 0x100397ad
xor ebx, ebx
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], bl
je 0x100397d1
push ecx
push ebx
call fcn.1003791c
pop ecx
pop ecx
jmp 0x100397d1
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x100397d1
push 0xeb8
push 0x1072
push 0xbcd
push 0x22ea
push 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003a5bb
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 0x18], 0
push esi
push edi
mov edi, ecx
je 0x1003a609
mov esi, dword [ebp + 8]
mov dword [esi], 0
jmp 0x1003a602
push ecx
push ecx
push 1
push 0x70ad
push ecx
push 0x16f3
push edi
mov dword [ebp - 4], 0x53aa9ac7
lea ecx, [ebp - 4]
push 0x28d0
mov edx, 0x691a
call fcn.10037d7c
add esp, 0x20
dec dword [esi]
cmp dword [esi], 0xffffffe6
jg 0x1003a5d4
jmp 0x1003a636
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x1003a636
push 0
push 0x1713
push 0x8ce
push 0x123f
push 0x1b62
push 0x2627
push 0x29
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003a669
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005fc90
call fcn.1005e378
sub esp, 0x14
cmp byte [ebp + 0x20], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x14], dl
je 0x1003a71a
test dl, dl
je 0x1003a6b0
mov byte [ebp + 0x23], 0
cmp byte [ebp + 0x23], 0
je 0x1003a7bd
push 0x5da1
mov ecx, 0x6549
call fcn.1003a946
pop ecx
jmp 0x1003a7bd
mov ebx, dword [ebp + 0x18]
xor ecx, ecx
mov edi, dword [ebp + 0x10]
mov eax, dword [ebx]
mov eax, dword [ebx]
mov eax, dword [ebx]
mov eax, dword [ebx]
mov eax, dword [ebx]
mov eax, dword [ebx]
mov eax, dword [ebx]
mov edx, dword [ebx]
mov esi, dword [ebx]
mov eax, dword [ebx]
mov edi, dword [edi]
cmp eax, dword [edi + edx*4]
setl cl
xor eax, eax
neg ecx
cmp ecx, dword [edi + esi*4]
setl al
xor ecx, ecx
cmp eax, dword [edi]
setl cl
xor esi, esi
cmp ecx, dword [ebx]
jne 0x1003a701
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx]
mov eax, dword [edx]
cmp dword [eax + ecx*4], esi
je 0x1003a701
mov ecx, dword [ebx]
mov eax, dword [edx]
cmp dword [eax + ecx*4], esi
je 0x1003a701
inc esi
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
mov dword [eax], esi
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
test eax, eax
mov eax, dword [ebp + 0x24]
sets cl
jmp 0x1003a7bb
cmp byte [ebp + 0xc], 0
je 0x1003a7b8
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x1003a735
push ecx
mov cl, 1
call fcn.10037b6d
pop ecx
mov dword [ebp - 0x18], 0x7578
xor esi, esi
cmp dword [ebp - 0x18], 0x7592
jle 0x1003a781
mov edi, esi
mov ebx, edi
mov dword [ebp + 0x20], 0x2c25
mov dword [ebp - 0x1c], esi
mov eax, ebx
mov ecx, 0x1007acd8
xor eax, esi
cdq
push edx
push eax
call fcn.1000e15c
inc esi
cmp esi, 0x13b4
jl 0x1003a755
dec ebx
dec dword [ebp + 0x20]
push 0
pop esi
jne 0x1003a752
inc edi
cmp edi, 0x12e2
jl 0x1003a749
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], 0x7203
jge 0x1003a79c
mov edx, str.xvsjcfu_nwlgv_xxtp_bfgnhw_ajoqnmxc_mynmf_ueanexqu_zntmugvyy_prtqdq_xifbdu_qhhheej
mov ecx, 0x1007acd8
call fcn.10010ea8
jmp 0x1003a7bd
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003a98e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
mov byte [esp + 4], dl
test dl, dl
je 0x1003a9b4
mov byte [esp + 2], 0
cmp byte [esp + 2], 0
je 0x1003a9d5
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1003a9d5
push 0xeae
push 0x2d77
push 1
push 0
mov dl, 1
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x13]
call fcn.10039cc4
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x405c09
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [ebp + 0xc]
and eax, 0xff
test eax, eax
je 0x405c58
mov dword [ebp - 4], 0
jmp 0x405c30
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0xa
jge 0x405c53
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405c51
jmp 0x405c53
jmp 0x405c27
jmp 0x405d3e
push 0x104
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x405c77
jmp 0x405d3e
lea edx, [ebp - 0x660]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov word [ebp - 0x630], 0
mov eax, dword [ebp - 0x634]
or al, 0x81
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x654], str.Cleanup...
push 0x104
lea ecx, [ebp - 0x61c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea edx, [ebp - 0x518]
push edx
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [ebp - 0x518]
push ecx
lea edx, [ebp - 0x414]
push edx
call fcn.00409a40
add esp, 8
push str._CLEANUP
lea eax, [ebp - 0x414]
push eax
call fcn.00409a50
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x414]
push edx
call fcn.00409a50
add esp, 8
push 0x412140
lea eax, [ebp - 0x660]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x518]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret
Function at 0x405d42
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [str.ARM.TMP]
mov dword [ebp - 0x31c], eax
mov ecx, dword [0x411360]
mov dword [ebp - 0x318], ecx
mov dl, byte [0x411364]
mov byte [ebp - 0x314], dl
push 0x104
lea eax, [ebp - 0x310]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x310]
push ecx
call fcn.00409c00
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405da5
mov edx, dword [ebp - 4]
mov byte [edx + 1], 0
jmp 0x405db9
push 0x41259c
lea eax, [ebp - 0x310]
push eax
call fcn.00409a40
add esp, 8
push 0x104
lea ecx, [ebp - 0x424]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea edx, [ebp - 0x424]
push edx
call fcn.00409c00
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405e3e
mov eax, dword [ebp - 4]
add eax, 1
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00409a40
add esp, 8
push 0x2e
lea edx, [ebp - 0x108]
push edx
call fcn.00409c00
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405e2b
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00409b40
add esp, 8
mov dword [ebp - 4], eax
push str..TMP
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409a40
add esp, 8
jmp 0x405e52
push 0x4125a0
lea edx, [ebp - 0x108]
push edx
call fcn.00409a40
add esp, 8
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov byte [ebp - 0x320], 1
mov ecx, dword [ebp + 8]
and ecx, 0xff
test ecx, ecx
je 0x405ec4
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x310]
push eax
call fcn.00405efa
add esp, 8
and eax, 0xff
test eax, eax
jne 0x405e9e
mov byte [ebp - 0x320], 0
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.00405efa
add esp, 8
and eax, 0xff
test eax, eax
jne 0x405ec4
mov byte [ebp - 0x320], 0
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x310]
push ecx
call fcn.00405efa
add esp, 8
lea edx, [ebp - 0x31c]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.00405efa
add esp, 8
mov al, byte [ebp - 0x320]
mov esp, ebp
pop ebp
ret
Function at 0x405efa
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov byte [ebp - 0x250], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x248]
push ecx
call fcn.00409a40
add esp, 8
push 0
lea edx, [ebp - 0x248]
push edx
call fcn.00409b40
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409a40
add esp, 8
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0xffffffff
jne 0x405f6c
mov al, byte [ebp - 0x250]
jmp 0x405fcf
mov ecx, 1
test ecx, ecx
je 0x405fbc
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00409a40
add esp, 8
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405fa0
mov byte [ebp - 0x250], 0
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405fba
jmp 0x405fbc
jmp 0x405f6c
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0x250]
mov esp, ebp
pop ebp
ret

Function at 0x405fd3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
and eax, 0xff
test eax, eax
je 0x405ff4
push 0xffffffffffffffff
mov ecx, dword [0x412140]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 8]
push edx
mov eax, dword [0x412140]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [0x412144]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x412140]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040546a
call dword [0x412264]
mov eax, dword [0x412378]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x412480]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x412258]
mov eax, dword [edx]
sub eax, 1
mov ecx, dword [0x412258]
mov dword [ecx], eax
mov edx, dword [0x412258]
xor eax, eax
cmp dword [edx], 0
sete al
mov byte [ebp - 4], al
mov ecx, dword [ebp - 4]
and ecx, 0xff
test ecx, ecx
je 0x40609d
xor edx, edx
mov dl, byte [0x41225c]
test edx, edx
jne 0x40609d
push 0x412150
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40609d
push 0
push 0x412150
call fcn.00405c09
add esp, 8
xor eax, eax
mov al, byte [0x41225c]
neg eax
sbb al, al
not al
and eax, dword [ebp - 4]
push eax
call fcn.00405d42
add esp, 4
mov ecx, dword [0x412258]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [0x412138]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4060d7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push str.ArmAccess
mov eax, dword [0x412378]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
jne 0x40610a
mov eax, 1
jmp 0x4061a6
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push 0x41137c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str..mailslotclient_
lea edx, [ebp - 0x100]
push edx
call fcn.00409a40
add esp, 8
lea eax, [ebp - 0x200]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.00409a50
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x100]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x412484], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x412484]
push edx
mov eax, dword [0x412480]
push eax
call dword [ebp - 0x208]
add esp, 0x10
mov dword [ebp - 0x204], eax
mov ecx, dword [0x412484]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x204]
mov esp, ebp
pop ebp
ret
Function at 0x4070c3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 0xc], 0
push 0
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4070f8
mov dword [0x41248c], 1
xor al, al
jmp 0x4071b5
mov eax, dword [ebp - 8]
and eax, 0x80000000
test eax, eax
je 0x407114
mov ecx, dword [ebp - 8]
and ecx, 0x7fffffff
mov dword [ebp - 8], ecx
mov byte [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x4071ab
cmp dword [ebp + 0xc], 0
je 0x407199
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40714e
mov dword [0x41248c], 1
xor al, al
jmp 0x4071b5
cmp dword [ebp + 0x14], 0
je 0x407168
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.0040438b
add esp, 0xc
mov eax, dword [ebp - 0xc]
and eax, 0xff
test eax, eax
jne 0x407197
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00404549
add esp, 0xc
and eax, 0xff
test eax, eax
jne 0x407197
xor al, al
jmp 0x4071b5
jmp 0x4071ab
push 1
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4073b9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [0x41236c], 1
lea eax, [ebp - 4]
push eax
push 0
push 0x412140
push 0x4054c6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x412374], eax
xor ecx, ecx
mov cl, byte [0x41236c]
cmp ecx, 1
jne 0x4073fc
push 0
push 0x7d
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x4073e3
mov esp, ebp
pop ebp
ret

Function at 0x407ac9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push VirtualAlloc
call fcn.0040929d
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 1
mov ecx, dword [ebp - 8]
and ecx, 0xff
test ecx, ecx
je 0x407b62
mov dword [ebp - 4], VirtualAlloc
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004070c3
add esp, 0x10
and eax, 0xff
test eax, eax
je 0x407b52
cmp dword [ebp - 4], 0
jne 0x407b26
jmp 0x407b62
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407b50
mov dword [0x41248c], 2
mov byte [ebp - 8], 0
jmp 0x407b60
mov dword [0x41248c], 0
mov byte [ebp - 8], 0
jmp 0x407ae9
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00409292
add esp, 4
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x407b7b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
lea eax, [ebp - 0x244]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x411584
lea ecx, [ebp - 0x244]
push ecx
call fcn.00409a50
add esp, 8
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0xffffffff
jne 0x407bd1
xor al, al
jmp 0x407be0
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x407be4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 0xc]
and eax, 0xff
test eax, eax
jne 0x407c2d
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea edx, [ebp - 0x108]
push edx
call fcn.00409c00
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407c2d
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
test ecx, ecx
je 0x407c4c
lea edx, [ebp - 0x108]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [ebp + 8]
push eax
push 0
push 0x411588
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x407c83
mov edx, dword [ebp + 0xc]
and edx, 0xff
test edx, edx
jne 0x407c83
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00407be4
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x40809c
Capabilities:
Create mailslot
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x412368]
push eax
push str._08X
lea ecx, [ebp - 0x200]
push ecx
call fcn.00409c27
add esp, 0xc
lea edx, [ebp - 0x200]
push edx
push str.ArmServerInfo
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push str..mailslot_server_
lea eax, [ebp - 0x100]
push eax
call fcn.00409a40
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.00409a50
add esp, 8
push 0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov dword [0x412480], eax
mov esp, ebp
pop ebp
ret

Function at 0x408117
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push 1
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00407c87
add esp, 0xc
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
jne 0x408157
xor eax, eax
jmp 0x4082c5
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [0x41115c]
xor ecx, dword [0x411184]
xor ecx, dword [0x411178]
xor ecx, dword [str.9rmr]
cmp dword [ebp - 0x128], ecx
je 0x40818b
xor eax, eax
jmp 0x4082c5
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x288], eax
cmp dword [ebp - 0x288], 0xffffffff
jne 0x4081bd
xor eax, eax
jmp 0x4082c5
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 4]
push eax
push 0x40
lea ecx, [ebp - 0x284]
push ecx
mov edx, dword [ebp - 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0x40
jne 0x40825a
mov eax, dword [ebp - 0x284]
and eax, 0xffff
cmp eax, 0x5a4d
jne 0x40825a
push 0
push 0
mov ecx, dword [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0xf8
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0xf8
jne 0x40825a
cmp dword [ebp - 0x244], 0x4550
jne 0x40825a
mov eax, dword [ebp - 0x21c]
add eax, dword [ebp - 0x210]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x288]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x411188]
xor edx, dword [0x411184]
xor edx, dword [0x41116c]
xor edx, dword [0x41118c]
test edx, edx
je 0x4082a5
mov eax, dword [0x411188]
xor eax, dword [0x411184]
xor eax, dword [0x41116c]
xor eax, dword [0x41118c]
cmp dword [ebp - 8], eax
je 0x4082a3
xor eax, eax
jmp 0x4082c5
jmp 0x4082c0
mov ecx, dword [0x411174]
xor ecx, dword [0x411160]
xor ecx, dword [0x411178]
cmp dword [ebp - 8], ecx
je 0x4082c0
xor eax, eax
jmp 0x4082c5
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4082c9
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push edi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov cl, byte [0x4125ac]
mov byte [ebp - 0x250], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x24f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp + 0xc]
and edx, 0xff
test edx, edx
je 0x40832f
cmp dword [ebp - 0x3c], 0
jne 0x40832f
lea eax, [ebp - 0x250]
push eax
call fcn.004083f3
add esp, 4
and eax, 0xff
test eax, eax
je 0x40832f
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x3c], ecx
push 0x104
lea edx, [ebp - 0x14c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x14c]
push eax
push str.PROTECTEDFILE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x5c
lea ecx, [ebp - 0x14c]
push ecx
call fcn.00409c00
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408380
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov byte [eax], 0
jmp 0x408389
lea ecx, [ebp - 0x14c]
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x14c]
push edx
push str.PROTECTEDFILEPATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x412140
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4083ec
mov dword [0x41248c], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_code__d_
push 0x412490
call fcn.00409c27
add esp, 0xc
xor al, al
jmp 0x4083ee
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x408d8d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], str.Bitmap_Window
mov al, byte [ebp + 0x14]
mov byte [0x4125d4], al
mov ecx, dword [ebp + 8]
mov dword [0x4125c4], ecx
mov edx, dword [ebp + 0xc]
mov dword [0x4125c0], edx
xor eax, eax
mov al, byte [0x4125d5]
test eax, eax
jne 0x408e33
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 0x408ed9
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov cl, byte [0x4125d4]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 0x7f02
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
mov byte [0x4125d5], 1
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [0x4125c4]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [0x4125c0]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0
push 0
mov ecx, dword [0x4125c0]
push ecx
mov edx, dword [0x4125c4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x80000000
push str.Loading...
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
and eax, 0xff
neg eax
sbb eax, eax
and eax, 8
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4125c8], eax
push 5
mov ecx, dword [0x4125c8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x4125c8]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
cmp dword [0x4125c8], 0
setne al
mov esp, ebp
pop ebp
ret