joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403da8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00403fa4
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea edx, [ebp - 0x44]
push edx
push esi
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x403e3f
cmp byte [ebp + 8], 0
jne 0x403e3f
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call main
cmp byte [ebp + 8], 0
jne 0x403e7d
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.00403c2c
lea edx, [ebp - 0x444]
push edx
push esi
call sub.USER32.DLL_SetWindowTextA
push 8
call sub.USER32.DLL_GetSystemMetrics
sub dword [ebp - 0x18], eax
push 5
push esi
call sub.USER32.DLL_GetWindow
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x403f8b
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x403edc
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00403c2c
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x403f7b
lea ecx, [ebp - 0x854]
push ecx
push edi
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x403f04
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call main
push 2
push edi
call sub.USER32.DLL_GetWindow
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x403f9b
inc esi
test edi, edi
je 0x403f9b
cmp esi, 0x200
jl 0x403e9b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404814
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00404048
test eax, eax
je 0x40483a
test ebx, ebx
je 0x40483a
cmp word [ebx], 0
je 0x40483a
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x404842
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x404855
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.004049a4
xor eax, eax
jmp 0x404870
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x404864
cmp eax, 3
jne 0x40486b
mov eax, 2
jmp 0x404870
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00404048
test eax, eax
je 0x40497b
test ebx, ebx
je 0x40497b
cmp word [ebx], 0
je 0x40497b
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x4049a4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.00404048
test eax, eax
je 0x4049d1
test ebx, ebx
je 0x4049d1
cmp word [ebx], 0
je 0x4049d1
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x4049e0
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x404a60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, 0x40bb4c
push edi
push ebp
mov ebp, edx
cmp dword [esi + 4], 0
mov edi, ecx
mov ebx, eax
jne 0x404a7a
call fcn.00404a28
mov eax, ebp
cmp edi, 8
jb 0x404b05
xor ebx, dword [eax]
xor edx, edx
mov dl, bl
sub edi, 8
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
xor ebx, dword [eax + 4]
add eax, 8
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x404a85
xor edx, edx
jmp 0x404b1f
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [esi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp edi, edx
ja 0x404b09
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x404bb8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
push esi
push edi
xor eax, eax
mov dword [ebp - 4], edx
mov dword [ebx + 0xc18], eax
mov edi, ecx
cmp byte [ebp + 8], 0
mov esi, 0x80000000
je 0x404be1
or esi, 0x40000000
mov dword [ebp - 8], 1
cmp byte [ebx + 0x12], 0
jne 0x404bf4
cmp byte [ebp + 0xc], 0
je 0x404bf8
or dword [ebp - 8], 2
call fcn.00404048
test eax, eax
je 0x404c24
test edi, edi
je 0x404c24
cmp word [edi], 0
je 0x404c24
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push esi
push edi
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
jmp 0x404c3d
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x404c56
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x404c56
mov dword [ebx + 0xc18], 1
xor eax, eax
cmp esi, 0xffffffff
mov byte [ebx + 0x13], 0
setne dl
mov dword [ebx + 0xc], eax
and edx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 9], dl
cmp byte [ebp - 9], 0
je 0x404c94
mov dword [ebx + 4], esi
test edi, edi
je 0x404c89
lea eax, [ebx + 0x416]
mov edx, edi
call fcn.00405144
lea eax, [ebx + 0x15]
mov edx, dword [ebp - 4]
call fcn.004053fc
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404d0c
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0xc], 0
jne 0x404d1b
cmp byte [ebx + 0x14], 0
jne 0x404d1f
xor eax, eax
pop ebx
ret
cmp dword [ebx + 4], 0xffffffff
je 0x404d2c
mov eax, ebx
call fcn.00404ca0
call fcn.00404048
test eax, eax
je 0x404d55
cmp word [ebx + 0x416], 0
je 0x404d55
add ebx, 0x416
push ebx
call sub.KERNEL32.DLL_DeleteFileW
test eax, eax
setne al
and eax, 1
jmp 0x404d66
add ebx, 0x15
push ebx
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
setne al
and eax, 1
pop ebx
ret

