joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1622433
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x8c]
mov ecx, dword [eax]
call fcn.0163c8d0
test eax, eax
jne 0x1622458
xor al, al
pop esi
add esp, 0x24
ret 8
mov eax, dword [esi + 0x7c]
push ebx
cmp eax, 1
jne 0x1622466
lea ebx, [eax + 6]
jmp 0x1622471
xor ebx, ebx
cmp eax, 2
sete bl
add ebx, 8
push edi
lea ecx, [esp + 0x20]
call fcn.012e1090
cmp dword [esi + 0x78], ebx
je 0x16224be
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0x20]
call fcn.012e1120
cmp edi, 0xffffffff
jne 0x1622496
or eax, edi
jmp 0x16224a5
mov ecx, edi
sub ecx, eax
mov eax, 0
sets al
dec eax
and eax, ecx
mov ecx, dword [esi + 0x8c]
mov ecx, dword [ecx]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x58]
call eax
test al, al
je 0x16224c9
cmp dword [esi + 0x78], ebx
jne 0x1622484
pop edi
pop ebx
mov al, 1
pop esi
add esp, 0x24
ret 8
mov ecx, dword [esi + 0x8c]
mov ecx, dword [ecx]
call fcn.0163c8d0
test eax, eax
je 0x16224be
mov dword [esp + 0x1c], 0x184c074
mov edx, 0x184c074
mov eax, 1
lock xadd dword [edx], eax
mov ecx, dword [esi + 0x8c]
mov ecx, dword [ecx]
mov edi, dword [esi + 4]
call fcn.0140f100
cmp dword [esi + 0x78], 7
mov ebx, eax
je 0x16225de
cmp ebx, 5
ja case.0x1622515.3
jmp dword [ebx*4 + 0x1622668]
push 0
push 0x17f6f18
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x17fcefc
call fcn.01288a60
lea eax, [esp + 0x34]
push eax
push 0xe
mov ecx, edi
call fcn.01621230
lea ecx, [esp + 0x34]
call fcn.01261000
jmp 0x1622613
push 0
push 0x17f6ef0
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x17fcefc
call fcn.01288a60
lea edx, [esp + 0xc]
push edx
push 0xf
mov ecx, edi
call fcn.01621230
lea ecx, [esp + 0xc]
call fcn.01261000
jmp 0x1622613
push 0
push 0x17f6ed8
lea eax, [esp + 0x18]
push eax
mov ecx, 0x17fcefc
call fcn.01288a60
lea ecx, [esp + 0x10]
push ecx
push 0x11
mov ecx, edi
call fcn.01621230
lea ecx, [esp + 0x10]
call fcn.01261000
jmp 0x1622613
mov eax, dword [esi + 0x8c]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
call fcn.01285920
push eax
push ebx
mov ecx, edi
call fcn.01621230
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1622613
mov eax, dword [esp + 0x14]
push eax
jmp 0x162260b
mov edx, dword [esi + 0x8c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edx]
call fcn.01285920
push eax
push ebx
mov ecx, edi
call fcn.01621230
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1622613
mov edx, dword [esp + 0x18]
push edx
call fcn.01273020
add esp, 4
push 0
mov ecx, edi
call fcn.014b41d0
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x78], 0xa
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x162263d
mov edx, dword [esp + 0x1c]
push edx
call fcn.01273020
add esp, 4
mov edi, dword [esp + 0x38]
test edi, edi
je 0x162265a
mov eax, dword [esi + 0x8c]
mov ecx, dword [eax]
call fcn.0140f100
cmp eax, 5
jne 0x162265a
mov byte [edi], 1
pop edi
pop ebx
xor al, al
pop esi
add esp, 0x24
ret 8
Function at 0x1639c60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push 8
mov esi, ecx
call fcn.01666532
add esp, 4
test eax, eax
je 0x1639c7c
push 0
mov ecx, eax
call fcn.012a6c90
jmp 0x1639c7e
xor eax, eax
mov dword [esi + 0xc], eax
call fcn.01291070
mov ecx, dword [esi + 0xc]
push eax
call fcn.01270ca0
mov eax, dword [esi + 0xc]
push eax
mov ecx, esi
call fcn.01270ca0
mov ecx, dword [esi + 0xc]
push 7
call fcn.012afe80
mov ecx, esi
pop esi
jmp fcn.01639670
Function at 0x169cae0
Capabilities:
Encrypt data using speck

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x18], 0
je 0x169cd20
push ebx
mov ebx, dword [esp + 0x18]
movzx edx, word [ebx]
push ebp
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.0168d2d0
mov ecx, dword [esp + 0x18]
add esp, 0xc
cmp ecx, 0x1e
jne 0x169cb45
mov ecx, 0x1f
mov dword [esp + 0xc], ecx
mov al, 1
mov dl, byte [edi]
and al, 1
or al, 2
add al, al
add al, al
and dl, 0xfb
or al, dl
mov byte [edi], al
mov eax, dword [esp + 0x24]
mov esi, 1
mov ebp, ecx
cmp eax, esi
jbe 0x169cd18
jmp 0x169cb57
cmp ecx, 0x1c
je 0x169cb1d
cmp ecx, 0x1f
je 0x169cb1d
xor al, al
jmp 0x169cb1f
mov ebx, dword [esp + 0x20]
movzx eax, byte [esi + edi]
and al, 0xfb
or al, 8
lea ecx, [esp + 0x10]
mov byte [esi + edi], al
movzx eax, word [ebx + esi*2]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0168d2d0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [eax + eax*4]
movzx eax, byte [edx + ecx*2 + 0x18116b0]
mov edx, dword [esp + 0x1c]
add al, al
add al, al
add al, al
xor al, byte [esi + edi]
add esp, 0xc
and al, 8
xor byte [esi + edi], al
cmp edx, 0x1b
jne 0x169cc28
movzx ecx, word [ebx + esi*2]
mov eax, ecx
and eax, 0xfc00
mov edx, 0xd800
cmp ax, dx
jne 0x169cbe0
mov edx, dword [esp + 0x24]
dec edx
cmp esi, edx
jae 0x169cbe0
mov dx, word [ebx + esi*2 + 2]
mov ebx, 0xfc00
and dx, bx
mov ebx, 0xdc00
cmp dx, bx
je 0x169cd09
mov edx, 0xdc00
cmp ax, dx
jne 0x169cc43
mov eax, dword [esp + 0x20]
movzx eax, word [eax + esi*2 - 2]
mov edx, eax
and edx, 0xfc00
cmp edx, 0xd800
jne 0x169cc43
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x18]
push edx
shl eax, 0xa
lea edx, [eax + ecx - 0x35fdc00]
push edx
call fcn.0168d2d0
mov edx, dword [esp + 0x1c]
add esp, 0xc
and byte [esi + edi], 0xf7
cmp edx, 0x1c
jl 0x169cc31
or byte [esi + edi], 4
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, 0x1e
jl 0x169cc4e
mov eax, 3
jmp 0x169cc5d
mov edx, 0xb
mov dword [esp + 0x10], edx
jmp 0x169cc31
cmp ecx, 0x1d
jne 0x169cc5d
lea eax, [edx - 0x1e]
neg eax
sbb eax, eax
and eax, 3
cmp edx, 0x1c
je 0x169ccf2
cmp edx, 0x1d
jge case.default.0x169cc9a
mov ebx, edx
cmp edx, 0x1a
jl 0x169cc7b
mov ebx, 0xb
cmp ecx, 0x1a
jl 0x169cc89
mov ecx, 0xb
mov dword [esp + 0xc], ecx
imul ecx, ecx, 0x1a
movzx ecx, byte [ecx + ebx + 0x1811400]
dec ecx
cmp ecx, 3
ja case.default.0x169cc9a
jmp dword [ecx*4 + 0x169cd24]
mov ebx, dword [esp + 0x20]
mov ecx, 0xad
mov eax, 2
cmp word [ebx + esi*2 - 2], cx
jne case.default.0x169cc9a
mov eax, 1
jmp case.default.0x169cc9a
xor eax, eax
cmp ebp, 0x1c
setne al
dec eax
and eax, 2
jmp case.default.0x169cc9a
xor eax, eax
cmp ebp, 0x1c
jne 0x169ccf2
cmp esi, 1
jbe case.default.0x169cc9a
mov cl, byte [esi + edi - 2]
and cl, 0xfe
or cl, 2
mov byte [esi + edi - 2], cl
jmp case.default.0x169cc9a
xor eax, eax
cmp ebp, 0x1c
jne 0x169ccf2
mov dword [esp + 0xc], edx
mov cl, byte [esi + edi - 1]
xor cl, al
mov ebp, edx
mov edx, dword [esp + 0x14]
and cl, 3
xor byte [esi + edi - 1], cl
mov dword [esp + 0x18], edx
inc esi
cmp esi, dword [esp + 0x24]
jb 0x169cb53
mov eax, dword [esp + 0x24]
or byte [eax + edi - 1], 3
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x16be0de
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x16d0200
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x1854370]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ecx, esi
call fcn.0126d1b0
mov edi, eax
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0126da50
and dword [esp + 0x30], 0
mov ecx, edi
call 0x135c780
movzx eax, al
push eax
lea ecx, [esp + 0x18]
call fcn.012a11f0
or edi, 0xffffffff
push edi
push 0x1831e58
mov byte [esp + 0x38], 1
call fcn.01277160
pop ecx
pop ecx
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0x38], 2
call fcn.012684bb
mov ecx, eax
call fcn.01261b46
lea ecx, [esp + 0x14]
push ecx
push eax
call 0x1265ae0
pop ecx
pop ecx
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x16be195
push dword [esp + 0xc]
call fcn.01273020
pop ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.012a03b0
push esi
call fcn.016bde65
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x10]
lock xadd dword [eax], edi
jne 0x16be1c1
push dword [esp + 0x10]
call fcn.01273020
pop ecx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x18306d0
Capabilities:
Get number of processors

Disassembly:
add byte [eax], al
add byte [eax], al
dec edx
lcall 0x16d, 0x5934016c
xor al, 0x59
insd dword es:[edi], dx
add dword [eax + 6], esi
rol byte [esi], 1
Function at 0x1830994
Capabilities:
Get number of processors

Disassembly:
add byte [eax], al
add byte [eax], al
jecxz 0x1830937
insb byte es:[edi], dx
add dword [ecx + ebx*2], esi
xor al, 0x59
Function at 0x1831994
Capabilities:
Get number of processors

Disassembly:
dec edx
sahf
insb byte es:[edi], dx
add dword [ebp + ebx*4 - 0x61f3fe94], edx
insb byte es:[edi], dx
add dword [eax + 0x7a], ebx
add dword es:[eax - 0x10], esp
add dword es:[eax], edx
mov edi, 0xb300143
add dword gs:[eax], esi
or esp, dword [ebp + 1]
xor byte [ebx], cl
add dword gs:[eax], esi
or esp, dword [ebp + 1]
xor byte [ebx], cl
invalid
invalid
lodsb al, byte [esi]
adc al, 0x84
invalid

Function at 0x18319c4
Capabilities:
Get number of processors

Disassembly:
ret
Function at 0x403350
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.004052dc
test esi, esi
jne 0x403386
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.004053cc
jmp 0x4033a4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403254
mov edi, eax
test esi, esi
je 0x4033a4
cmp dword [ebx], 0
je 0x4033a4
dec esi
jmp 0x40338d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4041d4
Capabilities:
Query or enumerate registry value

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

Function at 0x405088
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4da04c], 0
je 0x4050e9
cmp word [0x4da220], 0xd7b2
jne 0x4050b1
cmp dword [0x4da228], 0
jbe 0x4050b1
mov eax, 0x4da21c
call dword [0x4da238]
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 0x405110
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d6030], 0
jne 0x405105
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4d6038], 0
je 0x405286
mov edx, esi
mov eax, ebx
call dword [0x4d6038]
jmp 0x405295
mov eax, 8
call fcn.00402f64
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4da04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405228
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406b9c
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 0x406dcc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c1f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406dcc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c1f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406de8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406ca8
xor eax, eax
push ebp
push 0x406ca1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004069d8
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 0x406c86
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406e08
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406c86
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 0x406ca8
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 0x406dc2
cmp byte [ebp - 0xd], 0
jne 0x406cef
cmp byte [ebp - 0x12], 0
je 0x406dc2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406d08
dec ebx
cmp byte [ebx], 0x2e
je 0x406d17
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406d07
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406dc2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406d54
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 0x406dc2
cmp byte [ebp - 0xd], 0
je 0x406dc2
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 0x406dc2
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 0x4099d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409a26
test eax, edx
je 0x409a29
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4099e9
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 0x409a0f
add ecx, 4
js 0x4099ff
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409a0c
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 0x409a35
test edx, edx
jne 0x4099dc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040576c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a5d9
test al, 0x10
je 0x40a5dd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040576c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a5fd
test al, 0x10
jne 0x40a601
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a700
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040576c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a722
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40db2c
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 0x40db65
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004053cc
jmp 0x40db6e
mov eax, ebx
mov edx, esi
call fcn.00405330
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40db78
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 0x40db9a
movzx eax, byte [esp]
jmp 0x40db9c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40e22c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e0a4
mov eax, dword [0x4d917c]
cmp byte [eax], 0
je 0x40e2a8
mov eax, dword [0x4d8e0c]
call fcn.004037dc
call fcn.004030c0
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.0040a9e8
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 0x40e2f0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e2de
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4d8d88]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4dc7f8]
call fcn.00406980
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 0x40eba8
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 0x40ec7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405374
lea eax, [ebp - 4]
call fcn.004057c4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040576c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ec68
mov eax, ebx
call fcn.00402f64
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ec61
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.0040576c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ec4b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ec90
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ec4b
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 0x40ec68
mov eax, dword [ebp - 0x10]
call fcn.00402f80
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec85
lea eax, [ebp - 4]
call fcn.004052dc
ret

Function at 0x421bd4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00421910
dec esi
jne 0x421bf6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x422d7c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4de9f0
cmp dword [edi], 0
jne 0x422df8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4de9ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d6af8
mov ecx, 2
call fcn.00403154
mov edx, 0x422d54
lea eax, [esi + 5]
call fcn.00422d74
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422d74
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 0x422dcd
mov dword [0x4de9ec], 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 0x4256e8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00425178
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040576c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x425747
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d9018]
mov dl, 1
mov eax, dword [0x425070]
call fcn.0040e3f8
call fcn.00404c50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x425750
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.0040576c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4257a8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d9374]
mov dl, 1
mov eax, dword [0x425070]
call fcn.0040e3f8
call fcn.00404c50
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004251a8
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 0x426ae8
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 0x426aee
ret