joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479320
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x479351
je 0x4793ab
sub eax, 7
je 0x479372
dec eax
je 0x47939c
sub eax, 0x17
je 0x479450
jmp 0x47948e
add eax, 0xffffff00
sub eax, 9
jb 0x47943c
add eax, 0xffffff09
sub eax, 0xb
jb 0x479404
jmp 0x47948e
mov eax, ebx
call fcn.00465cb0
mov edi, eax
test edi, edi
je 0x4794ee
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x4794f7
jmp 0x4794ee
test byte [ebx + 0x44], 0x20
jne 0x4794f7
jmp 0x4794ee
mov edx, esi
mov eax, ebx
call fcn.00476920
cmp dword [esi + 0xc], 0xffffffff
jne 0x4794f7
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00489204
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00475454
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.004791f8
test eax, eax
je 0x4794f7
mov dword [esi + 0xc], 1
jmp 0x4794f7
mov edx, esi
mov eax, ebx
call fcn.0047928c
test al, al
je 0x4794ee
cmp dword [esi + 0xc], 0
jne 0x4794f7
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0047b988
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x4794f7
mov eax, ebx
call fcn.00475fbc
test al, al
jne 0x4794f7
jmp 0x4794ee
mov eax, ebx
call fcn.0047b988
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x4794ee
cmp dword [0x5d0248], 0
je 0x4794ee
mov eax, dword [0x5d0248]
cmp ebx, dword [eax + 0x24]
jne 0x4794ee
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x5d0248]
call fcn.00476854
jmp 0x4794ee
mov eax, dword [0x5d59f8]
cmp byte [eax + 0x20], 0
je 0x4794ee
mov eax, dword [0x5d59f8]
cmp dword [eax + 0x1c], 0
je 0x4794ee
mov eax, dword [esi]
mov edx, dword [0x5d59f8]
cmp eax, dword [edx + 0x1c]
jne 0x4794ee
lea eax, [ebp - 0x110]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00465bf4
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00492bfc
jmp 0x4794f7
mov edx, esi
mov eax, ebx
call fcn.00476920
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4799b8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x4799d4
cmp dword [esi + 4], 0
je 0x479a01
test byte [ebx + 0x45], 1
jne 0x4799f3
mov eax, ebx
call fcn.004788f0
test eax, eax
jne 0x4799f3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x479b11
mov edx, esi
mov eax, ebx
call fcn.00479630
jmp 0x479b11
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x479b0a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0047b988
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00476854
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004799b8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0047b988
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479b11
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4874d4
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
jne 0x4874e9
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x48dc98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x48dcd1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00493764
jmp 0x48dcda
mov eax, ebx
mov edx, esi
call fcn.004936d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48dce4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x48dd05
mov al, byte [esp]
jmp 0x48dd07
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x492540
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x49256f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00493764
jmp 0x49258d
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004924c8
mov edi, eax
test ebx, ebx
je 0x49258d
cmp dword [esi], 0
je 0x49258d
dec ebx
jmp 0x492576
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x492898
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5d05d8]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x492930
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x492910
xor eax, eax
push ebp
push 0x492909
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x49294c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492910
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x5d05d8]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5d05d8], ax
mov esp, ebp
pop ebp
ret

Function at 0x493630
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00492298
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5d5cc9], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4935f8
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x494d18
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x494ed4
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x494d79
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x494ef0
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x494deb
xor eax, eax
push ebp
push 0x494de4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00494b70
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x494dcd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x494f10
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494deb
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x494ecc
cmp byte [ebp - 0xd], 0
jne 0x494e2d
cmp byte [ebp - 0x12], 0
je 0x494ecc
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x494e46
dec ebx
cmp byte [ebx], 0x2e
je 0x494e55
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x494e45
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x494ecc
inc ebx
cmp byte [ebp - 0x12], 0
je 0x494e82
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x494ecc
cmp byte [ebp - 0xd], 0
je 0x494ecc
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x494ecc
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4951a8
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x495204
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.KERNEL32.DLL_ReadFile
dec eax
pop eax
pop ecx
jne 0x4951f6
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4951eb
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x4951e6
mov eax, 0x64
jmp 0x4951fb
call sub.KERNEL32.DLL_GetLastError
call fcn.004923f0
xor eax, eax
jmp 0x4951e6
mov eax, 0x67
jmp 0x4951fb

Function at 0x495248
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x49528b
push 0
push dword [ebx]
call sub.KERNEL32.DLL_GetFileSize
cmp eax, 0xffffffff
je 0x495282
push eax
push 1
push 0
push 0
push dword [ebx]
call sub.KERNEL32.DLL_SetFilePointer
cmp eax, 0xffffffff
je 0x495282
pop edx
cmp eax, edx
setae al
pop ebx
ret
call fcn.00492400
mov al, 1
jmp 0x495280
mov eax, 0x67
call fcn.004923f0
mov al, 0xff
jmp 0x495280

Function at 0x495378
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x495460
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x5d60ac], 1
jae 0x495452
xor eax, eax
mov dword [0x5d5cb8], eax
xor eax, eax
mov dword [0x5d5cc0], eax
xor eax, eax
mov dword [0x5d5cc4], eax
mov byte [0x5d5cca], 2
mov byte [0x5d5ccb], 2
mov byte [0x5d5ccc], 3
mov word [0x5d6074], 0
mov word [0x5d6084], 1
mov word [0x5d6094], 0xa
mov dword [0x5d609c], 0x80020004
mov dword [0x5d6068], 0x4944a0
mov dword [0x5d606c], 0x494498
mov dword [0x5d6070], 0x4944a0
call fcn.00492868
test al, al
je 0x495411
call fcn.00492898
call fcn.0049295c
mov eax, 0x5d5cd0
mov edx, 0x49546c
call fcn.0048ffee
mov eax, 0x5d5e9c
mov edx, 0x49546c
call fcn.0048ffee
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x5d5cb0], eax
call fcn.00490f54
mov dword [0x5d5cac], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x5d5ca4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495467
ret

Function at 0x497a00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x497a1c
call fcn.00498d78
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x497a38
test bl, 1
je 0x497a38
call fcn.0049f254
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x497c1c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00498914
test byte [ebp + 0xd], 0xc0
jne 0x497c40
mov eax, dword [0x5d15c4]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x497c4d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x497c7a
je 0x497c8c
sub ecx, 0x100
je 0x497c9a
sub ecx, 0x100
je 0x497ca1
sub ecx, 0x100
je 0x497c93
jmp 0x497ca8
sub ecx, 0x600
je 0x497ca1
sub ecx, 0x100
je 0x497c8c
jmp 0x497ca8
mov edi, 1
jmp 0x497cad
mov edi, 2
jmp 0x497cad
mov edi, 4
jmp 0x497cad
mov edi, 5
jmp 0x497cad
mov edi, 3
test byte [ebp + 0xd], 1
je 0x497cd4
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x5d103c]
test al, 0x80
je 0x497ccd
mov ebx, 0x80
jmp 0x497ce6
mov ebx, 1
jmp 0x497ce6
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x497ce6
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x497cf8
je 0x497d01
dec eax
je 0x497d0a
jmp 0x497d13
mov dword [ebp - 4], closesocket
jmp 0x497d22
mov dword [ebp - 4], 0x40000000
jmp 0x497d22
mov dword [ebp - 4], 0xc0000000
jmp 0x497d22
push 1
call fcn.00498d0c
pop ecx
mov ebx, eax
jmp 0x497e0e
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x497d3e
sub eax, 0x10
je 0x497d45
sub eax, 0x10
je 0x497d4e
sub eax, 0x10
je 0x497d57
jmp 0x497d57
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x497d5e
mov dword [ebp - 8], 1
jmp 0x497d5e
mov dword [ebp - 8], 2
jmp 0x497d5e
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x497dc7
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x497dbc
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x497dbc
add ebx, 0xffffffb2
push ebx
call fcn.00498d0c
pop ecx
mov ebx, eax
jmp 0x497e0e
mov edi, esi
push edi
call fcn.00497b80
pop ecx
test eax, eax
je 0x497ddb
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x497de7
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00498a34
add esp, 8
mov ebx, eax
inc eax
jne 0x497e0e
push 4
call fcn.00498d0c
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00498948
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49c054
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x200
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.00496710
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.0049681c
pop ecx
mov edx, 0x200
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.0049681c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x5d21e5
lea ecx, [ebp - 0x200]
push ecx
call fcn.00496710
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.0049681c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.0049d1e4
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x49c165
push esi
call fcn.0049681c
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.0049681c
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0049618c
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x49c13c
xor eax, eax
jmp 0x49c1ec
push esi
call fcn.0049681c
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.0049681c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.0049666c
add esp, 0xc
jmp 0x49c1a5
mov edi, dword [ebx + 0x24]
push edi
call fcn.0049681c
pop ecx
push eax
push esi
call fcn.0049681c
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.0049681c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004961ac
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x49c1a5
xor eax, eax
jmp 0x49c1ec
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.00496710
add esp, 8
push 0x5d21e7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00496710
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.00496710
add esp, 8
push 0x5d21e9
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00496710
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49f1ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x49f24e
call fcn.0049f19c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0049681c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0049681c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x49f2cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x5d27f4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x49f3a6
cmp dword [0x5d27f0], 0
jne 0x49f3a6
cmp dword [0x5d29d4], 0
je 0x49f360
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0049f09c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49f346
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0049f09c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49f346
lea ebx, [ebp - 0x84]
jmp 0x49f347
inc ebx
call fcn.0049f288
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x49f3e1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x5d27f8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0049681c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x5d27fb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x49f3e1
cmp dword [0x5d27f0], 0
je 0x49f3c0
cmp dword [0x5d27f0], 0xffffffff
je 0x49f3e1
push esi
call dword [0x5d27f0]
pop ecx
mov eax, dword [0x5d27f4]
test eax, eax
je 0x49f3e1
cmp dword [0x5d27f4], 0xffffffff
je 0x49f3e1
cmp byte [eax], 0
je 0x49f3e1
push esi
push eax
call fcn.0049f1ec
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a6898
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4a68c6
mov eax, ebx
call fcn.004a733c
cmp dword [ebx + 0x3c], 0
je 0x4a68bf
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4a6937
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x4a6929
cmp dword [ebx + 8], 0
je 0x4a68e8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x4a68fa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4a6929
cmp dword [ebx + 8], 0
je 0x4a68db
cmp eax, 3
je 0x4a690d
dec eax
jne 0x4a68db
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4a68db
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x4a68db
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4a6955
cmp dword [ebx + 0x10], 0xcc
je 0x4a6955
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004a6960
pop ebx
ret
Function at 0x4b9464
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4ba3eb]
shl eax, 2
mov dword [0x4ba3ef], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00496318
pop edx
call fcn.0049627c
call fcn.00496358
push 0
call fcn.00497798
pop ecx
push 0x4ba394
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4ba3f3], eax
push 0
jmp fcn.004a0208
push section..text
push eax
pushfd
pushal
call 0x4b9471
jmp section..text

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.00401533
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401dc7
sub eax, fcn.00401592
push eax
push fcn.00401592
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40107a
mov eax, ebx
lea edx, [ebp - 2]
call fcn.00401461
mov eax, ebx
lea ecx, [ebx + 0x1b600]
call fcn.004014b3
mov esi, ecx
mov eax, ebx
or si, 1
cdq
idiv esi
lea edx, [eax + ecx]
mov eax, ebx
lea ebx, [ebp - 2]
or eax, 0x402054
call fcn.00401592
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401533
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ecx
push edx
enter 0x11c, 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
movzx eax, byte [ebp - 0x18]
sub eax, 0x41
leave
pop edx
pop ecx
ret