joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016da0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
mov eax, dword [0x10021138]
xor eax, esp
mov dword [esp], eax
push esi
xor esi, esi
push edi
xor eax, eax
add esi, eax
add eax, 1
cmp eax, 0x37
jl 0x10016db1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x258
add esi, eax
call fcn.10003d54
push 0x258
mov edi, eax
push 0x18
push edi
call fcn.10007f00
push edi
call fcn.100043ff
mov ecx, dword [esp + 0x1c]
add esp, 0x14
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.10004387
pop ecx
ret

Function at 0x10016f80
Capabilities:
Accept command line arguments

Disassembly:
push ecx
mov eax, dword [0x10021138]
xor eax, esp
mov dword [esp], eax
push esi
xor esi, esi
push edi
xor eax, eax
add esi, eax
add eax, 1
cmp eax, 0x22
jl 0x10016f91
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x3b8
add esi, eax
call fcn.10003d54
push 0x3b8
mov edi, eax
push 0x89
push edi
call fcn.10007f00
push edi
call fcn.100043ff
mov ecx, dword [esp + 0x1c]
add esp, 0x14
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.10004387
pop ecx
ret

Function at 0x10017040
Capabilities:
Accept command line arguments

Disassembly:
push ecx
mov eax, dword [0x10021138]
xor eax, esp
mov dword [esp], eax
push esi
xor esi, esi
push edi
xor eax, eax
add esi, eax
add eax, 1
cmp eax, 0x36
jl 0x10017051
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x170
add esi, eax
call fcn.10003d54
push 0x170
mov edi, eax
push 0x64
push edi
call fcn.10007f00
push edi
call fcn.100043ff
mov ecx, dword [esp + 0x1c]
add esp, 0x14
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.10004387
pop ecx
ret

Function at 0x10017100
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
call fcn.10016da0
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.10007f00
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
add esp, 0xc
lea eax, [esp]
push eax
mov dword [esp + 4], 0x3c
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], str.open
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], 1
mov dword [esp + 8], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10017163
add esp, 0x3c
ret
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add esp, 0x3c
ret
Function at 0x10017180
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100171b8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x100171bf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0xc
ret
test eax, eax
mov dword [esp + 4], 0
jbe 0x10017222
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea edi, [eax - 1]
shr edi, 2
add edi, 1
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
xor dword [esp + 0x10], 0x78338e37
push 1
push 0
push 0xfffffffffffffffc
push esi
call ebp
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub edi, 1
jne 0x100171e3
pop edi
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x10017360
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
call fcn.10016da0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0x10017240
push 0
mov esi, 1
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2c], 0
mov dword [esp + 0x30], esi
call fcn.10004cb5
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x18
mov ebp, eax
push 0xffffffffffffffff
push ebp
call edi
cmp byte [esp + 0x14], 0
jne 0x1001741c
push ebx
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0x10017240
push 0
push 0
mov dword [esp + 0x34], 0
call fcn.10004cb5
add esp, 0x18
mov ebx, eax
push 0xffffffffffffffff
push ebx
call edi
cmp byte [esp + 0x18], 0
jne 0x10017414
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x10017240
push 0
push 0
mov dword [esp + 0x34], esi
call fcn.10004cb5
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x14]
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x100175e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x10021138]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
mov edi, ecx
call fcn.100170a0
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SoftwareBaiduBaiduSd
push 0x80000002
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001767b
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.SupplyID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001767b
lea edx, [esp + 0x10]
push edx
push 0x1001da30
call fcn.10003390
add esp, 8
call fcn.10017040
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.10004387
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop edi
xor ecx, esp
xor eax, eax
call fcn.10004387
add esp, 0x210
ret
Function at 0x10017910
Capabilities:
Create directory
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x1001911f
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x10021138]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov eax, dword [0x10021138]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
call fcn.10016e60
xor edi, edi
push 0x208
lea eax, [esp + 0x4a]
push edi
push eax
mov word [esp + 0x50], di
call fcn.10007f00
add esp, 0xc
push 0x104
lea ecx, [esp + 0x48]
push ecx
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x44]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], edi
mov word [esp + 0x10], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10017995
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x48]
push edx
lea esi, [esp + 0x14]
call fcn.10002ff0
mov dword [esp + 0x25c], edi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x260], 1
call fcn.10017430
add esp, 4
push 1
push 0x1001d9b8
mov ecx, esi
call fcn.10002f20
push edi
lea ecx, [esp + 0x2c]
push ecx
or eax, 0xffffffff
call fcn.10002e60
push 0xffffffffffffffff
push edi
mov eax, esi
mov ecx, ebx
call fcn.10002bf0
mov eax, dword [esp + 0x10]
mov esi, 8
cmp dword [esp + 0x24], esi
jae 0x10017a1b
lea eax, [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x40], esi
jb 0x10017a36
mov edx, dword [esp + 0x2c]
push edx
call fcn.10004382
add esp, 4
cmp dword [esp + 0x24], esi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
jb 0x10017a5a
mov eax, dword [esp + 0x10]
push eax
call fcn.10004382
add esp, 4
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.10004387
add esp, 0x254
ret
Function at 0x10018230
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x10021138]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10018287
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.10004387
mov esp, ebp
pop ebp
ret
push 0x3e
lea eax, [esp + 0x116]
push ebx
push eax
mov word [esp + 0x11c], bx
call fcn.10007f00
push 0xf4
lea ecx, [esp + 0x2c]
push ebx
push ecx
mov dword [esp + 0x30], ebx
call fcn.10007f00
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
push ebx
lea edx, [esp + 0x14]
push edx
push 0x40
lea eax, [esp + 0x11c]
push eax
push esi
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x10018334
cmp dword [esp + 0x10], 0x40
jne 0x10018334
cmp word [esp + 0x110], 0x5a4d
jne 0x10018334
mov ecx, dword [esp + 0x14c]
push ebx
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x14c], eax
jne 0x10018334
push ebx
lea edx, [esp + 0x14]
push edx
push 0xf8
lea eax, [esp + 0x24]
push eax
push esi
call edi
test eax, eax
je 0x10018334
cmp dword [esp + 0x10], 0xf8
jne 0x10018334
cmp dword [esp + 0x18], 0x4550
mov edi, 1
je 0x10018336
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x154]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10004387
mov esp, ebp
pop ebp
ret

Function at 0x10018360
Capabilities:
Read file via mapping

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
mov esi, eax
push ebx
push esi
call edi
cmp eax, 0xffffffff
jne 0x100183c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100183a4
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
je 0x100183af
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x100183bb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.10018230
add esp, 4
test eax, eax
je 0x1001838d
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push esi
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x10018391
push 0
push 0
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x10018395
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x100183a4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp word [ecx + 0x18], 0x10b
je 0x10018431
xor ebx, ebx
jmp 0x10018399
test ebp, ebp
jne 0x10018441
add dword [ecx + 0x58], 1
lea ebx, [ebp + 1]
jmp 0x10018399
mov dword [ecx + 0x58], ebp
mov ebx, 1
jmp 0x10018399
Function at 0x10018450
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x10021138]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
xor bl, bl
test esi, esi
jne 0x10018483
xor al, al
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.10004387
add esp, 0x230
ret
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x100184ad
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.10004387
add esp, 0x230
ret
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x100184f0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x100184d0
push esi
lea ecx, [esp + 0x34]
push ecx
call ebp
test eax, eax
je 0x100184ed
lea edx, [esp + 0xc]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100184d0
jmp 0x100184ef
mov bl, 1
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop edi
mov al, bl
pop ebx
xor ecx, esp
call fcn.10004387
add esp, 0x230
ret
Function at 0x402170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
xor eax, eax
mov dword [esp + 4], 0x4045c0
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
push str.Arial
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x2bc
push eax
push eax
push eax
push 0x32
mov byte [esp + 0x60], 1
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 8]
call sub.MFC42.DLL_CGdiObject::Attach
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CClientDC::CClientDC
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CDC::SelectObject
push 1
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
push 0x96
push 0xc9
lea ecx, [esp + 0x1c]
call dword [edx + 0x64]
push 0x5aff00
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CDC::SetTextColor
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
push 0x97
push pe_nt_image_headers32
lea ecx, [esp + 0x1c]
call dword [edx + 0x64]
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.00402f16
mov dword [esp + 4], 0x404430
lea ecx, [esp + 4]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x30]
mov dword [esp + 4], 0x404418
mov dword [esp + 0x28], 0xffffffff
call fcn.00402da2
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x402670
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x403320
push eax
mov dword fs:[0], esp
sub esp, 0x74
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x40269d
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4027da
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x80], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x54]
mov byte [esp + 0x80], 1
cmp eax, 1
jne 0x4026ee
cmp dword [esi + 0x58], eax
jne 0x4026dc
mov eax, dword [esi + 0x50]
lea ecx, [esp + 4]
push eax
push 9
push ecx
jmp 0x4026ff
cmp eax, 1
jne 0x4026ee
mov edx, dword [esi + 0x50]
lea eax, [esp + 4]
push edx
push 8
push eax
jmp 0x4026ff
cmp dword [esi + 0x58], 1
jne 0x402704
mov ecx, dword [esi + 0x50]
lea edx, [esp + 4]
push ecx
push 7
push edx
call sub.MFC42.DLL_AfxFormatString1
push 0xa
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
push 0
lea ecx, [esp + 0x14]
call fcn.00402850
add esi, 0x50
lea ecx, [esp + 0x74]
push esi
mov byte [esp + 0x84], 2
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x84], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x80], 2
call fcn.00402da2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 1
je 0x402782
mov eax, dword [0x40619c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x74]
mov byte [esp + 0x80], 5
call fcn.00402da2
lea ecx, [esp + 0x70]
mov byte [esp + 0x80], 4
call fcn.00402da2
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 1
call fcn.00402f34
lea ecx, [esp + 8]
mov byte [esp + 0x80], 0
call fcn.00402da2
lea ecx, [esp + 4]
mov dword [esp + 0x80], 0xffffffff
call fcn.00402da2
mov ecx, dword [esp + 0x78]
pop esi
mov dword fs:[0], ecx
add esp, 0x80
ret
Function at 0x402a90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4046b0
push 0x402ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x406274], 0xffffffff
mov dword [0x406278], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x406260]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x40625c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x406270], ecx
call fcn.00402c90
mov eax, dword [0x4060d0]
test eax, eax
jne 0x402b21
push 0x402c80
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402c60
push 0x406020
push 0x40601c
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x406258]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x406254]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x406018
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [edx]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x402c2f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x402b95
cmp al, 0x22
jne 0x402b87
cmp byte [esi], 0x22
jne 0x402b9e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x402bae
cmp al, 0x20
ja 0x402bae
inc esi
mov dword [ebp - 0x74], esi
jmp 0x402b9e
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x402bcf
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402bd4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x402c14
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x402b9e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x402c2f
Function at 0x40375b
Capabilities:
Terminate process

Disassembly:
jmp 0x457769
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45777a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405bcd
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403896
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a061f
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a0630
pop esi
ret
push ebx
push edi
push esi
call fcn.004a0506
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004041bf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a0658
push ebx
push esi
push edi
call fcn.004059ac
add esp, 0xc
push 0
call fcn.0040655f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405a74
Capabilities:
Parse pe header

Disassembly:
jmp 0x4467aa
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4467e9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4467e9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4467e9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4467e9
cmp dword [ecx + 0x74], 0xe
jbe 0x4467e9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44459c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004038fa
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4445db
sub eax, 1
je 0x4445d6
sub eax, 1
je 0x4445d2
xor eax, eax
leave
ret
push 3
jmp 0x4445dd
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x49ab87
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401e0b
mov eax, dword [0x50c640]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040614a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49abc9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49ad25
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040629e
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x510188]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004033d7
mov ecx, dword [esi*4 + 0x510188]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49ad1e
cmp eax, dword [edi + ecx + 0x24]
jne 0x49ad1e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49ad1e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004033d7
add esp, 0x14
test edx, edx
jl 0x49ad1e
jg 0x49ac94
test eax, eax
jb 0x49ad1e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49ad1e
jl 0x49acae
cmp dword [ebp - 0x1008], eax
ja 0x49ad1e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49accc
test ebx, ebx
je 0x49ad05
cmp ecx, edi
jae 0x49ad05
mov al, byte [ecx]
cmp al, 0xd
jne 0x49ace6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49acf2
cmp byte [ecx + 1], 0xa
jne 0x49acf2
inc ecx
jmp 0x49acf2
movzx eax, al
movsx eax, byte [eax + 0x50c9a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49accc
cmp edx, ebx
jne 0x49accc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49ad23
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040318e
leave
ret
Function at 0x49b464
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x510188]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49b4a4
cmp byte [ebx], 0xa
jne 0x49b4a4
or byte [eax + edi + 0x28], 4
jmp 0x49b4a9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49b5a7
mov al, byte [edx]
cmp al, 0x1a
je 0x49b589
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49b4d8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49b4fd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49b507
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x49b4ba
jmp 0x49b5a7
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49b584
cmp dword [ebp - 0xc], 0
je 0x49b584
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x510188]
test byte [eax + edi + 0x28], 0x48
je 0x49b55e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49b549
mov byte [esi], dl
jmp 0x49b55a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x510188]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49b5a7
cmp byte [ebp - 1], 0xa
jne 0x49b56d
cmp esi, ebx
jne 0x49b56d
mov byte [esi], 0xa
jmp 0x49b5a6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401974
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49b5a7
mov byte [esi], 0xd
jmp 0x49b5a6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x510188]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49b5a3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49b5a7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret