joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486d30
Capabilities:
Create thread

Disassembly:
sub esp, 0x20c
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x206
mov dword [esi + 0x324], eax
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.004afb50
push 0x57450c
lea ecx, [esp + 0x14]
push 0x574fd8
push ecx
call fcn.00405340
add esp, 0x18
push 0
push 0
push 0
push 0x7530
push 0x7530
push 0x108
push 0xce0000
lea edx, [esp + 0x20]
push edx
push 0
mov ecx, esi
call dword [sym.imp.DuiLib32.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
lea eax, [esi + 0x314]
push eax
push 0
push esi
push 0x486cb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x20c]
mov dword [esi + 0x310], eax
pop esi
xor ecx, esp
call fcn.004aeca3
add esp, 0x20c
ret
Function at 0x48bc6c
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
cmp eax, 0x1b77
push esi
mov esi, ecx
jne 0x48bc7f
call fcn.004871a0
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
cmp eax, 0x1b78
jne 0x48bd03
cmp dword [esi + 0x328], 0
je 0x48bd03
cmp dword [esi + 0x32c], 0
je 0x48bd03
push ebx
push ebp
push edi
call fcn.0046eb00
mov edi, eax
call fcn.004745f0
mov ecx, dword [esi + 4]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
push 0
mov edx, ecx
sub edx, eax
push edx
sub eax, ecx
add eax, ebx
mov edx, ebp
sub edx, dword [esp + 0x18]
push edx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x20]
sub eax, ebp
add eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x10
ret 0x10
Function at 0x48c220
Capabilities:
Create thread

Disassembly:
push esi
push 1
push 1
push 1
push 0x7530
mov esi, ecx
mov eax, dword [esi + 4]
push 0x7530
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
lea ecx, [esi + 0x314]
push ecx
push 0
push esi
push 0x48c160
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x310], eax
pop esi
ret

Function at 0x48d17a
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x108]
push esi
mov esi, ecx
cmp eax, dword [esi + 0x36c]
jne 0x48d1c2
mov ecx, dword [esi + 4]
push 1
push 1
push 1
push 0x7530
push 0x7530
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
lea edx, [esi + 0x314]
push edx
push 0
push esi
push 0x48c160
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x310], eax
pop esi
ret 4
cmp eax, dword [esi + 0x370]
jne 0x48d1d3
call fcn.0048c220
pop esi
ret 4
cmp eax, dword [esi + 0x374]
jne 0x48d1e0
call fcn.00487000
pop esi
ret 4
Function at 0x48f870
Capabilities:
Check for peb beingdebugged flag
Create process on windows
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x564048
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
push edi
mov eax, dword [0x651788]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edx, dword [esp + 0x4c]
mov eax, edx
mov esi, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], 0
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48f8c3
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00402120
push 0xe
push 0x583d00
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], 0
call fcn.00403e10
mov eax, 8
cmp dword [esi + 0x18], eax
jb 0x48f904
mov edi, dword [esi + 4]
jmp 0x48f907
lea edi, [esi + 4]
cmp dword [esi + 0x34], eax
jb 0x48f911
mov esi, dword [esi + 0x20]
jmp 0x48f914
add esi, 0x20
cmp dword [esp + 0x30], eax
mov ebx, dword [esp + 0x1c]
jae 0x48f922
lea ebx, [esp + 0x1c]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
push eax
push 0x589810
push 1
push 0
push 0x589820
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x48f9b5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
test edi, edi
je 0x48f967
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x589910
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x48f9a9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 0
push ebx
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov esi, 8
cmp dword [esp + 0x30], esi
jae 0x48f9c8
lea eax, [esp + 0x1c]
push 0
push 0
push 0
push eax
push 0x583cec
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x30], esi
jb 0x48f9ef
mov eax, dword [esp + 0x1c]
push eax
call fcn.00492573
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004aeca3
add esp, 0x34
ret 8

Function at 0x48fa10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.004afb50
add esp, 0xc
push 0
push 0x19
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x48fa68
lea edx, [esp + 4]
push edx
push str.ItemDestop
mov ecx, esi
call fcn.0048f870
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004aeca3
add esp, 0x20c
ret
Function at 0x48fa80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.004afb50
add esp, 0xc
push 0
push 0xb
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x48fad8
lea edx, [esp + 4]
push edx
push str.ItemTopStartMenu
mov ecx, esi
call fcn.0048f870
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004aeca3
add esp, 0x20c
ret

Function at 0x48faf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.004afb50
add esp, 0xc
push 0
push 2
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 4]
push edx
push str.ItemSecondStartMenu
mov ecx, esi
call fcn.0048f870
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004aeca3
add esp, 0x20c
ret