Function at 0x404e38
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x404e5f
cmp esi, 0x4e20
jle 0x404e55
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x404e9c
mov eax, ebx
call fcn.00404f74
test al, al
je 0x404e97
cmp esi, 0x4e20
jle 0x404e97
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00404e38
jmp 0x404e9f
or eax, 0xffffffff
jmp 0x404e9f
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x405620
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
mov eax, esp
call fcn.00405584
mov ebx, eax
mov eax, dword [0x418724]
call fcn.00405294
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push 0x41873c
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
mov eax, dword [0x40c624]
mov eax, dword [eax + 0x10]
test al, 0x5f
je 0x405678
and eax, 0x7f
push eax
push 0x41873c
call sub.KERNEL32.DLL_SetFileAttributesA
cmp esi, 0xffffffff
jne 0x405697
push 0x41873c
mov eax, 0x6d
call fcn.00402310
push eax
call fcn.004027c8
add esp, 8
jmp 0x4056cf
test ebx, ebx
je 0x4056c9
test bl, 1
je 0x4056a4
mov eax, esp
jmp 0x4056a6
xor eax, eax
test bl, 2
je 0x4056b1
lea edx, [esp + 8]
jmp 0x4056b3
xor edx, edx
test bl, 4
je 0x4056be
lea ecx, [esp + 0x10]
jmp 0x4056c0
xor ecx, ecx
push eax
push edx
push ecx
push esi
call sub.KERNEL32.DLL_SetFileTime
push esi
call sub.KERNEL32.DLL_CloseHandle
add esp, 0x18
pop esi
pop ebx
ret
Function at 0x407cdc
Capabilities:
Set file attributes

Disassembly:
mov edx, 0x40a58e
mov eax, 0x41873c
call fcn.00405234
mov dword [0x418724], eax
test eax, eax
jne 0x407d40
push 0
push 0x41873c
call sub.KERNEL32.DLL_SetFileAttributesA
mov edx, 0x40a58e
mov eax, 0x41873c
call fcn.00405234
mov dword [0x418724], eax
test eax, eax
jne 0x407d40
mov dword [0x40a014], 1
push 0x41873c
mov eax, 0x6e
call fcn.00402310
push eax
call fcn.004027c8
add esp, 8
mov eax, 1
ret
xor eax, eax
ret

Function at 0x407ecc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
cmp dword [0x40c000], 0
jg 0x407eea
dec dword [0x40c000]
xor eax, eax
mov dword [0x418638], eax
or eax, 0xffffffff
pop esi
pop ebx
ret
cmp dword [0x418638], 0
jg 0x407f3f
push dword [0x418654]
mov ecx, 0x2000
mov edx, 1
mov eax, dword [0x418630]
call fcn.004052e0
mov dword [0x418638], eax
test eax, eax
jne 0x407f24
xor edx, edx
or eax, 0xffffffff
mov dword [0x418638], edx
pop esi
pop ebx
ret
add dword [0x41865c], 0x2000
mov edx, dword [0x418630]
mov dword [0x418634], edx
call fcn.00407d94
mov ecx, dword [0x40c624]
test byte [ecx + 0x14], 1
je 0x407f76
mov esi, dword [0x418638]
mov ebx, dword [0x418634]
jmp 0x407f6d
call fcn.00409128
xor byte [ebx], al
mov al, byte [ebx]
and eax, 0xff
call fcn.0040914c
inc ebx
mov edx, esi
add esi, 0xffffffff
test edx, edx
jne 0x407f59
dec dword [0x418638]
mov ecx, dword [0x418634]
inc dword [0x418634]
xor eax, eax
mov al, byte [ecx]
pop esi
pop ebx
ret

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

Disassembly:
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x40804f
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40906e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, eax
mov eax, edx
call fcn.004091b8
mov eax, esp
mov ecx, 0xc
mov edx, ebx
call fcn.00405364
xor ebx, ebx
call fcn.00409128
xor byte [esp + ebx], al
mov al, byte [esp + ebx]
and eax, 0xff
call fcn.0040914c
inc ebx
cmp ebx, 0xc
jl 0x40908c
mov edx, dword [0x40c624]
xor eax, eax
mov al, byte [esp + 0xb]
test byte [edx + 0x14], 2
je 0x4090c5
movzx ecx, word [0x418682]
sar ecx, 8
jmp 0x4090d1
mov ecx, dword [0x418688]
shr ecx, 0x18
movzx ecx, cx
movzx eax, ax
cmp ecx, eax
je 0x4090dd
or eax, 0xffffffff
jmp 0x409120
mov edx, dword [0x418638]
cmp edx, dword [0x40c000]
jle 0x4090f3
mov ebx, dword [0x40c000]
jmp 0x4090f9
mov ebx, dword [0x418638]
mov esi, dword [0x418634]
jmp 0x409115
call fcn.00409128
xor byte [esi], al
mov al, byte [esi]
and eax, 0xff
call fcn.0040914c
inc esi
mov edx, ebx
add ebx, 0xffffffff
test edx, edx
jne 0x409101
xor eax, eax
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x40914c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [0x418848]
push ebx
mov ecx, edx
mov ebx, dword [0x418628]
xor ecx, eax
and ecx, 0xff
shr edx, 8
mov ecx, dword [ebx + ecx*4]
xor ecx, edx
mov dword [0x418848], ecx
and ecx, 0xff
add dword [0x41884c], ecx
imul edx, dword [0x41884c], 0x8088405
inc edx
mov dword [0x41884c], edx
shr edx, 0x18
mov ecx, dword [0x418850]
xor edx, ecx
mov ebx, dword [0x418628]
and edx, 0xff
shr ecx, 8
mov edx, dword [ebx + edx*4]
xor edx, ecx
mov dword [0x418850], edx
pop ebx
ret

Function at 0x409394
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jne 0x4093a8
xor eax, eax
jmp 0x4094a0
call fcn.0040938c
xor ebx, 0xffffffff
cmp edi, 8
jb 0x40947d
xor edx, edx
sub edi, 8
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x4093b9
test edi, edi
je 0x40949b
xor edx, edx
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
dec edi
mov ebx, ecx
jne 0x409481
mov eax, ebx
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
Function at 0x402a1c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040dc
test esi, esi
jne 0x402a52
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004041cc
jmp 0x402a70
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402930
mov edi, eax
test esi, esi
je 0x402a70
cmp dword [ebx], 0
je 0x402a70
dec esi
jmp 0x402a59
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d88
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4d4008], 0x8088405
inc edx
mov dword [ebx + 0x4d4008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403204
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d4024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40329c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40327c
xor eax, eax
push ebp
push 0x403275
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 0x4032b8
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 0x40327c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4d4024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d4024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4da048], 0
je 0x403fc1
cmp word [0x4da21c], 0xd7b2
jne 0x403f89
cmp dword [0x4da224], 0
jbe 0x403f89
mov eax, 0x4da218
call dword [0x4da234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d4070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403fe8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d4034], 0
jne 0x403fdd
push 0
push 0x4d4068
push 0x4d4070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d3c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405da2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040434c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402da4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d8c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405da9
lea eax, [ebp - 0x10]
call fcn.004040dc
ret

Function at 0x40b714
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_1
test eax, eax
jle 0x40b74d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041cc
jmp 0x40b756
mov eax, ebx
mov edx, esi
call fcn.00404130
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b760
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_1
test eax, eax
jle 0x40b781
mov al, byte [esp]
jmp 0x40b783
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c720
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c7f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404174
lea eax, [ebp - 8]
call fcn.004045ec
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040459c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c7e0
mov eax, ebx
call fcn.004026f4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c7d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040459c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c7c3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c808
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c7c3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7e0
mov eax, dword [ebp - 0x10]
call fcn.00402714
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7fd
lea eax, [ebp - 8]
call fcn.004040dc
ret
Function at 0x40cd80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cde4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040434c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040852c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cdeb
lea eax, [ebp - 0xc]
call fcn.004040dc
ret

Function at 0x41b324
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4da884
cmp dword [edi], 0
jne 0x41b3a0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4da880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d4470
mov ecx, 2
call fcn.004028f0
mov edx, 0x41b2fc
lea eax, [esi + 5]
call fcn.0041b31c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b31c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41b375
mov dword [0x4da880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41c96c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41c972
ret

Function at 0x41efc8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41f019
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f000
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41eff0
jmp 0x41f019
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41f001
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4292e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040458c
xor eax, eax
push ebp
push 0x42940e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4293e1
xor eax, eax
push ebp
push 0x4293da
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040439c
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4293af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42939e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040439c
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.0040459c
mov edx, ebx
pop ecx
call fcn.004028f0
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4293a5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4d8ae4]
mov dl, 1
mov eax, dword [0x407284]
call fcn.0040bf8c
call fcn.00403b18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429415
lea eax, [ebp - 4]
call fcn.004040dc
ret