joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1027d52
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x100b518
call fcn.0102814c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1027d8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1027d8d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1027da5
cmp eax, 0x20b
je 0x1027d92
mov dword [ebp - 0x1c], edi
jmp 0x1027db9
cmp dword [ecx + 0x84], 0xe
jbe 0x1027d8d
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1027db3
cmp dword [ecx + 0x74], 0xe
jbe 0x1027d8d
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10412e0], 0xffffffff
or dword [0x10412e4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x104026c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1040268]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10412dc], eax
call fcn.01028142
cmp dword [0x10400b0], edi
jne 0x1027e16
push fcn.01028142
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0102812b
push 0x1040030
push 0x104002c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1040264]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1040260]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1040028
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1027e7c
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1027f36
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1027eca
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1027e98
cmp ax, 0x22
jne 0x1027e85
cmp word [esi], 0x22
jne 0x1027ea3
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1027eb1
cmp ax, 0x20
jbe 0x1027e9e
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1027ed7
movzx eax, word [ebp - 0x50]
jmp 0x1027eda
cmp word [esi], 0x20
jbe 0x1027ea3
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1027eca
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1027efb
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1027f30
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01028187
ret
Function at 0x10284ba
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x10284d3
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 4], 0xffffffff
je 0x10284f9
push edi
push 0
lea eax, [ebp - 4]
push eax
lea edi, [esi + 0x54]
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x10287e9
Capabilities:
Get file size
Persist via application shimming
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x50]
call fcn.010282ee
xor ebx, ebx
cmp dword [esi], ebx
je 0x1028966
mov eax, dword [ebp + 0x14]
test dword [esi + 0x24], eax
je 0x1028966
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x1028824
mov dword [esi + 0x48], 0x100ba30
jmp 0x102885b
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [edi + eax*2 - 2]
xor ecx, ecx
cmp eax, edi
jbe 0x1028858
cmp ecx, 3
jge 0x102884c
dec eax
dec eax
cmp word [eax], 0x5c
je 0x1028847
cmp eax, edi
ja 0x102883b
inc ecx
cmp eax, edi
ja 0x1028836
cmp eax, edi
jbe 0x1028858
add eax, 2
mov dword [esi + 0x48], eax
jmp 0x102885b
mov dword [esi + 0x48], edi
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x1c]
inc edi
cmp dword [esi + 0xc], ebx
mov dword [esi + 0x40], eax
je 0x1028962
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x1028885
mov eax, 0x10013ac
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x10288b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100b998
jmp 0x1028959
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push edi
push ebx
push 2
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LockFileEx]
test eax, eax
jne 0x10288f3
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100b8d0
jmp 0x1028959
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1028928
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jne 0x1028928
push ebx
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp + 0x16]
push eax
push dword [esi + 4]
mov byte [ebp + 0x16], 0xff
mov byte [ebp + 0x17], 0xfe
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push ebx
push ebx
push ebx
push dword [esi + 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1028962
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100b808
push esi
call fcn.01028652
add esp, 0xc
mov dword [esi + 0x3c], edi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x18
Function at 0x1029f63
Capabilities:
Compare security identifiers
List user accounts for group

Disassembly:
mov eax, 0x103613c
call fcn.01027f58
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x100c7d8
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0
mov ebx, 0x4000
push ebx
push 0x144
mov edi, 0x100c69c
push edi
mov esi, 0x100c620
push esi
call fcn.01011a74
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.01011ae8
mov dword [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0xc]
cmp word [eax], cx
jne 0x1029fd8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.01011b91
xor al, al
jmp 0x102a130
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x20]
push edx
push 0xffffffffffffffff
lea edx, [ebp - 0x18]
push edx
push ecx
push eax
push ecx
call sub.NETAPI32.dll_NetLocalGroupGetMembers
test eax, eax
je 0x102a035
jle 0x102a002
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x64], eax
push 0x100c7b4
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0
push ebx
push 0x160
push edi
push esi
call fcn.01011a74
mov byte [ebp - 4], 2
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.010299db
add esp, 0x48
mov byte [ebp - 0x11], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x38], esi
xor edi, edi
mov dword [ebp - 0x24], edi
cmp edi, dword [ebp - 0x20]
jae 0x102a065
mov eax, dword [esi + edi*4]
mov dword [ebp - 0x3c], eax
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x102a090
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 1
push dword [ebp - 0x18]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x64]
test eax, eax
jge 0x102a121
mov dword [ebp - 0x28], eax
push 0x1037534
lea eax, [ebp - 0x28]
push eax
call sub.msvcrt.dll__CxxThrowException
inc edi
jmp 0x102a045
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.01011b91
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x402ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f68
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f48
xor eax, eax
push ebp
push 0x402f41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402f84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f48
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403834
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x403895
cmp word [0x40a218], 0xd7b2
jne 0x40385d
cmp dword [0x40a220], 0
jbe 0x40385d
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40905c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4038bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x4038b1
push 0
push 0x409054
push 0x40905c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404740
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4047a6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403c00
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ac4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404790
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047ad
lea eax, [ebp - 0x10]
call fcn.004039b8
ret

Function at 0x406608
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406641
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403aa8
jmp 0x40664a
mov eax, ebx
mov edx, esi
call fcn.00403a0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406654
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406675
mov al, byte [esp]
jmp 0x406677
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406d0c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406b74
mov eax, dword [0x4093ac]
cmp byte [eax], 0
je 0x406d88
mov eax, dword [0x409308]
call fcn.00402a40
call fcn.00402968
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405adc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406dd0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406dbe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.00404110
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x4077ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407810
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403c00
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004059a4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407817
lea eax, [ebp - 0xc]
call fcn.004039b8
ret

Function at 0x408398
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408460
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00403a50
lea eax, [ebp - 4]
call fcn.00403df8
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402aa4
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x10
call fcn.00402aa4
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], di
push 0x57
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403da8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x40843c
mov dword [esi], 0xffffffff
jmp 0x40844a
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x58]
mov dword [esi], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408467
lea eax, [ebp - 4]
call fcn.004039b8
ret

Function at 0x408640
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, 0x4085e0
call fcn.004049b8
xor eax, eax
push ebp
push 0x408735
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCommandLineW
mov edx, eax
mov eax, 0x40a7a8
call fcn.00403bc4
mov eax, 0x40a7a8
call fcn.004084a8
call fcn.00408588
lea eax, [ebp - 0x14]
call fcn.0040852c
mov edx, dword [ebp - 0x14]
mov eax, 0x40a7ac
call fcn.00403a0c
mov eax, dword [0x40a7ac]
mov edx, 0x40874c
call fcn.00403d04
jne 0x4086b2
mov byte [0x409298], 1
jmp 0x40867e
cmp dword [0x40a7a8], 0
jne 0x4086c5
mov eax, 0xfe
call fcn.004039a0
mov edx, 0x40a7b0
xor ecx, ecx
mov eax, dword [0x40a7a8]
call fcn.00408398
test al, al
jne 0x4086e4
mov eax, 0xff
call fcn.004039a0
cmp byte [0x409298], 0
je 0x408715
push 0xffffffffffffffff
mov eax, dword [0x40a7b0]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0x409294
mov eax, dword [0x40a7b0]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [0x40a7b0]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x409294]
call fcn.004039a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40873c
lea eax, [ebp - 0x14]
call fcn.004039b8
ret
Function at 0x10010cd
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001090
call fcn.0100126c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001108
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001108
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001120
cmp eax, 0x20b
je 0x100110d
mov dword [ebp - 0x1c], edi
jmp 0x1001134
cmp dword [ecx + 0x84], 0xe
jbe 0x1001108
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100112e
cmp dword [ecx + 0x74], 0xe
jbe 0x1001108
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002014], 0xffffffff
or dword [0x1002018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100200c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100201c], eax
call fcn.01001266
cmp dword [section..data], edi
jne 0x100118f
push fcn.01001266
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001254
push 0x1001060
push 0x100105c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001058
push 0x1001054
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010010b8
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001206
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100123b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010012a5
ret
Function at 0x42eb10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x66fd08]
xor edx, edx
cmp eax, edx
jne 0x42eb36
xor eax, eax
mov byte [eax + 0x66fc08], al
inc eax
cmp eax, 0x100
jl 0x42eb1e
mov dword [0x66fd08], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x66fc08
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42ebc7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42eb9a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x42eb68
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42ec40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x42ec93
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42ec7a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432f30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x433151
cmp eax, 8
jg 0x433151
cmp dword [esp + 0x8c], 2
jl 0x433151
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x433151
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x433151
mov eax, dword [esp + 0x80]
test eax, eax
je 0x432fb7
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x43313a
mov ebp, dword [0x49a4bc]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x432fe9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x433121
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x433009
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x49a49c]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x433048
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x49a4a0]
lea ecx, [esp + 0x28]
push ecx
call dword [0x49a4f0]
test eax, eax
jne 0x433108
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.00432540
cmp eax, 1
jne 0x433132
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00432df0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x432ffd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x43313a
jmp 0x432fd4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00432140
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c