joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4069a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [0x435094], 3
jne 0x4069da
push 0
lea eax, [ebp - 8]
mov word [ebp - 4], 0xd7a
push eax
push 3
lea eax, [ebp - 4]
mov byte [ebp - 2], 0xa
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor al, al
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.00415fd0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp byte [eax + esi], 0
je 0x406a2a
mov ecx, dword [ebp - 0x1c]
mov bl, byte [eax + esi]
cmp bl, 0xa
je 0x406a2a
cmp bl, 0xd
je 0x406a2a
cmp dword [ebp - 0x18], ecx
jne 0x406a13
lea ecx, [ebp - 0x20]
call fcn.00416830
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
inc esi
mov byte [eax + ecx], bl
inc ecx
mov byte [eax + ecx], 0
mov eax, dword [edi]
mov dword [ebp - 0x1c], ecx
cmp byte [eax + esi], 0
jne 0x4069f6
lea ecx, [ebp - 0x14]
call fcn.00416190
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x406a95
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004160d0
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
cmp edi, dword [ebp - 0xc]
jbe 0x406a59
push edi
lea ecx, [ebp - 0x14]
call fcn.00416a60
push esi
push ebx
push dword [ebp - 0x14]
call fcn.0041fb54
push dword [ebp - 0x2c]
mov esi, dword [ebp - 0x14]
call fcn.0041e329
add esp, 0x10
lea eax, [edi + 1]
push eax
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x10], eax
mov word [ecx + eax*2], dx
cmp byte [ebp + 0x10], 0
pop edi
pop esi
pop ebx
push dword [ebp - 0x14]
jne 0x406ab5
push dword [0x434084]
push 0xb
push 0
call fcn.0040be50
add esp, 0x10
jmp 0x406ac1
push 0x20
push 0
call fcn.0040be50
add esp, 0xc
push dword [ebp - 0x14]
call fcn.0041e329
push dword [ebp - 0x20]
call fcn.0041e329
add esp, 8
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4070d0
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30
cmp word [eax + 2], 0x3a
push edi
jne 0x40725d
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x4070f7
cmp ecx, 0x2f
jne 0x40725d
mov ax, word [eax]
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xa], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40725a
lea eax, [ebp - 0x24]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404580
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40724f
push esi
lea ecx, [ebp - 0x18]
call fcn.00416190
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00416300
push str.del__
lea ecx, [ebp - 0x18]
call fcn.00416640
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.004165e0
push 0x42bc8c
lea ecx, [ebp - 0x18]
call fcn.00416640
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.00416640
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.004165e0
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00416640
push str.del__
lea ecx, [ebp - 0x18]
call fcn.00416640
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.004165e0
push 0x42bc8c
lea ecx, [ebp - 0x18]
call fcn.00416640
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 1
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00406e80
add esp, 0xc
lea ecx, [ebp - 4]
push 0
push ecx
push esi
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x30]
mov esi, eax
call fcn.0041e329
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
je 0x40726b
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x40726b
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 0
push dword [ebp - 0x24]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x18]
call fcn.0041e329
add esp, 4
push dword [ebp - 0x24]
call fcn.0041e329
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.0041e329
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x24]
call fcn.00404830
push dword [ebp - 0x18]
call fcn.0041e329
push dword [ebp - 0x24]
call fcn.0041e329
mov eax, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.0041e329
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x407a90
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x43505c], esi
jle 0x407b3d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop dword [eax]
mov eax, dword [0x435058]
lea ecx, [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.004160d0
lea eax, [ebp - 0xc]
push eax
call fcn.00404940
lea eax, [ebp - 0xc]
push 0x434f6c
push eax
call fcn.00406890
lea eax, [ebp - 0xc]
push eax
call fcn.00404940
lea eax, [ebp - 0xc]
push 0x434f78
push eax
call fcn.004067c0
lea eax, [ebp - 0xc]
push 0x434f84
push eax
call fcn.004066f0
lea eax, [ebp - 0xc]
push eax
call fcn.00406960
lea eax, [ebp - 0xc]
push eax
call fcn.00404940
mov eax, dword [0x435058]
add esp, 0x28
mov eax, dword [eax + esi*4]
push dword [ebp - 0xc]
push dword [eax]
call edi
push dword [ebp - 0xc]
call fcn.0041e329
inc esi
add esp, 4
cmp esi, dword [0x43505c]
jl 0x407ab0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408fe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00420176
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x40900b
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x4091f0
Capabilities:
Set current directory

Disassembly:
push esi
push dword [0x434f78]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esi + 8], 0
je 0x40925a
mov eax, dword [esi + 8]
cmp eax, dword [0x434f7c]
jne 0x40924f
mov ecx, dword [0x434f78]
mov eax, dword [esi + 4]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409246
test dx, dx
je 0x409242
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409246
add eax, 4
add ecx, 4
test dx, dx
jne 0x409220
xor eax, eax
jmp 0x40924b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40925a
push dword [esi + 4]
call fcn.00404830
add esp, 4
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [esi + 8], 0
pop esi
mov word [eax], cx
mov al, 1
ret

Function at 0x40a5b0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4343b4]
mov byte [0x434f40], 0
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
push esi
push edi
test eax, 0x200
jne 0x40a633
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
push 0
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push edi
mov esi, eax
push 1
push 0x80
push dword [ebx + 4]
test esi, esi
cmove esi, edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
call edi
push esi
push 0
push 0x80
push dword [ebx + 4]
call edi
mov eax, dword [0x4343b4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
test eax, 0x4000
je 0x40a6ac
push 0x4b2
push dword [ebx + 4]
call edi
push 0x4b2
push dword [ebx + 4]
mov esi, eax
call edi
push 0xfffffffffffffff0
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongW]
or eax, 0x80
push eax
push 0xfffffffffffffff0
push edi
call ebx
mov edi, dword [ebp - 4]
push 0x4b5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4b5
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xfffffffffffffff0
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80
push eax
push 0xfffffffffffffff0
push edi
call ebx
mov ebx, dword [ebp - 4]
mov edi, dword [ebx + 0x10]
push 0x4b2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00406670
add esp, 4
mov ecx, ebx
push dword [ebx + 0xc]
call fcn.0040b960
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
and eax, 3
jmp dword [eax*4 + 0x40a92c]
Function at 0x40acc0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [ebp - 0x10]
push edi
mov edi, ecx
push eax
push 0x4b6
push dword [edi + 4]
call esi
push eax
call fcn.00404b20
mov eax, dword [ebp - 4]
add esp, 8
sub eax, dword [ebp - 0xc]
add eax, 2
cmp dword [edi + 0x38], 0
mov dword [edi + 0x58], eax
jne 0x40ad30
push 0x4b6
push dword [edi + 4]
call esi
test eax, eax
je 0x40ad13
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x38], 0
jne 0x40ad30
push 0x4b7
push dword [edi + 4]
call esi
test eax, eax
je 0x40ad30
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x2b4
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.0041be40
add esp, 0xc
lea eax, [ebp - 0x4d0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push 0x4b7
push dword [edi + 4]
mov dword [edi + 0x50], eax
call esi
push 0x4097b0
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, edi
mov dword [edi + 0x54], eax
call fcn.0040a5b0
mov ecx, edi
mov esi, eax
call fcn.0040bb10
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c060
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebx + 4]
test eax, eax
je 0x40c0c9
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40c0c9
push esi
mov esi, dword [ebx + 4]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
push dword [0x434f18]
push esi
call ebx
push esi
call fcn.00406670
push 0x2d
call fcn.00404c70
add esp, 8
mov edi, eax
mov eax, dword [ebp - 4]
push 0x4b2
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push edi
push esi
call ebx
push esi
call fcn.00406670
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
push 0x40c2f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c890
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x437e60], ecx
inc eax
cmp eax, 0x100
jb 0x40c892
cmp eax, 0x800
jae 0x40c963
nop word [eax + eax]
mov edx, dword [eax*4 + 0x437a60]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x437e60]
mov dword [eax*4 + 0x437e60], edx
inc eax
cmp eax, 0x800
jb 0x40c940
mov dword [0x437e40], 0x429420
mov dword [0x437e38], 0x429420
mov dword [0x437e3c], 0x429340
call fcn.004142d0
mov ecx, dword [0x437e38]
test eax, eax
mov edx, 0x429340
cmove ecx, edx
mov dword [0x437e38], ecx
ret
Function at 0x414280
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4142ca
cmp dword [ebp - 0x130], 5
jb 0x4142ca
lea eax, [ebp - 0x20]
push eax
call fcn.00414400
add esp, 4
test eax, eax
je 0x4142ca
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4146e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41470b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41470b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x414910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edx
mov dword [ebx], 0
nop dword [eax + eax]
cmp esi, dword [0x4345b0]
lea eax, [ebp + 0x10]
push 0
push eax
mov ecx, esi
mov dword [ebp + 0x10], 0
cmova ecx, dword [0x4345b0]
push ecx
push edi
push dword [edx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x414977
test ecx, ecx
je 0x41496c
mov edx, dword [ebp - 4]
add edi, ecx
sub esi, ecx
jne 0x414930
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418d00
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor ecx, ecx
lea esi, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], esi
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
mov dword [ebp - 8], ebx
test edi, edi
je 0x418d3d
nop dword [eax]
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x418d30
cmp ecx, esi
jae 0x418e1a
mov eax, ecx
sub eax, edi
lea esi, [ebx + eax*4]
mov dword [ebp + 8], esi
nop
xor edx, edx
mov ebx, dword [ebx + ecx*4 - 4]
mov eax, ecx
div edi
mov dword [ebp - 4], eax
test edx, edx
jne 0x418db3
movzx edx, bl
movzx esi, byte [edx + str.cw]
mov edx, ebx
shr edx, 0x18
shl esi, 8
movzx eax, byte [edx + str.cw]
or esi, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl esi, 8
shr ebx, 8
movzx eax, byte [eax + str.cw]
or esi, eax
movzx eax, bl
shl esi, 8
movzx ebx, byte [eax + str.cw]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x42c340]
xor ebx, eax
or ebx, esi
mov esi, dword [ebp + 8]
jmp 0x418e00
cmp edi, 6
jbe 0x418e00
cmp edx, 4
jne 0x418e00
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [esi]
add esi, 4
xor eax, ebx
mov dword [ebp + 8], esi
mov ebx, dword [ebp - 8]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, dword [ebp - 0xc]
jb 0x418d50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4244b0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424152
Function at 0x4034d0
Capabilities:
Query or enumerate registry value

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

