joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2fe8
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 0xf0019
push 0
push 0x4c3218
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4c306b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4c3218
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4c306b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4c3234
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4c30f4
xor eax, eax
push ebp
push 0x4c30ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004c2e30
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4c30d2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4c3254
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4c30d2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c30f4
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
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 0x4c320e
cmp byte [ebp - 0xd], 0
jne 0x4c313b
cmp byte [ebp - 0x12], 0
je 0x4c320e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4c3154
dec ebx
cmp byte [ebx], 0x2e
je 0x4c3163
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4c3153
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4c320e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4c31a0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4c320e
cmp byte [ebp - 0xd], 0
je 0x4c320e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4c320e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
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 0x4c398c
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x5120d4], 1
jae 0x4c3a12
mov byte [0x4f0d4c], 2
mov dword [0x511b24], 0x4e2f26
mov dword [0x511b28], 0x4e2f38
mov byte [0x511b62], 2
mov dword [0x511b10], 0x4c2618
call fcn.004c0900
test al, al
je 0x4c39cf
call fcn.004c0930
call fcn.004c09f4
mov word [0x511b68], 0xd7b0
mov word [0x511d34], 0xd7b0
mov word [0x511f00], 0xd7b0
call fcn.004c24e8
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x511b54], eax
call fcn.004be6b4
mov dword [0x511b50], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x511b48], eax
ret
Function at 0x4c5cb0
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.004c632c
test byte [ebp + 0xd], 0xc0
jne 0x4c5cd4
mov eax, dword [0x4f1bc4]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4c5ce1
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4c5d0e
je 0x4c5d20
sub ecx, 0x100
je 0x4c5d2e
sub ecx, 0x100
je 0x4c5d35
sub ecx, 0x100
je 0x4c5d27
jmp 0x4c5d3c
sub ecx, 0x600
je 0x4c5d35
sub ecx, 0x100
je 0x4c5d20
jmp 0x4c5d3c
mov edi, 1
jmp 0x4c5d41
mov edi, 2
jmp 0x4c5d41
mov edi, 4
jmp 0x4c5d41
mov edi, 5
jmp 0x4c5d41
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4c5d68
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4f163c]
test al, 0x80
je 0x4c5d61
mov ebx, 0x80
jmp 0x4c5d7a
mov ebx, 1
jmp 0x4c5d7a
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4c5d7a
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4c5d8c
je 0x4c5d95
dec eax
je 0x4c5d9e
jmp 0x4c5da7
mov dword [ebp - 4], accept
jmp 0x4c5db6
mov dword [ebp - 4], 0x40000000
jmp 0x4c5db6
mov dword [ebp - 4], 0xc0000000
jmp 0x4c5db6
push 1
call fcn.004c6724
pop ecx
mov ebx, eax
jmp 0x4c5ea6
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4c5dd2
sub eax, 0x10
je 0x4c5dd9
sub eax, 0x10
je 0x4c5de2
sub eax, 0x10
je 0x4c5deb
jmp 0x4c5deb
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4c5df2
mov dword [ebp - 8], 1
jmp 0x4c5df2
mov dword [ebp - 8], 2
jmp 0x4c5df2
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_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x4c5e5f
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4c5e54
test byte [ebp + 0xd], 1
je 0x4c5e4f
mov ebx, 0x50
jmp 0x4c5e54
mov ebx, 2
push ebx
call fcn.004c6724
pop ecx
mov ebx, eax
jmp 0x4c5ea6
mov edi, esi
push edi
call fcn.004c585c
pop ecx
test eax, eax
je 0x4c5e73
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4c5e7f
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004c644c
add esp, 8
mov ebx, eax
inc eax
jne 0x4c5ea6
push 4
call fcn.004c6724
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004c6360
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c9fac
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 0x4ca00e
call fcn.004c9f5c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004c4658
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.004c4658
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 0x4ca08c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4f2b58], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4ca166
cmp dword [0x4f2b54], 0
jne 0x4ca166
cmp dword [0x4f2d38], 0
je 0x4ca120
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.004c9e5c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4ca106
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004c9e5c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4ca106
lea ebx, [ebp - 0x84]
jmp 0x4ca107
inc ebx
call fcn.004ca048
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4ca1a1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4f2b5c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004c4658
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4f2b5f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4ca1a1
cmp dword [0x4f2b54], 0
je 0x4ca180
cmp dword [0x4f2b54], 0xffffffff
je 0x4ca1a1
push esi
call dword [0x4f2b54]
pop ecx
mov eax, dword [0x4f2b58]
test eax, eax
je 0x4ca1a1
cmp dword [0x4f2b58], 0xffffffff
je 0x4ca1a1
cmp byte [eax], 0
je 0x4ca1a1
push esi
push eax
call fcn.004c9fac
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d1694
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4d16c2
mov eax, ebx
call fcn.004d214c
cmp dword [ebx + 0x3c], 0
je 0x4d16bb
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4d1733
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4d1725
cmp dword [ebx + 8], 0
je 0x4d16e4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4d16f6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4d1725
cmp dword [ebx + 8], 0
je 0x4d16d7
cmp eax, 3
je 0x4d1709
dec eax
jne 0x4d16d7
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 0x4d16d7
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4d16d7
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4d1751
cmp dword [ebx + 0x10], 0xcc
je 0x4d1751
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.004d175c
pop ebx
ret

Function at 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
call fcn.00401ca0
mov ecx, 0x401bdc
mov eax, 0x4017fd
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401d18
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004020d0
add esp, 0x24
call fcn.00401846
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402edd
Capabilities:
Encode data using xor

Disassembly:
call 0x402df4
mov ecx, 0x1d6
call 0x402edd
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x402ee0
push ecx
push esp
push esp
push ebp
fmulp st(7)
fidivr word [ebp + ebp - 2]
push edx
pop ebp
push esp
aas
stc
inc edi
inc eax
dec ebx
dec esp
xchg ebp, eax
sar dword [edi + edx + 0x18], cl
sbb dword [edx - 0xeb78593], esp
pop ss
sbb byte [ecx], bl
mov byte [0xf1487a6d], al
popal
or ah, byte [ecx - 0x3459df1e]
daa
xlatb
out 0x5f, eax
fdiv dword [ebp + 0x72]
jo 0x402f8c
pop ss
add al, 0x35
mov ebx, dword [ebp + 0x6aacbaba]
stosd dword es:[edi], eax
xor al, 0x85
sbb byte [ecx], al
xor bl, byte [ebp + 0xb]
daa
pop ss
lodsb al, byte [esi]
xor ah, byte [edx - 0x2f3ef404]
loopne 0x402f4e
jno 0x402f35
jmp 0x402f9c
pop ss
jl 0x402f61
aas
loope 0x402f72
push eax
jecxz 0x402efc
mov esp, 0xc95f4bc8
push esp
ljmp 0xc4e3
aaa
mov edx, dword [edx + 0x2b]
xchg edx, eax
inc eax
in eax, 0xf8
xlatb
mov cs, word [edi + 0xf]
in al, 0xb5
sti
fiadd word [ebx]
test byte [ecx], ah
pop edi
mov ss, ecx
cmp byte [ebx - 0x22], 0x41
and dword [edi - 0x72], ebx
rol dword [eax + 0x41dea37c], 1
cmp al, byte [eax]
pop es
invalid
leave
test dl, ah
inc ecx
or byte [edx - 0x35d5604b], ah
or dword [ecx], edi
xor al, byte [ebx - 0x55e4034c]
mov dl, 0x42
pop ebx
jl 0x402f90
inc esp
mov ebp, 0x7c9045d9
mov edi, 0xcbbdc354
sub eax, 0x79e7ee8e
jb 0x402f21
inc ebp
nop
jl 0x402f4f
push esp
ret
pushal
jge 0x403001
push cs
push 0x3857536d
mov al, 0xc2
pop edx
scasd eax, dword es:[edi]
in al, dx
jg 0x402fac
popal
nop
aas
push ebp
rcr dword fs:[edx + 0x2f069a4a], cl
push esp
dec ebp
shl dword [ebx + 0x5f], cl
jbe 0x403004
out 0x98, al
or byte [edi], dl
arpl word [ebx + 0x2d], cx
xor byte [esi - 0x49], 0x54
rcl byte [eax], 0x59
push eax
mov ch, 0xdb
dec ecx
adc ah, ch
add byte [ecx - 0x80], dl
das
inc ebx
cmp al, 0xb7
dec edi
out dx, al
mov al, byte [0xa2ef3abf]
sub dword [ebx + 0x187454ed], ecx
mov byte [0x54ed8b29], al
je 0x403000
inc edi
cli
mov dh, 0x74
stosb byte es:[edi], al
in al, 0x63
jmp 0x403057
popfd
int3
in eax, 0xa
xchg ebx, eax
jl 0x402fe1
invalid
adc byte [ebp - 0xd], cl
test al, 0x5d
int 0xb4
and ebx, ebp
invalid
Function at 0x405d20
Capabilities:
Accept command line arguments

Disassembly:
pop edi
mov ebx, dword [edx - 7]
xchg esi, eax
stosb byte es:[edi], al
or byte [ecx - 0x75], bh
adc al, 0x85
sal byte [ebp + 8], 0x8b
pop ds
and byte [eax + 0x4f75003c], al
mov ecx, dword [esi + 0xc]
mov eax, dword [esi - 0x1a]
cmp ecx, eax
mov dword [esi + 0x14], 0
jge 0x405bbc
mov edi, ebp
sbb al, 0x8b
in eax, dx
mov cl, byte [ecx + 0x3880203f]
sub eax, 0x508a1675
wait
inc eax
test dl, dl
shr dword [eax], 1
mov dword [esi - 0x12], eax
mov ch, al
cmp dl, 0x2d
jne 0x405bd6
inc ecx
mov dword [esp + ecx], esp
mov dword [esi + 0x20], 0x410292
xor cl, byte [ebp + 0x10]
mov al, byte [ebx]
adc byte [edi + 0x5e], bl
mov byte [ecx], al
mov eax, 0xcc117e
pop ebp
ret 0x5310
mov edx, dword [esi + 0x20]
out 0x13, eax
or al, 0xf
mov esi, 0x76834202
mov dword [ecx], ecx
inc esi
adc byte [esi], cl
pop esi
and byte [edi], cl
push eax
rol byte [eax], 1
xor eax, 0xff575000
adc eax, 0xe240c17c
add esp, 8
mov eax, eax
je 0x405cbf
invalid
cmp dword [esi + 0x10], 0x2d
je 0x405bc3
mov edx, dword [esi + 0x43]
cmp byte [edx], 0
insb byte es:[edi], dx
add edi, edi
loopne 0x405ce0
out dx, al
inc esi
add dword [ebp - 0x9db8b40], eax
sub edi, dword [edx]
je 0x405cff
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0x10]
mov edi, 0xe852118b
xchg ecx, eax
dec eax
adc al, byte [eax]
push eax
mov eax, dword [esi - 0x49]
push 0x8df3cc
push eax
call dword [esi + 0x1c]
add esp, 0x10
mov edx, dword [ebp - 0x29]
mov dl, byte [ebp*8 - 0x68d047a1]
add dword [eax], eax
mov byte [edx], cl
jge 0x405d6c
lodsb al, byte [esi]
adc byte [eax], al
nop
nop
nop
nop
pushal
imul edx, dword [eax - 0x6f6f6f70], 0x55fbc990
mov ebp, esp
dec eax
fist dword [edi - 0x18]
cmc
add dword [eax + eax], esi
push edi
call 0x745f20
test eax, eax
cmp al, 0x85
std
add byte [eax], al
add byte [ebx + 0x4108dc3d], al
push 0xee8c0f14
add byte [eax], al
add ah, ah
test byte [ebx], al
inc ecx
in eax, dx
test eax, eax
jne 0xfe5d5c
mov dword [0xae0384], 0xdd004301
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
fdiv st(0)
test esi, esi
je 0x405db3
mov eax, dword [0x3241de]
test eax, eax
jne 0x405d89
mov esi, 0x40f41068
add byte [edx + 4], ch
call 0x5040a940
loopne 0x405d3f
inc ebx
xor al, 0x21
inc eax
inc ecx
add byte [ebx - 0x367b3240], bl
add byte [esi - 0x3117300], cl
push ecx
mov eax, dword [0xf029d0fb]
test esi, esi
je 0x405d25
invalid
mov edx, dword [esp + edi*8]
mov eax, dword [ebp + 0xc]
push edx
push esi
push eax
call 0x65a5d0
hlt
mov eax, dword [0xc05415ff]
inc eax
add byte [ebx + 0x53ff6a0f], cl
call dword [sym.imp.MSVCRT.dll___p__environ]
push eax
call fcn.00405e50
mov edi, dword [ebp + 0x10]
or eax, esp
add al, byte [ebp - 0x7220b701]
xor al, 0x85
add al, 0
add bl, dh
push esi
ret
Function at 0x4971b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6b10]
jne 0x4971c0
repz ret
jmp fcn.0049bc1d

Function at 0x499f00
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c6b10]
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.00494532
and dword [ebp - 0x14], 0
cmp dword [0x4c9cbc], 0
mov dword [ebp - 0x18], eax
jne 0x499fb3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x49a05b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a4030
push ebx
call edi
test eax, eax
je 0x49a05b
mov esi, dword [fcn.00490bb0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c9cbc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c9cc0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c9cc4], eax
call edi
push eax
call esi
mov dword [0x4c9ccc], eax
test eax, eax
je 0x499fb3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c9cc8], eax
mov eax, dword [0x4c9cc8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00490bb4]
cmp eax, ecx
je 0x49a00c
cmp dword [0x4c9ccc], ecx
je 0x49a00c
push eax
call esi
push dword [0x4c9ccc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x49a00c
test ebx, ebx
je 0x49a00c
call edi
test eax, eax
je 0x49a003
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x49a003
test byte [ebp - 8], 1
jne 0x49a00c
or dword [ebp + 0x10], 0x200000
jmp 0x49a03f
mov eax, dword [0x4c9cc0]
cmp eax, dword [ebp - 0x18]
je 0x49a03f
push eax
call esi
test eax, eax
je 0x49a03f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x49a03f
mov eax, dword [0x4c9cc4]
cmp eax, dword [ebp - 0x18]
je 0x49a03f
push eax
call esi
test eax, eax
je 0x49a03f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c9cbc]
call esi
test eax, eax
je 0x49a05b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x49a05d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004971b6
leave
ret

Function at 0x92026
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0xf5e38]
mov edx, dword [esp + 0x30]
mov eax, dword [edx + eax]
mov edi, dword [esp + 0x28]
xor dword [edx + edi], eax
lea edx, [edx + 4]
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov dword [0xf6b58], edx
mov edx, dword [ebp + 0x188]
mov dword [0xf6b40], ebx
cmp dword [0xf671c], 0x62602928
jne fcn.00092026
mov ebx, dword [esp + 0x68]
cmp eax, dword [ebx + edx]
jl 0x9225f
mov dword [0xf6b5c], ecx
lea ecx, [0xf6ae0]
lea ebx, [ebx + 4]
dec dword [ecx + 0x64]
jne 0x8a363
push 0x64
push 0x1f4
push dword [0xf5b60]
push 1
call fcn.00091d5a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0xf6b58]
mov ebx, dword [0xf6b40]
mov dword [esp + 0x30], eax
mov eax, edi
add esp, 0x18
jmp fcn.0009244f
Function at 0x401b10
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401b70
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40539c]
test esi, esi
jle 0x401c70
mov eax, dword [0x4053a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401ba0
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401c1f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401b90
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401c97
mov eax, dword [0x4053a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4053a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401c77
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401c18
sub eax, 4
and eax, 0xfffffffb
jne 0x401c26
add dword [0x40539c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4053a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401c18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x401baa
mov eax, dword [0x4053a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x402150
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
test ebx, ebx
je 0x4021a5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40219e
test esi, esi
je 0x40219e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402180
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4049c0
Capabilities:
Parse pe header

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