joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025e7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa14
mov eax, dword [0x1006028]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push 0x1001270
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1002682
call esi
push 0x3f7
lea ecx, [ebp - 0xa0c]
mov dword [ebp - 0xa10], eax
call fcn.010016e5
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa0c]
push eax
push dword [ebp - 0xa10]
call fcn.01001fe5
add esp, 0xc
push 0
lea eax, [ebp - 0xa14]
push eax
push 0xc
push 0x100128c
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10026c8
call esi
push 0x3f8
lea ecx, [ebp - 0xa0c]
mov esi, eax
call fcn.010016e5
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa0c]
push eax
push esi
call fcn.01001fe5
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.010043ce
leave
ret 4

Function at 0x100289d
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1006028]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x808]
push eax
push 0x20019
push 0
mov esi, 0x10012e0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x10028fc
push 0x3fb
lea ecx, [ebp - 0x804]
call fcn.010016e5
push esi
lea eax, [ebp - 0x804]
push eax
push ebx
call fcn.01001fe5
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 0x80c]
push eax
push 0
push 0x1001460
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x808]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1002948
mov eax, dword [ebp + 0xc]
shr eax, 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x1001444
push edi
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010043ce
leave
ret 8
Function at 0x1002a9e
Capabilities:
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x1006028]
push ebx
push esi
push edi
mov ebx, ecx
push 0x24
mov dword [ebp - 4], eax
call fcn.0100295c
mov edi, eax
lea eax, [ebp - 0x828]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x80c], eax
call esi
cmp dword [ebp - 0x80c], 0
mov dword [ebp - 0x808], eax
jne 0x1002b19
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x3fe
lea ecx, [ebp - 0x804]
call fcn.010016e5
push ebx
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call fcn.01001fe5
add esp, 0xc
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x828]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1002b61
call esi
push 0x41d
lea ecx, [ebp - 0x804]
mov dword [ebp - 0x808], eax
call fcn.010016e5
push ebx
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call fcn.01001fe5
add esp, 0xc
cmp dword [ebp - 0x824], 1
je 0x1002b76
push 0x1001480
call fcn.01001b9f
jmp 0x1002b19
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010043ce
leave
ret
Function at 0x1002b8f
Capabilities:
Enumerate services

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x1006028]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x820], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
push 8
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x81c], eax
call fcn.0100295c
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
lea ecx, [ebp - 0x814]
push ecx
lea ecx, [ebp - 0x80c]
push ecx
xor edi, edi
push edi
push edi
push 1
push eax
mov dword [ebp - 0x810], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp dword [ebp - 0x80c], edi
mov dword [ebp - 0x808], eax
jne 0x1002c10
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1002d21
cmp eax, 0xea
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x1002c50
push dword [ebp - 0x810]
call edi
push 0x40c
lea ecx, [ebp - 0x804]
call fcn.010016e5
push dword [ebp - 0x818]
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call fcn.01001fe5
add esp, 0xc
push dword [ebp - 0x80c]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x808], eax
jne 0x1002c86
push 0x40d
lea ecx, [ebp - 0x804]
call fcn.010016e5
lea eax, [ebp - 0x804]
push eax
push 0
call fcn.01001fe5
pop ecx
pop ecx
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 0x80c]
push dword [ebp - 0x808]
push 1
push dword [ebp - 0x810]
call esi
mov esi, eax
call ebx
push dword [ebp - 0x810]
mov ebx, eax
call edi
xor edi, edi
cmp esi, edi
jne 0x1002ce4
push 0x40c
lea ecx, [ebp - 0x804]
call fcn.010016e5
push dword [ebp - 0x818]
lea eax, [ebp - 0x804]
push eax
push ebx
call fcn.01001fe5
add esp, 0xc
cmp dword [ebp - 0x814], edi
jbe 0x1002d05
mov esi, dword [ebp - 0x808]
mov ecx, dword [esi]
call fcn.01002a9e
inc edi
add esi, 0x24
cmp edi, dword [ebp - 0x814]
jb 0x1002cf2
mov eax, dword [ebp - 0x820]
mov ecx, dword [ebp - 0x808]
mov dword [eax], ecx
mov eax, dword [ebp - 0x81c]
mov ecx, dword [ebp - 0x814]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010043ce
leave
ret 8
Function at 0x1002e24
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc5c
mov eax, dword [0x1006028]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1002eae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
jne 0x1002e8d
xor eax, eax
xor edx, edx
jmp 0x1002ee4
push 0x402
lea ecx, [ebp - 0xc5c]
call fcn.010016e5
push esi
lea eax, [ebp - 0xc5c]
push eax
push edi
call fcn.01001fe5
add esp, 0xc
xor esi, esi
xor edi, edi
mov eax, dword [ebp - 0x43c]
add eax, 0x1ff
and eax, 0xfffffe00
add esi, eax
lea eax, [ebp - 0x45c]
push eax
push ebx
adc edi, 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002eb2
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010043ce
leave
ret 8

Function at 0x1003130
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x1006028]
and dword [ebp - 0x808], 0
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x80c]
push eax
push 0x2001f
push 0
mov esi, 0x10012e0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x1003192
push 0x407
lea ecx, [ebp - 0x804]
call fcn.010016e5
push esi
lea eax, [ebp - 0x804]
push eax
push edi
call fcn.01001fe5
add esp, 0xc
push 4
pop eax
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x810], eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
mov esi, 0x10014b8
push esi
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x10031f1
push 0x3f9
lea ecx, [ebp - 0x804]
call fcn.010016e5
push esi
lea eax, [ebp - 0x804]
push eax
push edi
call fcn.01001fe5
add esp, 0xc
inc dword [ebp - 0x808]
call fcn.01001b2f
mov edi, dword [ebp - 0x808]
cmp edi, eax
ja 0x1003208
mov edi, eax
push edi
push dword [ebp - 0x80c]
call fcn.01002748
push edi
push dword [ebp - 0x80c]
mov esi, 0x1001490
call fcn.01002748
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.010043ce
leave
ret
Function at 0x1003236
Capabilities:
Check if file exists
Copy file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2080
call fcn.01004670
mov eax, dword [0x1006028]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x2078], eax
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x414]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov ebx, eax
lea eax, [ebp - 0x20c]
push edi
inc ebx
push eax
inc ebx
call esi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x20c]
push eax
call edi
add esp, 0x24
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x10032cb
lea eax, [ebp - 0x20c]
push 0x1001268
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
lea ecx, [ebp - 0x414]
mov eax, ebx
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x2080], eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov dword [ebp - 0x207c], eax
pop ecx
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x2074], eax
jne 0x100334c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov dword [ebp - 0x2070], eax
je 0x1003496
push 0x402
lea ecx, [ebp - 0x106c]
call fcn.010016e5
push dword [ebp - 0x2078]
lea eax, [ebp - 0x106c]
push eax
push dword [ebp - 0x2070]
call fcn.01001fe5
add esp, 0xc
test byte [ebp - 0x86c], 0x10
jne 0x100346f
push 0x1001480
call fcn.01001b9f
lea eax, [ebp - 0x840]
push eax
call edi
add eax, dword [ebp - 0x2080]
pop ecx
cmp eax, 0x103
jb 0x10033a4
push 0x41c
lea ecx, [ebp - 0x106c]
call fcn.010016e5
push 0
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x106c]
push eax
push 0
call fcn.01001fe5
add esp, 0x10
lea eax, [ebp - 0x840]
push eax
call edi
add eax, dword [ebp - 0x207c]
pop ecx
cmp eax, 0x103
jb 0x10033e5
push 0x41c
lea ecx, [ebp - 0x206c]
call fcn.010016e5
push 0
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x206c]
push eax
push 0
call fcn.01001fe5
add esp, 0x10
lea eax, [ebp - 0x840]
push eax
push ebx
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call esi
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x18
push 1
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100346f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x408
lea ecx, [ebp - 0x186c]
mov dword [ebp - 0x2070], eax
call fcn.010016e5
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x186c]
push eax
push dword [ebp - 0x2070]
call fcn.01001fe5
add esp, 0x10
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x2074]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100334c
push dword [ebp - 0x2074]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010043ce
leave
ret 0xc
Function at 0x10034d7
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1006028]
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call fcn.01001e36
test al, al
jne 0x100353b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100353b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x100353a
call esi
push 0x409
lea ecx, [ebp - 0x804]
mov esi, eax
call fcn.010016e5
push edi
lea eax, [ebp - 0x804]
push eax
push esi
call fcn.01001fe5
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.010043ce
leave
ret 4

Function at 0x100354d
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006028]
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
call fcn.01001e36
test al, al
jne 0x100366b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100366b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100366b
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x20c]
push eax
call esi
add esp, 0xc
push 0x5c
pop ebx
cmp word [ebp + eax*2 - 0x20e], bx
je 0x10035d6
lea eax, [ebp - 0x20c]
push 0x1001268
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
cmp eax, 2
pop ecx
jbe 0x1003623
cmp word [ebp - 0x20c], bx
jne 0x1003623
cmp word [ebp - 0x20a], bx
jne 0x1003623
mov edi, dword [sym.imp.msvcrt.dll_wcschr]
lea eax, [ebp - 0x208]
push ebx
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x1003669
mov esi, dword [sym.imp.USER32.dll_CharNextW]
push ebx
push eax
call esi
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x1003669
jmp 0x100363d
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x1003669
mov esi, dword [sym.imp.USER32.dll_CharNextW]
push eax
jmp 0x1003661
mov ax, word [edi]
test ax, ax
je 0x1003669
cmp ax, bx
jne 0x1003660
and word [edi], 0
lea eax, [ebp - 0x20c]
push eax
call fcn.010034d7
mov word [edi], bx
push edi
call esi
mov edi, eax
test edi, edi
jne 0x1003640
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.010043ce
leave
ret 4
Function at 0x1003a13
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2414
call fcn.01004670
mov eax, dword [0x1006028]
push ebx
push esi
push edi
push 0x420
lea ecx, [ebp - 0x1c14]
mov dword [ebp - 4], eax
call fcn.010016e5
push 0x417
lea ecx, [ebp - 0xc14]
call fcn.010016e5
push 0x419
lea ecx, [ebp - 0x1414]
call fcn.010016e5
xor eax, eax
xor ebx, ebx
mov esi, 0x81
mov word [ebp - 0x414], bx
mov ecx, esi
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0xc14]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
push ebx
lea eax, [ebp - 0x1c14]
push eax
push 0x500
call fcn.01001c67
add esp, 0x20
test eax, eax
je 0x1003b5c
lea eax, [ebp - 0x414]
push eax
call fcn.01001b9f
xor eax, eax
mov word [ebp - 0x20c], bx
mov ecx, esi
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
push 0x100138c
call dword [sym.imp.msvcrt.dll_wscanf]
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
mov ebx, 0x800
jmp 0x1003b3f
push 0xffffffffffffffff
lea eax, [ebp - 0x1414]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
call esi
dec eax
dec eax
je 0x1003b69
lea eax, [ebp - 0x414]
push eax
call fcn.01001b9f
and word [ebp - 0x20c], 0
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
push 0x100138c
call dword [sym.imp.msvcrt.dll_wscanf]
pop ecx
pop ecx
push 0xffffffffffffffff
lea eax, [ebp - 0xc14]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
call esi
dec eax
dec eax
jne 0x1003aed
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010043ce
leave
ret
push 0x418
lea ecx, [ebp - 0x2414]
call fcn.010016e5
lea eax, [ebp - 0x2414]
push eax
call fcn.01001b9f
push 0xffffffffffffffff
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x1003c33
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc24
mov eax, dword [0x1006028]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov word [ebp - 0x20c], ax
mov dword [ebp - 0xc1c], eax
mov dword [ebp - 0xc20], eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call sub.mqutil.dll_MQGetResourceHandle
mov dword [0x1006040], eax
xor eax, eax
inc eax
cmp dword [ebp + 8], eax
mov dword [ebp - 0xc18], eax
jle 0x1003ebd
mov edi, 0x104
push esi
mov eax, dword [ebp - 0xc18]
lea esi, [ebx + eax*4]
mov eax, dword [esi]
mov cx, word [eax]
cmp cx, 0x2d
je 0x1003d12
cmp cx, 0x2f
je 0x1003d12
cmp word [ebp - 0x20c], 0
jne 0x1003ebd
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, edi
sub ecx, dword [0x1006020]
cmp eax, ecx
jb 0x1003cf9
push 0x41c
lea ecx, [ebp - 0xc14]
call fcn.010016e5
mov eax, edi
sub eax, dword [0x1006020]
push eax
push dword [esi]
lea eax, [ebp - 0xc14]
push eax
push 0
call fcn.01001fe5
add esp, 0x10
push 0x103
push dword [esi]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
jmp 0x1003d71
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 2
pop ecx
jne 0x1003ebd
mov eax, dword [esi]
movzx eax, word [eax + 2]
push eax
call dword [sym.imp.msvcrt.dll_towlower]
pop ecx
movzx ecx, ax
cmp ecx, 0x62
je 0x1003d5d
cmp ecx, 0x72
je 0x1003d5d
cmp ecx, 0x79
jne 0x1003ebd
cmp word [ebp - 0xc20], 0
jne 0x1003ebd
mov dword [ebp - 0xc20], eax
jmp 0x1003d71
cmp word [ebp - 0xc1c], 0
jne 0x1003ebd
mov dword [ebp - 0xc1c], eax
inc dword [ebp - 0xc18]
mov eax, dword [ebp - 0xc18]
cmp eax, dword [ebp + 8]
jl 0x1003c91
xor ebx, ebx
cmp word [ebp - 0xc1c], bx
je 0x1003ebd
cmp word [ebp - 0x20c], bx
je 0x1003ebd
cmp word [ebp - 0xc20], bx
je 0x1003db2
mov byte [0x100603c], 1
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0xc24], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
cmp esi, ebx
jne 0x1003e0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x41b
lea ecx, [ebp - 0xc14]
mov ebx, eax
call fcn.010016e5
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc14]
push eax
push ebx
call fcn.01001fe5
add esp, 0xc
xor ebx, ebx
cmp esi, edi
pop esi
jbe 0x1003e3c
push 0x41c
lea ecx, [ebp - 0xc14]
call fcn.010016e5
push 0x103
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc14]
push eax
push ebx
call fcn.01001fe5
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, edi
sub ecx, dword [0x1006020]
cmp eax, ecx
jb 0x1003e84
push 0x41c
lea ecx, [ebp - 0xc14]
call fcn.010016e5
sub edi, dword [0x1006020]
lea eax, [ebp - 0x414]
push edi
push eax
lea eax, [ebp - 0xc14]
push eax
push ebx
call fcn.01001fe5
add esp, 0x10
movzx eax, word [ebp - 0xc1c]
cmp eax, 0x62
pop edi
pop ebx
je 0x1003ea5
cmp eax, 0x72
jne 0x1003ebd
lea eax, [ebp - 0x414]
push eax
call fcn.01003ec7
jmp 0x1003eb1
lea eax, [ebp - 0x414]
push eax
call fcn.01001712
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.010043ce
leave
ret
jmp fcn.01003bf6
Function at 0x10044e6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001650
call fcn.010047fc
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1004521
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004521
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1004539
cmp eax, 0x20b
je 0x1004526
mov dword [ebp - 0x1c], edi
jmp 0x100454d
cmp dword [ecx + 0x84], 0xe
jbe 0x1004521
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1004547
cmp dword [ecx + 0x74], 0xe
jbe 0x1004521
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 [0x1006054], 0xffffffff
or dword [0x1006058], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1006050]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100604c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100605c], eax
call fcn.010047f2
cmp dword [0x1006030], edi
jne 0x10045a8
push fcn.010047f2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010047db
push 0x1006010
push 0x100600c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1006048]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1006044]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1006008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01003c33
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x100461f
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1004654
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01004837
ret
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x3b602a5d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6fae2a2e
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x29f7687b
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x13877c85
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219