joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455ba8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455d53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x455d34
mov dl, 1
mov eax, dword [0x416abc]
call fcn.004031b8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403fc4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x455d23
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00443a08
test al, al
je 0x455d16
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x455d64
lea eax, [ebp - 0x254]
call fcn.004097c4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x455d16
xor eax, eax
push ebp
push 0x455d0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x455d9c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x455cf8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404234
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x455cf8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404234
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455d16
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x455c19
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b45c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455d5a
lea eax, [ebp - 0x260]
call fcn.00403fc4
ret

Function at 0x456688
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x49bbb4]
cmp byte [eax + 0xa5], 0
jne 0x4566f9
cmp dword [0x49bbcc], 0
jne 0x4566ba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x456644
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49bbcc], eax
cmp dword [0x49bbc8], 0
jne 0x4566d5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x49bbc8], eax
cmp dword [0x49bbd0], 0
jne 0x4566f9
push esp
push 0
push 0
push 0x4565e8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x49bbd0], eax
pop edx
ret
Function at 0x4567f0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456807
add esp, 0xfffffff0
call fcn.004034f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f78c
mov eax, dword [0x49a908]
cmp word [eax + 2], 0
jne 0x45682f
mov eax, dword [0x49a908]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457f70
mov eax, dword [0x49aa88]
cmp word [eax + 2], 0
jne 0x456849
mov eax, dword [0x49aa88]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458168
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416458]
call fcn.004031b8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416458]
call fcn.004031b8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42197c]
call fcn.004275c4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4569d0
mov eax, dword [0x49a718]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427994
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x458708
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49a718]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d358
test eax, eax
je 0x45693e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e08
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d380
test eax, eax
je 0x456952
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404234
mov eax, dword [0x49a4ac]
cmp byte [eax], 0
jne 0x456986
mov eax, ebx
call fcn.00456af8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004588e4
mov eax, ebx
call fcn.004592a8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4569c6
call fcn.0040354c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456d78
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49bbb4]
cmp dword [eax + 0x30], 0
je 0x456e22
cmp dword [ebx + 0x94], 0
jne 0x456e1c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456d08
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456e1c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x456de2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456e1c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418a64
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456df1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457984
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4579b9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004040b4
jmp 0x4579c6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404018
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458ac0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458b01
mov eax, esi
call fcn.0043eff0
test al, al
je 0x458b01
mov eax, dword [ebx + 0x84]
call fcn.0043ecec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458b01
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ecec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x459d00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x459d38]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x459d16
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x459d25
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x459d34
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x45a3c8
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x49aa3c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x45a3f5
mov edx, dword [0x49aa3c]
xor edx, edx
call fcn.004513c4
push 0
mov eax, dword [0x49aa3c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x461ad8
Capabilities:
Link many functions at runtime

Disassembly:
mov byte [0x498198], 0
mov eax, dword [0x49ad08]
cmp dword [eax], 2
jne 0x461cb1
mov eax, dword [0x49a720]
cmp dword [eax], 5
jl 0x461cb1
call fcn.0045ec74
test al, al
jne 0x461b09
call fcn.0045ec80
call fcn.0045ec6c
mov dword [0x4981a0], eax
push 0x461cb4
mov eax, dword [0x4981a0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x498164], eax
cmp dword [0x498164], 0
jne 0x461b64
mov edx, 0x8000
mov eax, 0x461cc8
call fcn.0040e0fc
mov dword [0x49819c], eax
mov eax, dword [0x49819c]
mov dword [0x4981a0], eax
push 0x461cb4
mov eax, dword [0x4981a0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x498164], eax
cmp dword [0x498164], 0
je 0x461cac
push 0x461cd4
mov eax, dword [0x4981a0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x498168], eax
cmp dword [0x498168], 0
je 0x461cac
push 0x461ce0
mov eax, dword [0x4981a0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49816c], eax
cmp dword [0x49816c], 0
je 0x461cac
mov byte [0x498198], 1
push 0x461cf0
mov eax, dword [0x4981a0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x498170], eax
push 0x461cfc
mov eax, dword [0x4981a0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x498174], eax
push 0x461d08
mov eax, dword [0x4981a0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x498178], eax
push 0x461d18
mov eax, dword [0x4981a0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49817c], eax
push 0x461d28
mov eax, dword [0x4981a0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x498180], eax
mov edx, 0x8000
mov eax, 0x461d40
call fcn.0040e0fc
mov dword [0x4981a4], eax
cmp dword [0x4981a4], 0
je 0x461cb1
push 0x461d50
mov eax, dword [0x4981a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x498184], eax
push 0x461d6c
mov eax, dword [0x4981a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x498188], eax
push 0x461d8c
mov eax, dword [0x4981a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49818c], eax
push 0x461da8
mov eax, dword [0x4981a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x498190], eax
push 0x461dc0
mov eax, dword [0x4981a4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x498194], eax
ret
call fcn.00461a58
ret
Function at 0x464398
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4644c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00464284
mov eax, dword [esi]
call fcn.0040501c
add eax, 0x28
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x45afd8]
call fcn.004051d8
add esp, 4
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.0040291c
mov ebx, 0x1c
mov eax, dword [ebp - 8]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.0040291c
add ebx, 0x1c
mov eax, dword [esi]
call fcn.0040501c
mov dword [ebp - 0xc], eax
mov eax, dword [0x49abec]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 8]
mov ecx, ebx
call fcn.0045c440
add ebx, 4
mov eax, dword [ebp - 8]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00402bc4
add ebx, 3
mov eax, dword [ebp - 8]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.0040501c
push eax
lea ecx, [ebp - 8]
mov eax, dword [esi]
xor edx, edx
call fcn.0045c368
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.0045c180
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.0045c438
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4644c7
lea eax, [ebp - 8]
mov edx, dword [0x45afd8]
call fcn.004052d8
ret

Function at 0x479854
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4798cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov eax, dword [esi + 0x30]
call fcn.00408264
mov eax, dword [ebp - 8]
mov esi, dword [0x49a560]
mov esi, dword [esi]
mov edx, dword [ebx]
call esi
test eax, eax
je 0x4798ad
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404610
jmp 0x4798b6
mov eax, ebx
xor edx, edx
call fcn.00404610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4798d3
lea eax, [ebp - 8]
call fcn.00403fc4
ret
Function at 0x482030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x48208a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00482024
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0047f3c4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0047efe0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482091
lea eax, [ebp - 4]
call fcn.00403fc4
ret
Function at 0x493004
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404474
xor eax, eax
push ebp
push 0x493156
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x49312e
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.00408e64
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x493117
mov edx, dword [eax + 0xc]
test edx, edx
je 0x493111
mov ebx, dword [edx]
test ebx, ebx
je 0x49310b
lea eax, [ebp - 0x29c]
push eax
xor eax, eax
mov al, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
xor eax, eax
mov al, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
xor eax, eax
mov al, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x493170
call fcn.00409844
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.00404018
mov byte [ebp - 5], 1
jmp 0x49311b
mov byte [ebp - 5], 0
jmp 0x49311b
mov byte [ebp - 5], 0
jmp 0x49311b
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493135
call sub.wsock32.dll_WSACleanup
ret

Function at 0x49317c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49320f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
lea eax, [ebp - 0x100]
call fcn.00408fb8
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebx]
call fcn.00404284
mov edx, eax
mov eax, dword [ebx]
mov ecx, 1
call fcn.004044e4
mov eax, dword [ebp - 0x104]
mov edx, 0x493224
call fcn.004043d0
je 0x4931f6
mov eax, ebx
mov edx, 0x493224
call fcn.0040428c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493216
lea eax, [ebp - 0x104]
call fcn.00403fc4
ret
Function at 0x4937e8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4937fa
add esp, 0xfffffff0
call fcn.004034f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f78c
mov byte [ebx + 0x4d], 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x42b348]
call fcn.0042c568
mov esi, eax
mov dword [ebx + 0x30], esi
mov eax, esi
xor edx, edx
call fcn.0042c6f0
mov eax, dword [ebx + 0x30]
mov edx, 1
call fcn.0042c700
push ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebx + 0x30]
call fcn.0042c710
mov dl, 1
mov eax, dword [0x416abc]
call fcn.004031b8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416abc]
call fcn.004031b8
mov esi, eax
mov dword [ebx + 0x50], esi
mov eax, esi
mov edx, 0x493954
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x50]
mov edx, 0x493970
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x50]
mov edx, 0x49399c
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x4939cc
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
mov dword [ebx + 0x44], esi
push 0x4939dc
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49be90], eax
push 0x4939f0
mov eax, dword [ebx + 0x44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49be8c], eax
push 0x4939fc
mov eax, dword [ebx + 0x44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49be94], eax
push 0x493a14
mov eax, dword [ebx + 0x44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49be98], eax
push 0x493a24
mov eax, dword [ebx + 0x44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49be9c], eax
push 0x493a3c
mov eax, dword [ebx + 0x44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49bea0], eax
push 0x493a50
mov eax, dword [ebx + 0x44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49bea4], eax
push 0x493a5c
mov eax, dword [ebx + 0x44]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x49bea8], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x493945
call fcn.0040354c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x494690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x494868
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, 0x494878
mov dword [ebp - 0xc], eax
test esi, esi
je 0x49482c
lea eax, [ebp - 4]
call fcn.004945bc
test eax, eax
jne 0x49482c
lea eax, [ebp - 8]
push eax
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.wlanapi.dll_WlanGetProfileList
test eax, eax
jne 0x49482c
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
dec ebx
test ebx, ebx
jl 0x494818
inc ebx
mov dword [ebp - 0x10], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0x10]
mov edx, eax
shl eax, 7
add eax, edx
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4 + 8]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
call sub.wlanapi.dll_WlanGetProfile
test eax, eax
jne 0x49480e
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.004041ec
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0xa0]
call fcn.0049317c
lea eax, [ebp - 0xa0]
mov edx, 0x494884
call fcn.0040428c
mov eax, dword [ebp - 0xa0]
call fcn.00404484
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404284
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call sub.kernel32.dll_WriteFile_1
push edi
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x494894
mov edx, 0x4948a4
mov eax, dword [ebp - 0x14]
call fcn.00492f28
lea eax, [ebp - 0x9c]
mov edx, 0x80
call fcn.00406c44
push 0x40
lea eax, [ebp - 0x9c]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x1c]
call fcn.00404484
push eax
push 1
push 0
call sub.kernel32.dll_MultiByteToWideChar_1
push 0
lea eax, [ebp - 0x9c]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
call sub.wlanapi.dll_WlanDeleteProfile
mov eax, dword [ebp - 0xc]
push eax
call sub.wlanapi.dll_WlanFreeMemory
xor eax, eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x10]
dec ebx
jne 0x494712
cmp dword [ebp - 8], 0
je 0x49482c
mov eax, dword [ebp - 8]
push eax
call sub.wlanapi.dll_WlanFreeMemory
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x49483d
push 0
mov eax, dword [ebp - 4]
push eax
call sub.wlanapi.dll_WlanCloseHandle
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49486f
lea eax, [ebp - 0xa0]
call fcn.00403fc4
lea eax, [ebp - 0x1c]
call fcn.00403fc4
lea eax, [ebp - 0x14]
call fcn.00403fc4
ret
Function at 0x68489e
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x1005cb5
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x1001348
call fcn.010056f8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1005cf2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005cf2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1005d0a
cmp eax, 0x20b
je 0x1005cf7
mov dword [ebp - 0x1c], ebx
jmp 0x1005d1e
cmp dword [ecx + 0x84], 0xe
jbe 0x1005cf2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1005d18
cmp dword [ecx + 0x74], 0xe
jbe 0x1005cf2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10071cc], 0xffffffff
or dword [0x10071d0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1007180]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100717c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10071d4], eax
call fcn.01005eae
cmp dword [0x1007108], ebx
jne 0x1005d79
push fcn.01005eae
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01005e97
push 0x1007010
push 0x100700c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1007178]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1007174]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1007008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1005e0f
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1005de3
cmp al, 0x22
jne 0x1005dd5
cmp byte [esi], 0x22
jne 0x1005dec
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1005df6
cmp al, 0x20
jbe 0x1005de8
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1005e1a
movzx eax, word [ebp - 0x50]
jmp 0x1005e1d
cmp byte [esi], 0x20
jbe 0x1005dec
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1005e0f
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1005e3a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1005e6f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01005733
ret