Function at 0x48fb60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov ebx, ecx
mov word [esp + 0x10], 0
call fcn.004afb50
add esp, 0xc
push 0
push 0x1a
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x48fbdb
push esi
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x48fbb0
lea edx, [esp + 0xc]
mov ecx, 0x15
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
push edx
rep movsd dword es:[edi], dword [esi]
push str.ItemQuickLauch
mov ecx, ebx
call fcn.0048f870
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
pop ebx
xor ecx, esp
call fcn.004aeca3
add esp, 0x20c
ret
Function at 0x4908b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.004afb50
add esp, 0xc
call fcn.0046fd70
test eax, eax
push 0
je 0x4908f6
push 0x1a
lea ecx, [esp + 0xc]
push ecx
jmp 0x4908fd
push 0x26
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490910
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
add esi, 0x3c
push eax
mov ecx, esi
call fcn.00402120
push 1
push 0x5a6604
mov ecx, esi
call fcn.00403e10
push 0x11
push str.hao123JuziBrowser
mov ecx, esi
call fcn.00403e10
push 1
push 0x5a6604
mov ecx, esi
call fcn.00403e10
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004aeca3
add esp, 0x20c
ret
Function at 0x491530
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x214
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor ebx, ebx
push 0x206
lea eax, [esp + 0x12]
push ebx
push eax
mov word [esp + 0x18], bx
call fcn.004afb50
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x491624
push 0x57409c
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x491624
push edi
push ebx
lea eax, [esp + 0x14]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jbe 0x49160b
push esi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4915f1
push esi
push edi
push ebx
lea ecx, [esp + 0x20]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4915ea
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0x5a6604
push esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4915ea
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004aeca3
add esp, 0x214
ret
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004aeca3
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004aeca3
add esp, 0x214
ret

Function at 0x491640
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x2b8], eax
push ebx
lea eax, [esp + 4]
push eax
push 0
push 0
push ecx
push 0
xor bl, bl
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x4916cd
push 0x2b0
push eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x14], eax
call fcn.004afb50
mov ecx, dword [esp + 0x10]
add esp, 0xc
push 0x208
push 0x2b4
lea eax, [esp + 0x10]
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
setne bl
test bl, bl
je 0x4916c2
push 0x208
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov ecx, dword [esp + 0x2bc]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004aeca3
add esp, 0x2bc
ret
Function at 0x4937fb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x651788]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x493838
push 0x5846b8
push 4
push eax
call fcn.004b5114
push eax
call fcn.00405360
add esp, 0x10
jmp 0x49384a
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4938b5
push edi
call fcn.004b48fb
mov edi, dword [eax]
call fcn.004b48fb
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004b0ef7
add esp, 0x18
mov ebx, eax
call fcn.004b48fb
cmp dword [eax], 0
je 0x493895
call fcn.004b48fb
push dword [eax]
call fcn.00492834
pop ecx
jmp 0x49389c
call fcn.004b48fb
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4938b5
cmp ebx, esi
jae 0x4938b5
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4938b7
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004aeca3
leave
ret
Function at 0x495e3d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x495e83
call fcn.004932bc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x495e83
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x495ec6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x495eaf
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x495eaf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x495ec3
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x49ba20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x49ba63
call fcn.004932bc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49ba63
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x49ba7e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0049b5da
test ebx, ebx
mov esi, eax
je 0x49ba7c
test edi, edi
je 0x49ba7c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x49ebe0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49ec0e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49ec2c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049eb4a
jmp 0x49ec2c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49ec2c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0049eb4a
test edi, edi
mov eax, edi
jne 0x49ec16
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x659574]
test ecx, ecx
je 0x49ecef
jmp 0x49ebdf
ret 8

Function at 0x4aeca3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x651788]
jne 0x4aecad
repz ret
jmp fcn.004ba538
Function at 0x4b4a45
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4b4a82
cmp dword [ebp + 0x14], edi
je 0x4b4a82
cmp ecx, edi
jne 0x4b4a89
call fcn.004b48fb
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004afdda
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4b4a9d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4b4abe
cmp ebx, 0xffffffff
je 0x4b4aad
push ebx
push edi
push ecx
call fcn.004afb50
add esp, 0xc
cmp esi, edi
je 0x4b4a6a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4b4a6a
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4b4ada
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4b4ae1
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4b4bd2
test word [esi + 0xc], 0x10c
je 0x4b4b35
mov eax, dword [esi + 4]
test eax, eax
je 0x4b4b35
jl 0x4b4c33
cmp ebx, eax
mov edi, ebx
jb 0x4b4b06
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4b4bda
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004ae8c8
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4b4bca
cmp ebx, dword [ebp - 0xc]
jb 0x4b4ba2
cmp dword [ebp - 0xc], 0
je 0x4b4b5f
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x4b4b54
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4b4b5b
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4b4b6a
mov eax, closesocket
cmp ebx, eax
ja 0x4b4b6a
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4b4c06
push eax
push dword [ebp - 8]
push esi
call fcn.004c0559
pop ecx
push eax
call fcn.004c6544
add esp, 0xc
test eax, eax
je 0x4b4c45
cmp eax, 0xffffffff
je 0x4b4c33
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4b4bca
push esi
call fcn.004c0439
cmp eax, 0xffffffff
pop ecx
je 0x4b4c37
cmp dword [ebp - 4], 0
je 0x4b4c06
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4b4ae9
mov eax, dword [ebp + 0x14]
jmp 0x4b4a84
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4b4bf1
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004afb50
add esp, 0xc
call fcn.004b48fb
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4b4a7a
cmp dword [ebp + 0xc], 0xffffffff
je 0x4b4c1c
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004afb50
add esp, 0xc
call fcn.004b48fb
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4b4a7a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4b4a84
or dword [esi + 0xc], 0x10
jmp 0x4b4c37
Function at 0x4b783f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x651978]
je 0x4b785a
inc edi
cmp edi, 0x17
jb 0x4b784b
cmp edi, 0x17
jae 0x4b79da
push ebp
push 3
call fcn.004c6d3e
cmp eax, 1
pop ecx
je 0x4b79a6
push 3
call fcn.004c6d3e
test eax, eax
pop ecx
jne 0x4b788e
cmp dword [0x651768], 1
je 0x4b79a6
cmp ebx, 0xfc
je 0x4b79d9
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x659b10
push ebp
call fcn.004bbb16
add esp, 0xc
test eax, eax
je 0x4b78c4
push esi
push esi
push esi
push esi
push esi
call fcn.004afcde
add esp, 0x14
push 0x104
mov esi, 0x659b29
push esi
push 0
mov byte [0x659c2d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b7908
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004bbb16
add esp, 0xc
test eax, eax
je 0x4b7908
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004afcde
add esp, 0x14
push esi
call fcn.004bbb80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b794d
push esi
call fcn.004bbb80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x659e24
push 0x587c94
sub ecx, eax
push ecx
push eax
call fcn.004c4e1e
add esp, 0x14
test eax, eax
je 0x4b794d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004afcde
add esp, 0x14
jmp 0x4b794f
xor esi, esi
push 0x587c90
push ebx
push ebp
call fcn.004c4dad
add esp, 0xc
test eax, eax
je 0x4b796f
push esi
push esi
push esi
push esi
push esi
call fcn.004afcde
add esp, 0x14
push dword [edi*8 + 0x65197c]
push ebx
push ebp
call fcn.004c4dad
add esp, 0xc
test eax, eax
je 0x4b7991
push esi
push esi
push esi
push esi
push esi
call fcn.004afcde
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004c6b81
add esp, 0xc
jmp 0x4b79d9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4b79d9
cmp ebp, 0xffffffff
je 0x4b79d9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x65197c]
push dword [esi]
call fcn.004bbb80
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4c6b81
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004b83ef
xor ebx, ebx
cmp dword [0x65a618], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4c6c57
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4c6d37
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4c6d37
push eax
call fcn.004b8381
mov dword [esp], 0x5890bc
push edi
mov dword [0x65a618], eax
call esi
push eax
call fcn.004b8381
mov dword [esp], 0x5890a8
push edi
mov dword [0x65a61c], eax
call esi
push eax
call fcn.004b8381
mov dword [0x65a620], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004b524b
test eax, eax
pop ecx
pop ecx
je 0x4c6c25
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004afcde
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4c6c57
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004b8381
cmp eax, ebx
pop ecx
mov dword [0x65a628], eax
je 0x4c6c57
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b8381
pop ecx
mov dword [0x65a624], eax
mov eax, dword [0x65a624]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4c6cdc
cmp dword [0x65a628], ecx
je 0x4c6cdc
push eax
call fcn.004b83f8
push dword [0x65a628]
mov esi, eax
call fcn.004b83f8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4c6cdc
cmp edi, ebx
je 0x4c6cdc
call esi
cmp eax, ebx
je 0x4c6ca9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4c6ca9
test byte [ebp - 0x18], 1
jne 0x4c6cdc
lea eax, [ebp - 0x10]
push eax
call fcn.004b5282
test eax, eax
pop ecx
je 0x4c6cc4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004afcde
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4c6cd3
or dword [ebp + 0x10], 0x200000
jmp 0x4c6d17
or dword [ebp + 0x10], 0x40000
jmp 0x4c6d17
mov eax, dword [0x65a61c]
cmp eax, dword [ebp - 8]
je 0x4c6d17
push eax
call fcn.004b83f8
cmp eax, ebx
pop ecx
je 0x4c6d17
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4c6d17
mov eax, dword [0x65a620]
cmp eax, dword [ebp - 8]
je 0x4c6d17
push eax
call fcn.004b83f8
cmp eax, ebx
pop ecx
je 0x4c6d17
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x65a618]
call fcn.004b83f8
cmp eax, ebx
pop ecx
je 0x4c6d37
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4c6d39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret