joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e8c
Capabilities:
Query environment variable
Terminate process

Disassembly:
or ecx, ecx
je 0x405014
mov eax, dword [edi + 0xc]
mul ecx
mov dword [edi + 0xc], eax
mov ebx, edx
mov eax, dword [edi]
mul ecx
add eax, ebx
adc edx, 0
mov dword [edi], eax
mov ebx, edx
mov eax, dword [edi + 4]
mul ecx
add eax, ebx
adc edx, 0
mov dword [edi + 4], eax
or edx, edx
je 0x404ee5
mov eax, dword [edi]
shrd dword [edi + 0xc], eax, 1
mov eax, dword [edi + 4]
shrd dword [edi], eax, 1
shrd eax, edx, 1
mov dword [edi + 4], eax
shr edx, 1
inc dword [edi + 8]
cmp dword [edi + 8], 0x8000
jge 0x401a40
jmp 0x404eb8
ret

Function at 0x4052fb
Capabilities:
Query environment variable
Terminate process

Disassembly:
push 0x416799
jmp 0x401961
xor eax, eax
mov dword [0x416c54], eax
mov dword [0x416c50], eax
mov word [0x416b56], ax
mov dword [0x416c44], eax
mov eax, dword [0x416bb4]
mov dword [0x416bf4], eax
mov eax, dword [0x416b3c]
mov dword [0x416b5c], eax
mov eax, dword [0x416b40]
mov dword [0x416bf8], eax
mov esi, dword [0x416b60]
mov edi, dword [0x416b64]
xor eax, eax
mov dword [0x416c2c], eax
mov dword [0x416c30], eax
mov dword [0x416bc4], edi
mov dword [0x416bc8], eax
mov dword [0x416bd4], edi
mov dword [0x416bcc], eax
mov dword [0x416bd0], eax
mov dword [0x416bec], eax
mov dword [0x416be0], eax
mov dword [0x416c40], eax
mov dword [0x416c4c], eax
mov dword [0x416bdc], eax
mov dword [0x416c88], eax
mov byte [0x416ca6], al
mov byte [0x416ca7], al
mov byte [0x416ca8], al
mov byte [0x416caa], al
mov byte [0x416ca9], 0x10
call fcn.004054cc
jae 0x40539c
mov eax, dword [0x416b40]
cmp eax, dword [0x416bf8]
je 0x4053c0
sub eax, 0x20
mov eax, dword [eax + 4]
mov dword [0x416b78], eax
jmp 0x401af6
call fcn.0040877e
mov eax, dword [0x416bb4]
cmp eax, dword [0x416b38]
jae 0x405482
test byte [eax + 8], 8
je 0x405404
mov cx, word [0x416b56]
cmp cx, word [eax + 0x12]
jne 0x405404
test byte [eax + 8], 1
je 0x405404
sub cx, word [eax + 0x10]
cmp cx, 1
jne 0x405404
and byte [eax + 8], 0xfe
or byte [0x416ca6], 0xff
test byte [eax + 8], 0x10
je 0x40543c
mov cx, word [0x416b56]
and byte [eax + 8], 0xef
test byte [eax + 8], 0x20
jne 0x405429
cmp cx, word [eax + 0x12]
jne 0x40543c
test byte [eax + 8], 8
je 0x40543c
jmp 0x405435
test byte [eax + 8], 8
je 0x405435
cmp cx, word [eax + 0x12]
je 0x40543c
or byte [0x416ca6], 0xff
test byte [eax + 8], 0x40
je 0x40547a
and byte [eax + 8], 0xbf
test byte [eax + 8], 4
jne 0x405473
mov cx, word [0x416b56]
test byte [eax + 8], 0x80
jne 0x405467
cmp cx, word [eax + 0x10]
jne 0x40547a
test byte [eax + 8], 1
je 0x40547a
jmp 0x405473
test byte [eax + 8], 1
je 0x405473
cmp cx, word [eax + 0x10]
je 0x40547a
or byte [0x416ca6], 0xff
add eax, 0x20
jmp 0x4053ca
cmp byte [0x416ca6], 0
jne 0x4054ac
mov eax, dword [0x416bec]
or eax, eax
je 0x4054cb
mov dword [0x416b78], eax
call 0x40549e
mov eax, dword [0x416bf0]
sub eax, 0x40549e
add dword [esp], eax
ret
inc word [0x416b56]
mov ax, word [0x416b56]
cmp ax, word [0x416b54]
je 0x401955
jmp 0x405312
ret
Function at 0x406e99
Capabilities:
Query environment variable
Terminate process

Disassembly:
or cl, cl
je 0x406ee0
cmp byte [esi + 8], cl
jne 0x406eae
mov al, byte [ebx]
add byte [esi + 0xa], al
jne 0x406ee0
mov byte [esi + 8], 0
ret
cmp byte [esi + 9], cl
jne 0x406ebf
mov al, byte [ebx]
add byte [esi + 0xb], al
jne 0x406ee0
mov byte [esi + 9], 0
ret
cmp byte [esi + 8], 0
jne 0x406ece
mov byte [esi + 8], cl
mov al, byte [ebx]
mov byte [esi + 0xa], al
ret
cmp byte [esi + 9], 0
jne 0x401a22
mov byte [esi + 9], cl
mov al, byte [ebx]
mov byte [esi + 0xb], al
ret

Function at 0x406f4f
Capabilities:
Query environment variable
Terminate process

Disassembly:
or cl, cl
je 0x406ee0
neg byte [ebx]
jmp 0x406e9d

Function at 0x407614
Capabilities:
Query environment variable
Terminate process

Disassembly:
xor ebx, ebx
cmp dword [edi], 0
jne 0x407633
cmp dword [edi + 4], 0
jne 0x407633
cmp byte [0x416ca6], 0
je 0x401a40
jmp 0x4076da
bt dword [esi + 4], 0x1f
jae 0x407649
not dword [esi]
not dword [esi + 4]
add dword [esi], 1
adc dword [esi + 4], 0
not bx
bt dword [edi + 4], 0x1f
jae 0x40765e
not dword [edi]
not dword [edi + 4]
add dword [edi], 1
adc dword [edi + 4], 0
not bl
cmp dword [edi + 4], 0
jne 0x40767c
mov ecx, dword [edi]
mov eax, dword [esi + 4]
xor edx, edx
div ecx
mov dword [esi + 4], eax
mov eax, dword [esi]
div ecx
mov dword [esi], eax
mov eax, edx
xor edx, edx
jmp 0x4076da
mov eax, dword [esi + 4]
xor edx, edx
div dword [edi + 4]
mov ebx, dword [esi]
mov dword [esi], eax
mov dword [esi + 4], 0
mov ecx, edx
mul dword [edi]
cmp ecx, edx
ja 0x4076a6
jb 0x4076af
cmp ebx, eax
jae 0x4076a6
dec dword [esi]
sub eax, dword [edi]
sbb edx, dword [edi + 4]
jae 0x407693
sub ebx, eax
sbb ecx, edx
mov edx, ecx
mov eax, ebx
ret
push eax
push edx
mov eax, edx
sub eax, ecx
xor edx, edx
div dword [edi + 4]
shr eax, 1
je 0x4076d6
sub dword [esi], eax
push eax
mul dword [edi + 4]
sub dword [esp + 4], eax
pop eax
mul dword [edi]
sub dword [esp + 4], eax
sbb dword [esp], edx
pop edx
pop eax
jmp 0x407693
pop edx
pop eax
jmp 0x40769d
or bh, bh
je 0x4076e8
not eax
not edx
add eax, 1
adc edx, 0
or bl, bl
je 0x4076f8
not dword [esi]
not dword [esi + 4]
add dword [esi], 1
adc dword [esi + 4], 0
ret

Function at 0x40787a
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov byte [0x416c9d], 1
mov byte [0x416c8d], 0xff
call fcn.00406ad2
mov eax, dword [edi + 0x10]
mov dword [0x416c34], eax
mov byte [0x416ca1], 0
cmp word [edi + 8], 0
jne 0x401a36
cmp byte [edi + 0xc], 0
je 0x4078ca
cmp dword [0x416bec], 0
jne 0x4078ca
mov eax, dword [0x416b78]
mov dword [0x416bec], eax
mov dword [0x416bf0], 0x401acc
mov eax, dword [edi]
mov edx, dword [edi + 4]
or edx, edx
je 0x4078de
cmp edx, 0xffffffff
jne 0x4078e6
cmp eax, 0xffffff80
jb 0x4078e6
ret
cmp eax, 0x100
jae 0x4078e6
Function at 0x40790a
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov byte [0x416c9d], 2
mov byte [0x416c8d], 0xff
call fcn.00406ad2
cmp word [edi + 8], 0
jne 0x401a36
mov eax, dword [edi + 0x10]
mov dword [0x416c34], eax
mov al, byte [edi + 0xc]
mov byte [0x416ca1], al
cmp al, 2
jb 0x407959
cmp dword [0x416bec], 0
jne 0x407959
mov eax, dword [0x416b78]
mov dword [0x416bec], eax
mov dword [0x416bf0], 0x401acc

Function at 0x407983
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov byte [0x416c9d], 4
mov byte [0x416c8d], 0xff
call fcn.00406ad2
cmp word [edi + 8], 0
jne 0x401a36
mov eax, dword [edi + 0x10]
mov dword [0x416c34], eax
mov al, byte [edi + 0xc]
mov byte [0x416ca1], al
cmp al, 4
jne 0x4079c9
mov byte [0x416ca1], 2
mov eax, dword [edi]
cdq
cmp edx, dword [edi + 4]
jne 0x4078e6
ret

Function at 0x4079e6
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov byte [0x416c9d], 6
mov byte [0x416c8d], 0xff
call fcn.00406ad2
mov eax, dword [edi + 0x10]
mov dword [0x416c34], eax
cmp word [edi + 8], 0
jne 0x401a36
mov al, byte [edi + 0xc]
mov byte [0x416ca1], al
cmp al, 4
jne 0x407a35
cmp dword [0x416bec], 0
jne 0x407a35
mov eax, dword [0x416b78]
mov dword [0x416bec], eax
mov dword [0x416bf0], 0x401acc
mov eax, dword [edi]
mov edx, dword [edi + 4]
cmp edx, 0x10000
jge 0x4078e6
cmp edx, 0xffff8000
jl 0x4078e6
ret

Function at 0x407a53
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov byte [0x416c9d], 8
mov byte [0x416c8d], 0xff
call fcn.00406ad2
cmp word [edi + 8], 0
jne 0x401a36
mov eax, dword [edi + 0x10]
mov dword [0x416c34], eax
mov al, byte [edi + 0xc]
mov byte [0x416ca1], al

Function at 0x407af3
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov byte [0x416c8c], 0
lodsb al, byte [esi]
call fcn.00410c7d
cmp al, 0x28
jne 0x401a36
mov al, byte [0x416c8c]
cmp al, 1
je 0x407b4b
cmp al, 2
je 0x407b40
cmp al, 4
je 0x407b38
cmp al, 6
je 0x407b2f
cmp al, 8
je 0x407b29
or al, al
jne 0x401a36
call fcn.00407a53
ret
call fcn.004079e6
movzx edx, dx
ret
call fcn.00407983
xor edx, edx
ret
call fcn.0040790a
xor edx, edx
movzx eax, ax
ret
call fcn.0040787a
xor edx, edx
movzx eax, al
ret
Function at 0x40840f
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov eax, dword [0x416b70]
mov dword [0x416b74], eax
mov edx, dword [0x416b64]
mov ecx, dword [0x416b68]
add dword [0x416b70], ecx
lea eax, [edx + ecx]
call fcn.004013c3
jb 0x401944
ret

Function at 0x40877e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov al, byte [0x416ca7]
cmp al, 3
je 0x409ddc
cmp al, 4
je 0x40a192
cmp al, 5
je 0x40a915
ret
call fcn.0040924b
mov edx, dword [0x416b64]
mov dword [edx + 0x50], eax
call fcn.004016ac
mov edx, dword [0x416b64]
mov dword [edx + 8], eax
mov eax, dword [0x416c4c]
cmp eax, 0xffffffff
je 0x409e1c
shl eax, 2
sub dword [0x416b5c], eax
btr dword [0x416c44], 0
jae 0x409e1c
or byte [0x416ca6], 0xff
mov eax, dword [0x416c50]
mov word [edx + 6], ax
imul eax, eax, 0x28
movzx ecx, word [edx + 0x14]
lea eax, [eax + ecx + 0x18]
add eax, dword [0x416c54]
mov ecx, dword [edx + 0x3c]
dec ecx
add eax, ecx
not ecx
and eax, ecx
cmp eax, dword [edx + 0x54]
je 0x409e4c
or byte [0x416ca6], 0xff
xor ecx, ecx
add edx, 0x78
test dword [0x416c40], 8
je 0x409e60
add edx, 0x10
mov eax, dword [edx + ecx*8]
or eax, eax
je 0x409e7e
cmp dword [edx + ecx*8 + 4], 0xffffffff
jne 0x409e7e
mov ebx, dword [edx + ecx*8]
mov eax, dword [ebx + 0xc]
mov dword [edx + ecx*8], eax
mov eax, dword [ebx + 8]
mov dword [edx + ecx*8 + 4], eax
inc cl
cmp cl, 0x10
jb 0x409e60
mov ebx, dword [0x416b64]
sub ebx, dword [0x416c54]
mov ecx, edi
sub ecx, ebx
mov ebp, ecx
shr ecx, 1
xor eax, eax
cdq
mov dx, word [ebx]
add eax, edx
mov dx, ax
shr eax, 0x10
add eax, edx
add ebx, 2
loop 0x409e9c
add eax, ebp
mov ebx, dword [0x416b64]
mov dword [ebx + 0x58], eax
ret
call fcn.0040a0a7
cmp byte [0x416ca6], 0
je 0x40a1aa
mov eax, dword [0x416c48]
mov dword [0x416b5c], eax
ret
bt dword [0x416c40], 0
jb 0x40b4d7
call fcn.0040a0a7
cmp byte [0x416ca6], 0
je 0x40a93b
mov eax, dword [0x416c48]
mov dword [0x416b5c], eax
ret
test dword [0x416c40], 8
jne 0x40b513
call fcn.0040b2b4
mov edx, dword [0x416b64]
mov eax, dword [0x416c50]
mov byte [edx + 0x1c], 0x34
mov word [edx + 0x2c], ax
shl eax, 5
add eax, edx
add eax, 0x34
cmp eax, dword [0x416c48]
je 0x40b512
or byte [0x416ca6], 0xff
ret
call fcn.0040b449
mov edx, dword [0x416b64]
mov eax, dword [0x416c50]
mov byte [edx + 0x20], 0x40
mov word [edx + 0x38], ax
imul eax, eax, 0x38
add eax, edx
add eax, 0x40
cmp eax, dword [0x416c48]
je 0x40b542
or byte [0x416ca6], 0xff
ret
Function at 0x408a0f
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov edx, dword [0x416b3c]
bt dword [0x416c40], 4
jb 0x408a3b
mov eax, dword [0x416b6c]
dec eax
shr eax, 4
inc eax
mov word [edx + 0xe], ax
shl eax, 4
movzx ecx, word [edx + 0x10]
add eax, ecx
mov dword [0x416b6c], eax
mov edi, dword [0x416b5c]
mov eax, dword [0x416c4c]
shl eax, 2
add eax, 0x1c
sub edi, eax
xchg dword [0x416b5c], edi
mov ecx, 0xf
add eax, 0xf
and eax, 0xf
sub ecx, eax
xor al, al
rep stosb byte es:[edi], al
sub edi, dword [0x416b5c]
mov ecx, edi
shr edi, 4
mov word [edx], 0x5a4d
mov word [edx + 8], di
mov eax, dword [0x416c4c]
mov word [edx + 6], ax
mov eax, dword [0x416b68]
add eax, ecx
mov esi, eax
shr esi, 9
and eax, 0x1ff
inc si
or ax, ax
jne 0x408a9c
dec si
mov word [edx + 2], ax
mov word [edx + 4], si
mov eax, dword [0x416b6c]
dec eax
shr eax, 4
inc eax
mov esi, dword [0x416b68]
dec esi
shr esi, 4
inc esi
sub eax, esi
mov word [edx + 0xa], ax
add word [edx + 0xc], ax
salc
mov ah, al
or word [edx + 0xc], ax
mov word [edx + 0x18], 0x1c
add dword [0x416b70], ecx
call fcn.004013c3
jb 0x401944
ret

Function at 0x40924b
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov ebx, dword [0x416c5c]
mov edx, dword [0x416b64]
mov eax, edi
sub eax, dword [ebx + 0x14]
jne 0x40926c
bt dword [0x416c40], 5
jb 0x40926c
mov eax, dword [ebx + 0xc]
ret
mov dword [ebx + 8], eax
cmp edi, dword [0x416bdc]
jne 0x409286
cmp dword [edx + 0x38], 0x1000
jb 0x409286
mov edi, dword [0x416bd8]
mov dword [0x416bdc], 0
mov ebp, edi
sub ebp, dword [ebx + 0x14]
mov ecx, dword [edx + 0x3c]
dec ecx
lea eax, [ebp + ecx]
not ecx
and eax, ecx
mov dword [ebx + 0x10], eax
sub eax, ebp
mov ecx, eax
xor al, al
rep stosb byte es:[edi], al
mov eax, dword [0x416b64]
sub eax, dword [0x416c54]
sub dword [ebx + 0x14], eax
mov ecx, dword [ebx + 0x10]
test byte [ebx + 0x24], 0x20
je 0x4092d2
add dword [edx + 0x1c], ecx
cmp dword [edx + 0x2c], 0
jne 0x4092d2
mov eax, dword [ebx + 0xc]
mov dword [edx + 0x2c], eax
test byte [ebx + 0x24], 0x40
je 0x4092f3
add dword [edx + 0x20], ecx
test dword [0x416c40], 8
jne 0x4092f3
cmp dword [edx + 0x30], 0
jne 0x4092f3
mov eax, dword [ebx + 0xc]
mov dword [edx + 0x30], eax
mov eax, dword [ebx + 8]
or eax, eax
je 0x409307
cmp dword [ebx + 0x10], 0
jne 0x409307
or byte [ebx + 0x24], 0x80
add dword [edx + 0x24], ecx
mov ecx, dword [edx + 0x38]
dec ecx
add eax, ecx
not ecx
and eax, ecx
add eax, dword [ebx + 0xc]
add ebx, 0x28
mov dword [0x416c5c], ebx
inc word [0x416c50]
je 0x40195c
ret

Function at 0x40a9c8
Capabilities:
Query environment variable
Terminate process

Disassembly:
inc ecx
mov eax, ecx
shl eax, 8
mov dword [ebx], eax
inc dx
je 0x40195c
mov eax, edx
shl eax, 0x10
mov al, 3
test byte [ebx + 0x14], 0x40
je 0x40a9f0
or ah, 0xff
inc dx
je 0x40195c
stosd dword es:[edi], eax
ret

Function at 0x40ab29
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov eax, dword [ebx]
cmp dword [ebx + 4], 0
je 0x40ab45
cmp dword [ebx + 4], 0xffffffff
jne 0x401a40
bt eax, 0x1f
jae 0x401a40
ret
Function at 0x410c7d
Capabilities:
Query environment variable
Terminate process

Disassembly:
xor ah, ah
cmp al, 0x11
jne 0x410cb1
mov byte [0x416c9f], 1
lodsw ax, word [esi]
xchg ah, al
mov byte [0x416c8d], 1
cmp ah, byte [0x416c8c]
je 0x410cb0
cmp byte [0x416c8c], 0
jne 0x4019e6
mov byte [0x416c8c], ah
ret
mov byte [0x416c9f], 0
cmp al, 0x5b
jne 0x410cb0
mov byte [0x416c8d], 0
ret

Function at 0x4126e3
Capabilities:
Query environment variable
Terminate process

Disassembly:
cmp byte [0x416c8c], 0x20
jne 0x4126ee
or al, 4
mov ah, byte [0x416c8f]
cmp ah, 0x66
je 0x412712
cmp ah, 0xf3
je 0x41270f
cmp ah, 0xf2
je 0x41270c
test ah, ah
jne 0x401a04
ret
or al, 3
ret
or al, 2
ret
or al, 1
ret
Function at 0x403304
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.00404bd4
test esi, esi
jne 0x40333a
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.00404cc4
jmp 0x403358
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031a8
mov edi, eax
test esi, esi
je 0x403358
cmp dword [ebx], 0
je 0x403358
dec esi
jmp 0x403341
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403aa4
Capabilities:
Query or enumerate registry value

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

Function at 0x404a38
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47504c], 0
je 0x404a99
cmp word [0x475220], 0xd7b2
jne 0x404a61
cmp dword [0x475228], 0
jbe 0x404a61
mov eax, 0x47521c
call dword [0x475238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404ac0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47302c], 0
jne 0x404ab5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408fb4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409006
test eax, edx
je 0x409009
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408fc9
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408fef
add ecx, 4
js 0x408fdf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408fec
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409015
test edx, edx
jne 0x408fbc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40ccc8
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 0x40cd01
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404cc4
jmp 0x40cd0a
mov eax, ebx
mov edx, esi
call fcn.00404c28
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cd14
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 0x40cd36
movzx eax, byte [esp]
jmp 0x40cd38
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d3c8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d240
mov eax, dword [0x474e5c]
cmp byte [eax], 0
je 0x40d444
mov eax, dword [0x474c28]
call fcn.0040341c
call fcn.00403014
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.00409ec4
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 0x40d48c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d47a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x474bbc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4777f8]
call fcn.004060a0
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 0x40dd7c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40de52
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404c6c
lea eax, [ebp - 4]
call fcn.004050bc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405064
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40de3c
mov eax, ebx
call fcn.00402eb8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40de35
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 - 4]
call fcn.00405064
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40de1f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40de64
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40de1f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de3c
mov eax, dword [ebp - 0x10]
call fcn.00402ed4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de59
lea eax, [ebp - 4]
call fcn.00404bd4
ret

Function at 0x4200c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4799ec
cmp dword [edi], 0
jne 0x420140
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4799e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x473aec
mov ecx, 2
call fcn.004030a8
mov edx, 0x42009c
lea eax, [esi + 5]
call fcn.004200bc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004200bc
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 0x420115
mov dword [0x4799e8], 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 0x4226b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405064
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42270c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x474fc8]
mov dl, 1
mov eax, dword [0x4221c0]
call fcn.0040d5b8
call fcn.004045e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004222c8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x423864
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 0x42386a
ret