joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5930d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5fde10]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x59311e
cmp word [ebx], dx
jne 0x59311e
or byte [eax + edi + 0x28], 4
jmp 0x593123
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x593286
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x593266
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x593164
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x59319a
cmp eax, edx
jae 0x5931a8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x59313f
jmp 0x593286
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x593261
cmp dword [ebp - 0x18], 0
je 0x593261
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5fde10]
test byte [eax + edi + 0x28], 0x48
je 0x593237
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x5931fb
mov word [esi], cx
jmp 0x593232
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5fde10]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5fde10]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5fde10]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x593286
pop eax
cmp word [ebp - 4], ax
jne 0x593247
cmp esi, ebx
jne 0x593247
mov word [esi], ax
jmp 0x593283
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00594f74
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x593286
push 0xd
pop eax
jmp 0x593242
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5fde10]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x593280
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x593286
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x597e4d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5efeb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x597e98
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00597fe8
test al, al
jne 0x597e92
sub edx, 2
cmp edx, edi
jne 0x597e78
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x597eba
lea eax, [edi + 2]
cmp edx, eax
je 0x597eba
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00597d99
add esp, 0x10
jmp 0x597fb4
push esi
lea ecx, [ebp - 0x255]
call fcn.00597fe8
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x597efd
push dword [ebp - 0x25c]
jmp 0x597eaa
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x597f3a
cmp word [ebp - 0x226], 0
je 0x597f5b
cmp word [ebp - 0x226], ax
jne 0x597f3a
cmp word [ebp - 0x224], 0
je 0x597f5b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00597d99
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x597fa7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x597f14
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x597f8f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x597fb4
push 0x597bc9
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0059e950
add esp, 0x10
jmp 0x597f84
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00575a94
leave
ret
Function at 0x5988ca
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x598967
push ebx
push esi
call fcn.00598893
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00593bd7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x598914
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x598966
push edi
push eax
call fcn.0058fc65
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x598934
call fcn.0058fc2b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x598965
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00593bd7
add esp, 0x20
test eax, eax
jne 0x598953
push edi
call fcn.0058fc2b
jmp 0x59895b
push ebx
call fcn.0058fc2b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x59896a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x59897b
pop esi
ret
push ebx
push edi
push esi
call fcn.00598893
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0058fc65
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5989a3
push ebx
push esi
push edi
call fcn.00576360
add esp, 0xc
push 0
call fcn.0058fc2b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5990fd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00598c18

Function at 0x59b06b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0058f940
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x59b0da
cmp esi, dword [ebp - 4]
je 0x59b0d5
cmp dword [ebp + 0xc], 0
je 0x59b0d5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x59b0b2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0059abbb
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x59b0dc
xor eax, eax
inc eax
jmp 0x59b0dc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x59b141
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5efeb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0058f940
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0058f940
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x59b1b8
cmp word [ecx], dx
je 0x59b1b8
mov eax, dword [0x5c4e2c]
push edi
dec eax
push eax
push 0x5c4d18
call fcn.0059b0e0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x59b22b
cmp word [eax], dx
je 0x59b22b
mov eax, dword [edi]
test eax, eax
je 0x59b1dc
cmp word [eax], dx
je 0x59b1dc
lea eax, [ebp - 0x10]
push eax
call fcn.0059aac1
jmp 0x59b1e5
lea eax, [ebp - 0x10]
push eax
call fcn.0059ab5c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x59b255
mov eax, dword [0x5c4d14]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5c4a08
call fcn.0059b0e0
add esp, 0xc
test al, al
je 0x59b255
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x59b220
cmp word [eax], di
je 0x59b220
lea eax, [ebp - 0x10]
push eax
call fcn.0059aac1
pop ecx
jmp 0x59b257
lea eax, [ebp - 0x10]
push eax
call fcn.0059ab5c
jmp 0x59b21d
mov eax, dword [edi]
test eax, eax
je 0x59b242
cmp word [eax], dx
je 0x59b242
lea eax, [ebp - 0x10]
push eax
call fcn.0059aa76
pop ecx
jmp 0x59b255
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x59b320
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0059af65
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x59b320
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x59b320
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x59b320
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x59b2ad
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005922f9
test ebx, ebx
je 0x59b31b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005922f9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x59b320
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x59b320
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0059efbd
add esp, 0x10
xor eax, eax
inc eax
jmp 0x59b322
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00575a94
leave
ret
Function at 0x59e5f3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5efeb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x59e636
call fcn.0057ad42
mov dword [eax], 0xf
call fcn.0057ad55
mov dword [eax], 0xd
call fcn.0057ac57
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00575a94
leave
ret
test eax, eax
jne 0x59e63d
inc eax
jmp 0x59e62a
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x59e628
xor eax, eax
cmp ecx, 1
setne al
jmp 0x59e62a
Function at 0x59f495
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0059f411
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x59f604
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x59f604
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x59f5b9
jg 0x59f4f1
test eax, eax
je 0x59f5af
push 1
push 0x1000
call fcn.0058fdad
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x59f514
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x59f5a6
push 0x8000
push ebx
call fcn.00589aa4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x59f53d
jg 0x59f538
cmp ecx, 0x1000
jb 0x59f53d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005946f8
add esp, 0x10
cmp eax, 0xffffffff
je 0x59f582
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x59f538
jl 0x59f569
test ecx, ecx
jne 0x59f52a
push dword [ebp - 0xc]
push ebx
call fcn.00589aa4
push esi
call fcn.0058fc2b
add esp, 0xc
xor ebx, ebx
jmp 0x59f612
cmp byte [edi + 0x24], 0
je 0x59f599
cmp dword [edi + 0x20], 5
jne 0x59f599
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x59f5a4
mov ebx, dword [edi + 0x18]
jmp 0x59f5a6
xor ebx, ebx
push esi
call fcn.0058fc2b
pop ecx
jmp 0x59f612
test ecx, ecx
jg 0x59f57b
jl 0x59f5b9
test eax, eax
jae 0x59f57b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00594f74
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x59f5d9
cmp byte [edi + 0x1c], 0
je 0x59f57b
jmp 0x59f60a
push ebx
call fcn.00596b49
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x59f57b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x59f612
cmp byte [edi + 0x1c], 0
je 0x59f60f
mov ebx, dword [edi + 0x18]
jmp 0x59f612
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00594f74
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5a04d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5a04fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5a04fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10011d7
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x10010b0
call fcn.01001374
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001212
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001212
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100122a
cmp eax, 0x20b
je 0x1001217
mov dword [ebp - 0x1c], edi
jmp 0x100123e
cmp dword [ecx + 0x84], 0xe
jbe 0x1001212
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001238
cmp dword [ecx + 0x74], 0xe
jbe 0x1001212
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10021d0], 0xffffffff
or dword [0x10021d4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100202c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002028]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10021d8], eax
call fcn.01001370
cmp dword [section..data], edi
jne 0x1001299
push fcn.01001370
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100135e
push 0x1001088
push 0x1001084
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002024]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002020]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001080
push 0x100107c
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010010dc
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001310
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001345
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010013ad
ret
Function at 0x402f6c
Capabilities:
Query or enumerate registry value

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

Function at 0x403cb0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45e048], 0
je 0x403d11
cmp word [0x45e21c], 0xd7b2
jne 0x403cd9
cmp dword [0x45e224], 0
jbe 0x403cd9
mov eax, 0x45e218
call dword [0x45e234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45c06c
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 0x403d38
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45c030], 0
jne 0x403d2d
push 0
push 0x45c064
push 0x45c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403e64
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026cc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x45e049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403e2c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405d6c
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 0x405dd2
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.00404120
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b30
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405dbc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405dd9
lea eax, [ebp - 0x10]
call fcn.00403eb0
ret

Function at 0x40af70
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 0x40afa9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fa0
jmp 0x40afb2
mov eax, ebx
mov edx, esi
call fcn.00403f04
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b664
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b4dc
mov eax, dword [0x45d7e0]
cmp byte [eax], 0
je 0x40b6e0
mov eax, dword [0x45d504]
call fcn.0040299c
call fcn.00402834
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.004086f0
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 0x40b728
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b716
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45d490]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45e664]
call fcn.00405280
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 0x40bf7c
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 0x40c052
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f48
lea eax, [ebp - 8]
call fcn.004043c0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404370
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c03c
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c035
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.00404370
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c01f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c064
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c01f
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 0x40c03c
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c059
lea eax, [ebp - 8]
call fcn.00403eb0
ret

Function at 0x40c544
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 0x40c5a8
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.00404120
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004081bc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5af
lea eax, [ebp - 0xc]
call fcn.00403eb0
ret

Function at 0x41a57c
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.0041a3d4
dec esi
jne 0x41a59e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret