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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
lea edi, [ebp - 0x14]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov esi, eax
xor eax, eax
push ebp
push 0x63a1bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.006407e4
mov ebx, eax
mov al, byte [0x63a1cc]
cmp al, bl
je 0x639fec
cmp word [ebp - 0x10], 0xc
jne 0x639fec
mov word [ebp - 0x10], 0x65
cmp byte [esi + 0x138], 0
jne 0x63a180
mov ax, word [ebp - 0x10]
add eax, 0xfffffff0
sub ax, 3
jae 0x63a066
cmp dword [esi + 0x13c], 0
je 0x63a017
xor eax, eax
mov dword [esi + 0x13c], eax
lea edx, [ebp - 0x118]
mov eax, ebx
call fcn.00639e44
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00646734
lea edx, [ebp - 0x118]
mov eax, esi
call fcn.006466a8
mov eax, dword [ebp - 0x118]
call fcn.0040351c
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x88]
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x84]
jmp 0x63a1a3
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
push 0
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
movzx eax, word [ebp - 0x10]
push eax
call sub.user32.dll_ToAscii
mov edi, eax
dec edi
jne 0x63a0b3
cmp byte [ebp - 1], 0x20
jb 0x63a0b3
test bl, 2
jne 0x63a0b3
cmp word [ebp - 0x10], 0x20
jne 0x63a1a3
mov al, byte [0x63a1d0]
cmp al, bl
jne 0x63a1a3
mov byte [esi + 0x13c], bl
mov al, byte [ebp - 0x10]
mov byte [esi + 0x13d], al
mov byte [esi + 0x13e], 0
call fcn.00452ec0
mov edx, dword [esi + 0x13c]
call fcn.00453ab4
test al, al
je 0x63a171
cmp byte [esi + 0x139], 0
je 0x63a15a
mov edx, dword [esi + 0x13c]
mov eax, esi
call fcn.00639ec0
lea edx, [ebp - 0x118]
mov eax, esi
call fcn.006466a8
lea eax, [ebp - 0x118]
mov edx, 0x63a1dc
call fcn.00403524
mov edx, dword [ebp - 0x118]
mov eax, esi
call fcn.00646734
mov byte [esi + 0x138], 1
lea edx, [ebp - 0x118]
mov eax, esi
call fcn.006466a8
mov eax, dword [ebp - 0x118]
call fcn.0040351c
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x88]
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x84]
jmp 0x63a1a3
xor eax, eax
mov dword [esi + 0x13c], eax
mov edx, dword [esi + 0x13c]
mov eax, esi
call fcn.00639ec0
jmp 0x63a1a3
mov edx, dword [esi + 0x13c]
mov eax, esi
call fcn.00639ec0
jmp 0x63a1a3
mov ax, word [ebp - 0x10]
add eax, 0xfffffff0
sub ax, 3
jb 0x63a1a3
mov al, byte [ebp - 0x10]
mov byte [esi + 0x13e], al
mov edx, dword [esi + 0x13c]
mov eax, esi
call fcn.00639ec0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63a1c3
lea eax, [ebp - 0x118]
call fcn.00403274
ret
Function at 0x63d4c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x63d757
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [edx + 6]
cmp eax, 0xa
ja case.0x63d4e4.0
jmp dword [eax*4 + 0x63d4eb]
mov eax, esi
mov bx, 0xfff9
call fcn.00403254
jmp case.0x63d4e4.0
mov eax, esi
mov bx, 0xffe9
call fcn.00403254
jmp case.0x63d4e4.0
mov byte [esi + 0x135], 0
mov eax, esi
mov bx, 0xffe8
call fcn.00403254
mov eax, dword [esi + 0x120]
mov edx, dword [eax]
call dword [edx + 0xc]
mov ebx, eax
mov eax, dword [esi + 0x130]
cmp ebx, eax
jle 0x63d562
mov ebx, eax
cmp ebx, 1
jge 0x63d56c
mov ebx, 1
mov eax, dword [0x672648]
cmp byte [eax], 0
je 0x63d58d
push 0
push ebx
push 0x1701
mov eax, esi
call fcn.0064a424
push eax
call sub.user32.dll_SendMessageW
jmp 0x63d5d2
push 0x9e
mov eax, esi
call fcn.0063ce60
imul ebx
add eax, dword [esi + 0x34]
add eax, 2
push eax
mov eax, dword [esi + 0x30]
push eax
push 0
push 0
push 0
mov eax, esi
call fcn.0064a424
push eax
call sub.user32.dll_SetWindowPos
push 0x5f
push 0
push 0
push 0
push 0
push 0
mov eax, esi
call fcn.0064a424
push eax
call sub.user32.dll_SetWindowPos
cmp byte [esi + 0x135], 0
je 0x63d60d
push 0
push 0
push 0x1f
mov eax, esi
call fcn.0064a424
push eax
call sub.user32.dll_PostMessageW
cmp byte [esi + 0x134], 0
jne 0x63d60d
push 0
push 0
push 0x14f
mov eax, esi
call fcn.0064a424
push eax
call sub.user32.dll_PostMessageW
mov byte [esi + 0x136], 0
jmp case.0x63d4e4.0
cmp byte [0x6787fc], 0
jne case.0x63d4e4.0
mov eax, esi
call fcn.0063cd0c
test eax, eax
jl case.0x63d4e4.0
lea edx, [ebp - 4]
mov eax, esi
call fcn.0063cc68
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00646734
mov eax, esi
mov bx, 0xfffa
call fcn.00403254
mov eax, esi
mov bx, 0xffe9
call fcn.00403254
jmp case.0x63d4e4.0
mov eax, esi
call fcn.0063ccc4
test al, al
je case.0x63d4e4.0
push 0x28
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x63d6bf
push 0x26
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x63d6bf
push 0x24
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x63d6bf
push 0x23
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x63d6bf
push 0x21
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x63d6bf
push 0x22
call sub.user32.dll_GetKeyState
test ax, ax
jge case.0x63d4e4.0
mov byte [esi + 0x136], 1
mov eax, esi
call fcn.0063cd0c
mov dword [esi + 0x13c], eax
jmp case.0x63d4e4.0
cmp byte [esi + 0x136], 0
je case.0x63d4e4.0
mov eax, esi
call fcn.0063ccc4
test al, al
je case.0x63d4e4.0
mov byte [esi + 0x136], 0
mov byte [0x6787fc], 1
mov edx, dword [esi + 0x13c]
mov eax, esi
call fcn.0063cd28
mov eax, esi
mov bx, 0xfffa
call fcn.00403254
mov eax, esi
mov bx, 0xffe9
call fcn.00403254
mov byte [0x6787fc], 0
jmp case.0x63d4e4.0
mov byte [esi + 0x134], 1
mov byte [esi + 0x135], 1
jmp case.0x63d4e4.0
mov byte [esi + 0x134], 0
mov byte [esi + 0x135], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63d75e
lea eax, [ebp - 4]
call fcn.00403274
ret
Function at 0x6405e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x678828
cmp dword [edi], 0
jne 0x640660
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x678824]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x670474
mov ecx, 2
call fcn.004023c8
mov edx, 0x6405bc
lea eax, [esi + 5]
call fcn.006405dc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.006405dc
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 0x640635
mov dword [0x678824], 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 0x640790
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x6407e0]
test si, 4
je 0x6407a4
or bl, 1
test si, 8
je 0x6407ae
or bl, 4
test si, 1
je 0x6407b8
or bl, 8
test si, 2
je 0x6407c2
or bl, 0x10
test si, 0x10
je 0x6407cc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6407db
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x6407e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x64081c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6407fd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x64080c
or bl, 4
test esi, 0x20000000
je 0x640817
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x643810
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x14c]
test eax, eax
je 0x64389b
cmp dword [ebx + 0x24], 0
jne 0x643898
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x643788
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x20]
cmp dword [eax + 0x18], 0
je 0x643898
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 0x643868
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x20]
mov esi, dword [eax + 0x18]
dec esi
cmp esi, 0
jl 0x643898
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*4]
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x643874
inc dword [ebx + 0x24]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x644460
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x1c], 0
je 0x64449f
mov eax, dword [ebx + 0x1c]
call fcn.0064a5b8
test al, al
je 0x644497
mov eax, dword [ebx + 0x1c]
call fcn.0064a424
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x644497
push 0
mov eax, dword [ebx + 0x1c]
call fcn.0064a424
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x1c]
xor edx, edx
mov dword [eax + 0x18], edx
pop ebx
ret
Function at 0x64b3d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov esi, edx
mov word [ebp - 2], ax
mov eax, dword [0x678884]
push eax
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyExA
shl eax, 0x10
test eax, eax
je 0x64b43f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x64b41f
cmp byte [ebp - 0x102], 0
jne 0x64b42b
cmp byte [ebp - 2], 0x60
jb 0x64b42b
cmp byte [ebp - 2], 0x6f
jbe 0x64b458
mov eax, esi
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004034b0
jmp 0x64b458
mov bl, byte [ebp - 2]
test bl, bl
je 0x64b451
mov eax, esi
mov edx, ebx
call fcn.00403418
jmp 0x64b458
mov eax, esi
call fcn.00403274
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x64dfe8
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 0x64dfee
ret

Function at 0x65a8d8
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0x21], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret

Function at 0x65a8e8
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
dec eax
jne 0x65a8fb
mov byte [ebx + 0x21], 0
pop ebx
ret

Function at 0x65b4c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x65b548
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
shr eax, 0xa
jne 0x65b4e5
add ebx, 0x400
push 0
push 0
push 0x1004
mov edi, ebx
and edi, 0xffff
push edi
call sub.kernel32.dll_GetLocaleInfoA
mov esi, eax
test esi, esi
jle 0x65b52d
lea eax, [ebp - 4]
mov edx, esi
call fcn.00403804
push esi
mov eax, dword [ebp - 4]
push eax
push 0x1004
push edi
call sub.kernel32.dll_GetLocaleInfoA
mov edx, 0x4e4
mov eax, dword [ebp - 4]
call fcn.0065daa4
mov ebx, eax
jmp 0x65b532
mov ebx, 0x4e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65b54f
lea eax, [ebp - 4]
call fcn.00403274
ret

Function at 0x65e744
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, ecx
push pe_nt_image_headers32
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x65e76e
mov ecx, eax
dec ecx
mov edx, esp
mov eax, ebx
call fcn.00403964
add esp, 0x200
pop ebx
ret

Function at 0x65e778
Capabilities:
Get geographical location

Disassembly:
push ecx
push 2
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
mov al, byte [esp]
pop edx
ret

Function at 0x92ff24
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x92ff2a
pop ebp
sub ebp, 6
sub ebp, 0x52ff24
jmp 0x92ff88
jmp 0x92ff91
mov eax, 0x52ff24
add eax, ebp
add eax, 0x93
mov ecx, 0x63a
mov edx, 0xd22b1b85
xor byte [eax], dl
inc eax
dec ecx
jne 0x92ffa8
jmp 0x92ffbb
out dx, eax
invalid
Function at 0xa80058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa801a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa8007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8006a
add dl, dl
jne 0xa80089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa800dc
xor eax, eax
add dl, dl
jne 0xa80096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa8017d
add dl, dl
jne 0xa800a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa800b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa800bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa800c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa800d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa80075
mov eax, 1
add dl, dl
jne 0xa800ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa800f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa800e1
sub eax, ebx
mov ebx, 1
jne 0xa80128
mov ecx, 1
add dl, dl
jne 0xa8010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa80119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa80105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa80075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa8013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa8014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa80136
cmp eax, 0x7d00
jae 0xa8016d
cmp eax, 0x500
jb 0xa80168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa80075
cmp eax, 0x7f
ja 0xa80170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa80075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa8019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa80075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc

Function at 0xb26058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b261a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb2607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2606a
add dl, dl
jne 0xb26089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb260dc
xor eax, eax
add dl, dl
jne 0xb26096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2617d
add dl, dl
jne 0xb260a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb260b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb260bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb260c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb260d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb26075
mov eax, 1
add dl, dl
jne 0xb260ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb260f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb260e1
sub eax, ebx
mov ebx, 1
jne 0xb26128
mov ecx, 1
add dl, dl
jne 0xb2610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb26119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb26105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb26075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb2613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb2614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb26136
cmp eax, 0x7d00
jae 0xb2616d
cmp eax, 0x500
jb 0xb26168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb26075
cmp eax, 0x7f
ja 0xb26170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb26075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb2619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb26075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402a38
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.004044a4
test esi, esi
jne 0x402a6e
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.00404594
jmp 0x402a8c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040294c
mov edi, eax
test esi, esi
je 0x402a8c
cmp dword [ebx], 0
je 0x402a8c
dec esi
jmp 0x402a75
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4035cc
Capabilities:
Query or enumerate registry value

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

Function at 0x404328
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x457048], 0
je 0x404389
cmp word [0x45721c], 0xd7b2
jne 0x404351
cmp dword [0x457224], 0
jbe 0x404351
mov eax, 0x457218
call dword [0x457234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x455070
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 0x4043b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x455030], 0
jne 0x4043a5
push 0
push 0x455068
push 0x455070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40575c
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 0x40598c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4057df
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40598c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4057df
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4059a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405868
xor eax, eax
push ebp
push 0x405861
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004055a4
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 0x405846
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4059c8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405846
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 0x405868
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 0x405982
cmp byte [ebp - 0xd], 0
jne 0x4058af
cmp byte [ebp - 0x12], 0
je 0x405982
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4058c8
dec ebx
cmp byte [ebx], 0x2e
je 0x4058d7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4058c7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405982
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405914
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 0x405982
cmp byte [ebp - 0xd], 0
je 0x405982
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 0x405982
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