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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x482525
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x482506
mov dl, 1
mov eax, dword [0x422f80]
call fcn.00428494
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.00405b08
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4824f5
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.004714cc
test al, al
je 0x4824e8
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x482534
lea eax, [ebp - 0x394]
call fcn.0040cf3c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4824e8
xor eax, eax
push ebp
push 0x4824e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4825a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4824ca
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00405d08
mov edx, dword [ebp - 0x3a0]
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 0x4824ca
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00405d08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4824e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4823eb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00428280
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 0x48252c
lea eax, [ebp - 0x3a0]
call fcn.00405af8
ret

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

Disassembly:
push ecx
mov eax, dword [0x5081bc]
cmp byte [eax + 0xa9], 0
jne 0x482f86
cmp dword [0x5081d4], 0
jne 0x482f46
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4ffa28]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5081d4], eax
cmp dword [0x5081d0], 0
jne 0x482f61
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5081d0], eax
cmp dword [0x5081d8], 0
jne 0x482f86
push esp
push 0
push 0
mov eax, dword [0x4ffa24]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5081d8], eax
pop edx
ret
Function at 0x4831c8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4831df
add esp, 0xfffffff0
call fcn.004040e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042f404
mov eax, dword [0x501f40]
cmp byte [eax], 0
jne 0x48320c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x5023d0]
cmp word [eax + 2], 0
jne 0x483226
mov eax, dword [0x5023d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00485114
mov eax, dword [0x502534]
cmp word [eax + 2], 0
jne 0x483240
mov eax, dword [0x502534]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00485324
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x433e30]
call fcn.00435c0c
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4857a8
mov dl, 1
mov eax, dword [0x42282c]
call fcn.00403bcc
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x42282c]
call fcn.00403bcc
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x4349e4]
call fcn.0043d20c
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x48341c
mov eax, dword [0x5021e0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0043d610
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x485a58
mov dl, 1
mov eax, dword [0x42282c]
call fcn.00403bcc
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5021e0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0040cd5c
test eax, eax
je 0x48334e
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0040caac
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0040cd44
test eax, eax
je 0x483366
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00405d08
push ebx
push 0x484b28
call fcn.004799d4
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x501f40]
cmp byte [eax], 0
jne 0x4833b7
mov eax, ebx
call fcn.00483590
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.00485c80
mov eax, ebx
call fcn.00486844
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x483414
call fcn.00404138
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483838
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4838da
cmp dword [ebx + 0x90], 0
jne 0x4838d4
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4837b0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x4838d4
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_GetWindowLongW
test al, 8
je 0x48389a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4838d4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.004253cc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4838a9
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x483af8
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5081bc]
cmp dword [eax + 0x170], 0
je 0x483c5d
test bl, bl
jne 0x483bab
cmp dword [esi + 0x98], 0
jne 0x483ba0
mov eax, esi
call fcn.00486694
push eax
push 0x483a04
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x483b71
mov eax, dword [0x5081bc]
cmp byte [eax + 0xcf], 0
je 0x483b71
mov eax, dword [esi + 0xd4]
call fcn.0040705c
mov edi, eax
cmp edi, 0
jl 0x483b71
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x483b5a
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x483ba0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.004253cc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x483b80
inc dword [esi + 0x98]
jmp 0x483c5d
cmp dword [esi + 0x98], 0
jle 0x483c5d
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x483c5d
cmp dword [esi + 0x40], 0
je 0x483c08
mov eax, dword [0x5081bc]
cmp byte [eax + 0xcf], 0
je 0x483c08
mov eax, dword [esi + 0xd4]
call fcn.0040705c
mov edi, eax
cmp edi, 0
jl 0x483c08
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x483bf1
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x483c37
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.004253cc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x483c17
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x4793e0]
call fcn.0040721c
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x484818
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x484883
cmp byte [ebx + 0xcf], 0
jne 0x484883
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405c44
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x484870
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x484890
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405b08
jmp 0x484890
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405b08
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x485e54
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x485ec2
mov eax, esi
call fcn.0046be3c
test al, al
je 0x485ec2
mov eax, dword [ebx + 0x80]
call fcn.0046ba90
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x485ec2
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x485eb6
push 0
mov eax, dword [ebx + 0x80]
call fcn.0046ba90
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.004630ac
jmp 0x485ec2
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.00485ca0
pop esi
pop ebx
ret
Function at 0x4b39e8
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
mov dword [esp], 0x114
push esp
call sub.kernel32.dll_GetVersionExW
cmp dword [esp + 0x10], 2
jne 0x4b3a0d
cmp dword [esp + 4], 5
jb 0x4b3a0d
mov al, 1
jmp 0x4b3a0f
xor eax, eax
add esp, 0x114
ret
Function at 0x4e30f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
xor edx, edx
mov eax, dword [ebx + 0x284]
call fcn.0044f00c
xor eax, eax
mov dword [ebx + 0x28c], eax
mov eax, ebx
call fcn.0046be3c
test al, al
je 0x4e312a
push 0
mov eax, ebx
call fcn.0046ba90
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret

Function at 0x4e6ab7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareBorlandDatabase_Engine
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4e6b0f
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push str.DLLPATH
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4e6b05
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4e6b13
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f004]
jne 0x40100a
repz ret
jmp fcn.004015b9

Function at 0x4053eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403eca
and dword [ebp - 0x14], 0
cmp dword [0x421d68], 0
mov dword [ebp - 0x18], eax
jne 0x40549e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405546
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405546
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x421d68], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x421d6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x421d70], eax
call edi
push eax
call esi
mov dword [0x421d78], eax
test eax, eax
je 0x40549e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x421d74], eax
mov eax, dword [0x421d74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4054f7
cmp dword [0x421d78], ecx
je 0x4054f7
push eax
call esi
push dword [0x421d78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4054f7
test ebx, ebx
je 0x4054f7
call edi
test eax, eax
je 0x4054ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4054ee
test byte [ebp - 8], 1
jne 0x4054f7
or dword [ebp + 0x10], 0x200000
jmp 0x40552a
mov eax, dword [0x421d6c]
cmp eax, dword [ebp - 0x18]
je 0x40552a
push eax
call esi
test eax, eax
je 0x40552a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40552a
mov eax, dword [0x421d70]
cmp eax, dword [ebp - 0x18]
je 0x40552a
push eax
call esi
test eax, eax
je 0x40552a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x421d68]
call esi
test eax, eax
je 0x405546
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405548
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x41b850
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x804
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x810930]
imul eax, eax, 0x343fd
cmp dword [0x812da4], 0x139e
mov dword [0x810930], eax
jne 0x41b891
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PrepareTape]
mov eax, dword [0x810930]
add eax, 0x269ec3
push esi
mov dword [0x810930], eax
movzx esi, word [0x810932]
and esi, 0x7fff
cmp dword [0x812da4], 0x8e7
jne 0x41b8c6
push 0
lea eax, [esp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x804]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x804
ret

Function at 0x41b910
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x41b924
call fcn.0041b850
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x41b917
pop esi
cmp ebx, 0x2d
jne 0x41b93e
mov dword [0x812db0], 0xa62e7790
mov dword [0x812db4], 0xffffffff
ret

Function at 0x41b940
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x4201e8]
sub esp, 0x14
push ebx
mov ebx, dword [0x812da4]
push edi
mov edi, dword [0x810934]
call fcn.0041b8e0
cmp dword [0x812da4], 0x2f
jne 0x41b99a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0041b910
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x41bca0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1818
call fcn.00409f80
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x41bcc9
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xbbe0f4a
jge 0x41bd71
cmp dword [0x812da4], 0xa5f
jne 0x41bd15
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x1018]
push edx
push str.zayekezipusunagozisanuhima
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [ebp - 4], 0x84620b
jne 0x41bd3a
mov eax, dword [0x421008]
mov dword [0x812da4], eax
mov ecx, dword [0x812da4]
add ecx, 0xa231
mov dword [0x812da4], ecx
cmp dword [0x812da4], 0x141
jne 0x41bd6c
push str.wucusipeyekexe_zelisapecuyozabozecaxufer_miweyumeriwosizupuyubahu_regorekuzet_begazixezibunodumekacefasuhato
lea edx, [ebp - 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x4222a8], 0xec58acac
mov dword [0x4222ac], 0xffffffff
jmp 0x41bcc0
call fcn.0041b9b0
jmp dword [0x810934]
Function at 0x401520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x401530
xor eax, eax
pop esi
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 4]
test eax, eax
je 0x401587
push esi
push dword [ebp + 8]
push eax
call sub.zlib1.dll_gzread
mov ebx, eax
add esp, 0xc
cmp ebx, esi
je 0x401580
push dword [edi + 4]
call sub.zlib1.dll_gzeof
add esp, 4
test eax, eax
jne 0x401580
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_read_from_input_file:__s_n
push dword [section..data]
call fcn.00410f40
add esp, 0x10
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
push dword [edi]
push esi
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fread]
mov ebx, eax
add esp, 0x10
cmp ebx, esi
je 0x401580
push dword [edi]
mov esi, dword [sym.imp.MSVCR120.dll_feof]
call esi
add esp, 4
test eax, eax
jne 0x401580
push dword [edi]
call esi
add esp, 4
test eax, eax
je 0x40155e
push str.could_not_read_from_input_file:_end_of_file_n
push dword [section..data]
call fcn.00410f40
add esp, 8
mov eax, ebx
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4015e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 4]
test eax, eax
je 0x4015fe
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call sub.zlib1.dll_gzwrite
add esp, 0xc
pop ebp
ret
push dword [ecx]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
pop ebp
ret
Function at 0x402380
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor bl, bl
mov ecx, edi
mov al, byte [edi]
test al, al
je 0x4023dc
mov edx, 1
jmp 0x4023a0
cmp al, 0xa
je 0x40244e
cmp al, 0xd
je 0x40244e
cmp al, 0x61
jl 0x4023b8
cmp al, 0x7a
jle 0x4023d4
cmp al, 0x41
jl 0x4023c0
cmp al, 0x5a
jle 0x4023d4
cmp al, 0x30
jl 0x4023c8
cmp al, 0x39
jle 0x4023d4
cmp al, 0x5f
je 0x4023d4
cmp al, 0x2e
movzx ebx, bl
cmovne ebx, edx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4023a0
mov esi, dword [ebp + 8]
push str.connect
push esi
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
test bl, bl
je 0x402477
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_69
lea eax, [ebp - 0xc]
push 0x419638
push eax
call sub.LIBPQ.dll_Ordinal_91
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.004022e0
push str._reuse_previouson
push esi
call sub.LIBPQ.dll_Ordinal_91
push dword [ebp - 0xc]
call fcn.00401cd0
push eax
push esi
call sub.LIBPQ.dll_Ordinal_75
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_67
add esp, 0x2c
push 0xa
push esi
call sub.LIBPQ.dll_Ordinal_68
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.database_name_contains_a_newline_or_carriage_return:___s__n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call fcn.00413530
add esp, 0xc
push 1
call dword [sym.imp.MSVCR120.dll_exit]
push edi
call fcn.00401cd0
push eax
push esi
call sub.LIBPQ.dll_Ordinal_75
add esp, 0xc
push 0xa
push esi
call sub.LIBPQ.dll_Ordinal_68
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403cc0
Capabilities:
Allocate thread local storage
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4210a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4210d4], 0
jne 0x403d4c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x421104], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x421608], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403d36
push eax
push dword [0x421188]
push str._s:_WSAStartup_failed:__d_n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call fcn.00413530
push 1
call fcn.00410ee0
add esp, 0x14
push 0
push 0x4050d0
call fcn.00410ea0
add esp, 8
mov byte [0x4210d4], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004175a2
mov esp, ebp
pop ebp
ret
Function at 0x404080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 8
mov eax, dword [ebx + 0x20]
lea esi, [eax + eax*8]
shl esi, 2
call fcn.00412190
mov ecx, dword [ebx + 0x20]
mov edi, eax
add esp, 4
mov dword [edi], ecx
mov dword [edi + 4], 0
cmp dword [ebx + 0x20], 1
je 0x4041ec
push esi
call fcn.00412190
push esi
push 0
push eax
mov dword [edi + 4], eax
call sub.MSVCR120.dll_memset
push 0
push ebx
mov dword [0x421004], 0x4050f0
mov dword [0x4210d8], edi
call fcn.00404400
push 0
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 0x1c
mov dword [ebp + 8], 0
cmp dword [edi], 0
jle 0x4041bf
xor eax, eax
mov dword [ebp - 4], eax
mov esi, dword [edi + 4]
add esi, eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404490
add esp, 4
test eax, eax
js 0x404126
lea eax, [ebp - 0x14]
push eax
call fcn.00404490
add esp, 4
test eax, eax
jns 0x404148
call dword [sym.imp.MSVCR120.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_create_communication_channels:__s_n
push dword [0x421008]
call fcn.00410f40
add esp, 0x10
push 8
mov dword [esi + 4], 1
call fcn.00412190
mov dword [esi], eax
push 8
mov dword [eax], 0
mov eax, dword [esi]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x18], eax
call fcn.00412190
lea ecx, [esi + 0x20]
push ecx
push 0
push eax
push 0x4052a0
push 0
push 0
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.MSVCR120.dll__beginthreadex]
mov ecx, dword [ebp + 8]
add esp, 0x20
mov dword [esi + 0x1c], eax
inc ecx
mov eax, dword [ebp - 4]
add eax, 0x24
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
cmp ecx, dword [edi]
jl 0x404101
push dword [ebx + 0x100]
push ebx
call fcn.00404400
add esp, 8
push 0x4210ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4210ec
mov dword [0x4210e4], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret