joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a6a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006260]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x1003aff
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1003a88
sub eax, edx
sar eax, 1
mov ecx, 0x104
cmp eax, ecx
ja 0x1003aff
push esi
push ecx
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcscpy_s
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1003ab9
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x20c]
dec eax
dec eax
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x1003adf
cmp cx, 0x2f
jne 0x1003ae6
xor ecx, ecx
mov word [eax], cx
jmp 0x1003ace
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x1003b01
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01004476
leave
ret
Function at 0x1003b12
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x768
mov eax, dword [0x1006260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [edi + 4]
mov dword [ebp - 0x768], eax
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
mov ecx, dword [edi + 4]
mov eax, ecx
add esp, 0xc
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x1003b52
sub eax, edx
sar eax, 1
sub ebx, eax
mov eax, ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1003b67
sub eax, ecx
sar eax, 1
push 0x1001ba8
lea eax, [ebp + eax*2 - 0x20c]
push ebx
push eax
mov dword [ebp - 0x764], eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x760], eax
cmp eax, 0xffffffff
jne 0x1003bc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x1003d4d
mov ecx, 0x1001ba4
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003bf3
test dx, dx
je 0x1003bef
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003bf3
add eax, 4
add ecx, 4
test dx, dx
jne 0x1003bcd
xor eax, eax
jmp 0x1003bf8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1003d13
mov ecx, 0x1001b9c
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003c31
test dx, dx
je 0x1003c2d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003c31
add eax, 4
add ecx, 4
test dx, dx
jne 0x1003c0b
xor eax, eax
jmp 0x1003c36
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1003d13
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
push eax
push ebx
push dword [ebp - 0x764]
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [edi + 0xc]
add esp, 0x10
test eax, eax
je 0x1003c77
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
push 0x104
lea eax, [ebp - 0x730]
push eax
push dword [edi + 8]
call fcn.01003fd1
test eax, eax
je 0x1003d13
cmp dword [edi + 0xc], 0
je 0x1003cf0
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x30c]
push eax
lea edx, [ebp - 0x20c]
call fcn.01003997
test eax, eax
je 0x1003cf0
test byte [ebp - 0x75c], 0x10
je 0x1003d13
lea esi, [ebp - 0x30c]
call fcn.01003a6a
test eax, eax
je 0x1003d13
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
mov eax, esi
push eax
mov eax, dword [ebp + 8]
call fcn.010037dc
jmp 0x1003d13
lea esi, [ebp - 0x20c]
call fcn.01003a6a
test eax, eax
je 0x1003d13
mov eax, esi
push eax
mov eax, dword [ebp - 0x768]
call fcn.010038b5
mov esi, eax
test esi, esi
jne 0x1003d30
lea eax, [ebp - 0x75c]
push eax
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
jne 0x1003bc2
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x1003d4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1003d4b
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01004476
leave
ret 8
Function at 0x1004467
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1004928
call fcn.01004654
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100786c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100427c
cmp eax, esi
jne 0x100426f
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100427f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004256
xor esi, esi
inc esi
mov eax, dword [0x1007868]
cmp eax, esi
jne 0x1004292
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10042cd
mov eax, dword [0x1007868]
test eax, eax
jne 0x10042c7
mov dword [0x1007868], esi
push 0x1001188
push 0x100117c
call fcn.010041d3
pop ecx
pop ecx
test eax, eax
je 0x10042cd
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1004397
mov dword [0x10062d4], esi
mov eax, dword [0x1007868]
cmp eax, esi
jne 0x10042f1
push 0x1001178
push 0x1001170
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1007868], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10042fe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1007870], ebx
je 0x100431f
push 0x1007870
call fcn.010045c9
pop ecx
test eax, eax
je 0x100431f
push ebx
push 2
push ebx
call dword [0x1007870]
push dword [0x10062bc]
push dword [0x10062c0]
push dword [0x10062b8]
call fcn.010025fd
add esp, 0xc
mov dword [0x10062d0], eax
cmp dword [0x10062c4], ebx
jne 0x100437d
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10062d4], ebx
jne 0x100438b
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10062d0]
call fcn.01004699
ret
call fcn.010047a1
jmp 0x1004234
Function at 0x1001c41
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10050b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
xor eax, eax
push eax
mov byte [ebp - 0xc], 0
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push 4
pop edi
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
test eax, eax
je 0x1001ce8
cmp dword [ebp - 0x10], edi
jne 0x1001ce8
push edi
lea eax, [ebp - 0xc]
push 0x1001744
push eax
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1001ce8
and dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
je 0x1001ce8
cmp dword [ebp - 0x10], edi
jne 0x1001ce8
cmp dword [ebp - 0x14], 1
jne 0x1001ce8
cmp dword [ebp - 0x18], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
je 0x1001cfb
push 0
lea eax, [ebp - 0x10]
push eax
push 0x40
push dword [ebp - 0x18]
push ebx
call esi
test eax, eax
je 0x1001ce8
cmp dword [ebp - 0x10], 0x40
je 0x1001d09
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100377d
leave
ret 0xc
push 1
push 0
push 0x40
push ebx
call edi
cmp eax, 0xffffffff
je 0x1001ce8
push 1
push 0
push 0x18
push ebx
call edi
cmp eax, 0xffffffff
je 0x1001ce8
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
je 0x1001ce8
cmp dword [ebp - 0x10], 4
jne 0x1001ce8
cmp dword [ebp - 0x14], 1
jne 0x1001ce8
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
je 0x1001ce8
cmp dword [ebp - 0x10], 4
jne 0x1001ce8
cmp dword [ebp - 0x14], 1
jne 0x1001ce8
push 1
push 0
push 0x18
push ebx
call edi
cmp eax, 0xffffffff
je 0x1001ce8
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
je 0x1001ce8
cmp dword [ebp - 0x10], 4
jne 0x1001ce8
cmp dword [ebp - 0x14], 1
jne 0x1001ce8
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push ebx
call esi
test eax, eax
je 0x1001ce8
cmp dword [ebp - 0x10], 4
jne 0x1001ce8
cmp dword [ebp - 0x14], 0x40
jne 0x1001ce8
push 0
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp - 0x1c]
push ebx
call esi
test eax, eax
je 0x1001ce8
cmp dword [ebp - 0x10], 4
jne 0x1001ce8
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
test eax, eax
je 0x1001ce8
cmp dword [ebp - 0x10], 4
jne 0x1001ce8
cmp dword [ebp - 0x24], 0
jne 0x1001ce8
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push ebx
call esi
test eax, eax
je 0x1001ce8
cmp dword [ebp - 0x10], 4
jne 0x1001ce8
push 1
push 0
push 0x2c
push ebx
call edi
cmp eax, 0xffffffff
je 0x1001ce8
push 1
push 0
push dword [ebp - 0x20]
push ebx
call edi
cmp eax, 0xffffffff
setne al
jmp 0x1001cea
Function at 0x10020bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10050b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov byte [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1002109
mov dword [ebp - 0x14], 0x80070006
jmp 0x100217c
push edi
lea eax, [ebp - 0x18]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100213d
cmp dword [ebp - 0x18], 8
jne 0x100213d
push 8
lea eax, [ebp - 0x10]
push 0x100174c
push eax
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x1002146
mov dword [ebp - 0x14], 0x80040205
jmp 0x1002178
push ebx
mov ecx, esi
call fcn.01002044
lea edi, [esi + 0xc]
add esi, 0xac
push esi
push edi
push ebx
mov dword [ebp - 0x14], eax
call fcn.01001c41
test al, al
je 0x1002171
push dword [edi]
call fcn.01003cc6
test eax, eax
jne 0x1002178
mov dword [ebp - 0x14], 0x80040204
test ebx, ebx
je 0x1002183
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100377d
leave
ret 4
Function at 0x100376e
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10042b0
call fcn.01003954
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10054d8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1003583
cmp eax, esi
jne 0x1003576
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1003586
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100355d
xor esi, esi
inc esi
mov eax, dword [0x10054d4]
cmp eax, esi
jne 0x1003599
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10035d4
mov eax, dword [0x10054d4]
test eax, eax
jne 0x10035ce
mov dword [0x10054d4], esi
push 0x1001150
push 0x1001144
call fcn.010034da
pop ecx
pop ecx
test eax, eax
je 0x10035d4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100369e
mov dword [0x100519c], esi
mov eax, dword [0x10054d4]
cmp eax, esi
jne 0x10035f8
push 0x1001140
push 0x1001138
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10054d4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1003605
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10054dc], ebx
je 0x1003626
push 0x10054dc
call fcn.010038c9
pop ecx
test eax, eax
je 0x1003626
push ebx
push 2
push ebx
call dword [0x10054dc]
push dword [0x1005184]
push dword [0x1005188]
push dword [0x1005180]
call fcn.01003011
add esp, 0xc
mov dword [0x1005198], eax
cmp dword [0x100518c], ebx
jne 0x1003684
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100519c], ebx
jne 0x1003692
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1005198]
call fcn.01003999
ret
call fcn.01003aa1
jmp 0x100353b
Function at 0x1003d34
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
xor esi, esi
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1003d51
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, 0x186a0
jbe 0x1003d74
push 8
pop eax
jmp 0x1003e00
cmp edi, esi
jbe 0x1003dfe
push dword [ebp - 4]
call fcn.01003cfb
test al, al
je 0x1003dab
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x1003dfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x1003dfe
jmp 0x1003e00
push ebx
push esi
push esi
push esi
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push 1
call edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x1003dfd
push esi
push esi
push dword [ebp - 8]
push ebx
push dword [ebp - 0xc]
push dword [ebp + 8]
push esi
push 1
call edi
cmp eax, esi
je 0x1003df5
push esi
lea ecx, [ebp - 0x10]
push ecx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ebx
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x1003faa
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x10050b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push eax
push dword [0x10050d0]
lea eax, [ebp - 0x28c]
push 0x10017a0
xor ecx, ecx
push 0x104
push eax
mov dword [ebp - 0x294], 0x80
mov word [esi], cx
call fcn.01001f38
add esp, 0x14
test eax, eax
jne 0x100406f
lea eax, [ebp - 0x290]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x28c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100406f
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push 8
push 0x100187c
push 0x1001878
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1004063
push eax
push dword [ebp + 0x10]
movzx eax, word [ebp - 0x84]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
jne 0x1004063
mov word [esi], ax
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100377d
leave
ret 0xc
Function at 0x100410f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x10050b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [ebp + 0x10], 1
mov eax, 0x80004005
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x290], eax
jb 0x100429b
xor eax, eax
mov word [ebx], ax
lea eax, [ebp - 0x288]
push eax
push 0x108
push esi
push dword [0x10050d0]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004266
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x284]
push eax
mov dword [ebp - 0x298], esi
push esi
jmp 0x1004239
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push 8
push 0x100187c
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x288]
mov dword [ebp - 0x28c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x100421b
cmp dword [ebp - 0x28c], esi
jbe 0x100421b
shr dword [ebp - 0x28c], 1
mov eax, esi
je 0x100421b
mov cx, word [ebp + eax*2 - 0x84]
cmp cx, word [ebp + 8]
jne 0x1004212
mov dword [ebp - 0x290], esi
cmp eax, esi
je 0x1004255
cmp word [ebx], si
jne 0x100420c
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 0x10]
push ebx
call fcn.01001ea4
mov eax, dword [ebp - 0x28c]
inc eax
cmp eax, dword [ebp - 0x28c]
jb 0x10041df
inc dword [ebp - 0x298]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x298]
push dword [ebp - 0x288]
mov dword [ebp - 0x294], 0xff
call edi
test eax, eax
je 0x1004196
jmp 0x1004265
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 0x10]
push ebx
call fcn.01001ea4
pop edi
cmp dword [ebp - 0x288], esi
je 0x100427a
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x290], esi
jne 0x1004295
push ebx
call fcn.01004083
xor ecx, ecx
test al, al
sete cl
mov dword [ebp - 0x290], ecx
mov eax, dword [ebp - 0x290]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0100377d
leave
ret 0xc
Function at 0x406503
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
invalid
invalid

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

Disassembly:
add byte [ebx + 0x708b0c40], cl
sbb al, 0xad
cmp byte [eax + 0x1c], 0x18
je 0x4069ae
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.004047ea
out dx, eax
pop esp
pop ecx
dec ebx
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.004047ea
imul ecx, ebx, 0xffffffc2
dec ebp
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x4069d7
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x4069d7
call fcn.004047ea
or dword [esi + 0x2e], edi
adc eax, 0x3245a8b
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.004047ea
push esp
sbb dword [edi + 0x875ffd9], 0xff0475ff
jne 0x406a1f
call fcn.00404fea
invalid
Function at 0x402d40
Capabilities:
Query or enumerate registry value

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

Function at 0x403860
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41a044], 0
je 0x4038c1
cmp word [0x41a218], 0xd7b2
jne 0x403889
cmp dword [0x41a220], 0
jbe 0x403889
mov eax, 0x41a214
call dword [0x41a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x419068
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 0x4038e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41902c], 0
jne 0x4038dd
push 0
push 0x419060
push 0x419068
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404ba0
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 0x404dd0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404c23
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404dd0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404c23
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404dec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404cac
xor eax, eax
push ebp
push 0x404ca5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004049e8
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 0x404c8a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404e0c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404c8a
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 0x404cac
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 0x404dc6
cmp byte [ebp - 0xd], 0
jne 0x404cf3
cmp byte [ebp - 0x12], 0
je 0x404dc6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404d0c
dec ebx
cmp byte [ebx], 0x2e
je 0x404d1b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404d0b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404dc6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404d58
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 0x404dc6
cmp byte [ebp - 0xd], 0
je 0x404dc6
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 0x404dc6
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