Function at 0x40438c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ad04c], 0
je 0x4043ed
cmp word [0x4ad220], 0xd7b2
jne 0x4043b5
cmp dword [0x4ad228], 0
jbe 0x4043b5
mov eax, 0x4ad21c
call dword [0x4ad238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ab06c
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 0x404414
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ab030], 0
jne 0x404409
push 0
push 0x4ab064
push 0x4ab06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4068a0
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 0x406906
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.00404780
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403094
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4068f0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40690d
lea eax, [ebp - 0x10]
call fcn.00404510
ret

Function at 0x40c3d0
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c409
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404600
jmp 0x40c412
mov eax, ebx
mov edx, esi
call fcn.00404564
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c41c
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 0x40c43d
mov al, byte [esp]
jmp 0x40c43f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cad4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c93c
mov eax, dword [0x4acbf4]
cmp byte [eax], 0
je 0x40cb50
mov eax, dword [0x4ac8d8]
call fcn.00402e58
call fcn.00402cc8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409568
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cb98
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cb86
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ac85c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ad668]
call fcn.00405cf0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d460
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 0x40d536
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045a8
lea eax, [ebp - 8]
call fcn.00404a20
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049d0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d520
mov eax, ebx
call fcn.00402b3c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d519
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.004049d0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d503
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d548
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d503
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 0x40d520
mov eax, dword [ebp - 0x10]
call fcn.00402b6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d53d
lea eax, [ebp - 8]
call fcn.00404510
ret

Function at 0x40daa4
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 0x40db08
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.00404780
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040907c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db0f
lea eax, [ebp - 0xc]
call fcn.00404510
ret

Function at 0x40e300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x4ac90c]
cmp dword [eax], 0
je 0x40e336
push 0xa
push 0x40e38c
mov eax, dword [0x4ac90c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x4ac90c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x40e382
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x4acc64]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40e382
mov ebx, dword [esp + 4]
push 0xa
push 0x40e38c
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x40e382
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x40e34d
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret