joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3001098b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x30015078]
push ebx
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push edi
mov dword [ebp - 0x74], eax
mov ebx, 0xffff
mov edi, 0x80070000
lea ecx, [ebp - 0x80]
push ecx
push eax
push eax
push eax
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
push dword [ebp + 0x19c]
mov dword [ebp - 0x78], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jle 0x300109e5
and esi, ebx
or esi, edi
test esi, esi
jne 0x30010a53
lea eax, [ebp - 0x74]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jle 0x30010a0e
and esi, ebx
or esi, edi
test esi, esi
jl 0x30010a68
push dword [ebp - 0x74]
call fcn.3001098b
mov esi, eax
test esi, esi
jle 0x30010a24
and esi, ebx
or esi, edi
test esi, esi
jl 0x30010a68
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x74], 0
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jle 0x30010a4f
and esi, ebx
or esi, edi
test esi, esi
jl 0x30010a68
jmp 0x30010a5b
cmp esi, 0x80070103
je 0x30010a66
test esi, esi
jne 0x30010a68
xor eax, eax
jmp 0x300109b6
xor esi, esi
cmp dword [ebp - 0x74], 0
je 0x30010a77
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x190]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.30012b55
add ebp, 0x194
leave
ret 4

Function at 0x30010a91
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x30010abb
xor ebx, ebx
inc ebx
jmp 0x30010b08
test eax, eax
push esi
push edi
mov edi, 0xffff
mov esi, 0x80070000
jle 0x30010acf
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jl 0x30010b06
push dword [ebp - 4]
call fcn.3001098b
mov ebx, eax
test ebx, ebx
jl 0x30010b06
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jle 0x30010b04
and eax, edi
or eax, esi
mov ebx, eax
pop edi
pop esi
cmp dword [ebp - 4], 0
je 0x30010b17
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x30010b1e
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x30015078]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.3000448f
test eax, eax
jl 0x30010b8b
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x30010b97
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x30010b7b
and word [eax], 0
cmp word [eax + 2], 0
je 0x30010b5b
cmp word [ebp - 0x20c], 0
je 0x30010b89
test eax, eax
jne 0x30010b47
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.30012b55
leave
ret 8
cmp eax, 2
je 0x30010bb1
cmp eax, 3
je 0x30010bb1
test eax, eax
jle 0x30010bb3
and eax, 0xffff
or eax, 0x80070000
jmp 0x30010bb3
xor eax, eax
cmp eax, 1
je 0x30010b47
jmp 0x30010b8b

Function at 0x30010cd4
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push edi
push ebp
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x30010d73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x30010d73
mov ax, word [ebx]
push esi
xor esi, esi
test ax, ax
mov ecx, ebx
je 0x30010d21
cmp ax, 0x5c
jne 0x30010d13
mov esi, ecx
inc ecx
inc ecx
mov ax, word [ecx]
test ax, ax
jne 0x30010d0b
test esi, esi
jne 0x30010d28
mov edi, 0x80070003
jmp 0x30010d72
and word [esi], 0
push ebp
push ebx
call fcn.30010cd4
mov edi, eax
test edi, edi
mov word [esi], 0x5c
jl 0x30010d72
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x30010d70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x30010d5c
xor edi, edi
inc edi
jmp 0x30010d72
test eax, eax
jg 0x30010d64
mov edi, eax
jmp 0x30010d72
and eax, 0xffff
or eax, 0x80070000
jmp 0x30010d60
xor edi, edi
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret 8
Function at 0x30010d7b
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
cmp edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
je 0x30010dc9
cmp word [edi], ax
je 0x30010dc9
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
push dword [ebp + 0xc]
mov ebx, eax
call esi
lea eax, [ebx + eax + 3]
push eax
push edi
lea eax, [ebp - 4]
push eax
call fcn.300117ac
mov edi, eax
test edi, edi
jl 0x30010f44
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
jmp 0x30010dfd
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
add eax, 3
push eax
lea eax, [ebp - 4]
push eax
call fcn.3001121a
mov edi, eax
test edi, edi
jl 0x30010f44
push ebx
push 4
push dword [ebp - 4]
call fcn.3000448f
add ebx, 6
mov dword [ebp + 8], ebx
mov ecx, dword [ebp - 4]
mov ax, word [ecx]
cmp ax, 0x5c
jne 0x30010e0f
cmp word [ecx + 2], ax
je 0x30010e3f
cmp ax, 0x61
jb 0x30010e1b
cmp ax, 0x7a
jbe 0x30010e27
cmp ax, 0x41
jb 0x30010e35
cmp ax, 0x5a
ja 0x30010e35
cmp word [ecx + 2], 0x3a
jne 0x30010e35
cmp word [ecx + 4], 0x5c
je 0x30010e3f
mov edi, 0x80070057
jmp 0x30010f47
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x30010e5a
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 8], eax
push ecx
call esi
mov ecx, dword [ebp - 4]
lea ebx, [ecx + eax*2]
mov eax, dword [ebp + 8]
mov ax, word [eax]
test ax, ax
je 0x30010f47
mov esi, 0x80070000
cmp ax, 0x5c
jne 0x30010e89
mov edx, dword [ebp + 0xc]
cmp dword [ebp + 8], edx
je 0x30010f2f
cmp ax, 0x5c
mov word [ebx], ax
jne 0x30010f2a
push dword [ebp - 8]
and word [ebx + 2], 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x30010efc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x30010eeb
cmp dword [ebp + 0x14], 0
je 0x30010ee7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x30010ee7
call edi
mov edi, eax
test edi, edi
jle 0x30010ee5
and edi, 0xffff
or edi, esi
test edi, edi
jl 0x30010f44
xor edi, edi
jmp 0x30010efc
test eax, eax
jle 0x30010ef6
and eax, 0xffff
or eax, esi
mov edi, eax
test edi, edi
jl 0x30010f44
cmp dword [ebp + 0x18], 0
je 0x30010f2a
push dword [ebp + 0x18]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x30010f2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x30010f28
and edi, 0xffff
or edi, esi
test edi, edi
jl 0x30010f44
mov ecx, dword [ebp - 4]
inc ebx
inc ebx
add dword [ebp + 8], 2
mov eax, dword [ebp + 8]
mov ax, word [eax]
test ax, ax
jne 0x30010e77
jmp 0x30010f47
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x30010f51
push ecx
call fcn.30011460
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x30011a35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp + 0x10]
push eax
push edi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push 0x900
xor ebx, ebx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp eax, edi
mov dword [ebp + 0xc], eax
jne 0x30011a8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jle 0x30011a85
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x30011b0f
cmp dword [ebp + 0xc], edi
jbe 0x30011ad5
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
sub eax, ebx
push eax
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push dword [0x30015064]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x30011acd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jle 0x30011acb
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x30011b0f
add ebx, dword [ebp - 8]
cmp ebx, dword [ebp + 0xc]
jb 0x30011a90
cmp dword [ebp + 0x14], edi
je 0x30011b0f
push edi
lea eax, [ebp - 8]
push eax
push 2
push dword [0x3001506c]
push dword [0x30015064]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x30011b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jle 0x30011b0f
and esi, 0xffff
or esi, 0x80070000
cmp dword [ebp - 4], edi
je 0x30011b1d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x30011b26
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.300118c2
mov ebx, eax
cmp ebx, esi
jl 0x30011be0
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp + 0xc], eax
jbe 0x30011ba7
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
sub eax, esi
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
push dword [0x30015064]
call edi
test eax, eax
jne 0x30011b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x30011b9d
and ebx, 0xffff
or ebx, 0x80070000
test ebx, ebx
jl 0x30011bdf
add esi, dword [ebp - 8]
cmp esi, dword [ebp + 0xc]
jb 0x30011b65
cmp dword [ebp + 0x10], 0
je 0x30011bdf
push 0
lea eax, [ebp - 8]
push eax
push 2
push dword [0x3001506c]
push dword [0x30015064]
call edi
test eax, eax
jne 0x30011bdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x30011bdf
and ebx, 0xffff
or ebx, 0x80070000
pop edi
cmp dword [ebp - 4], 0
je 0x30011bee
push dword [ebp - 4]
call fcn.30011460
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x30011cfb
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x30015078]
mov dword [ebp + 0x3a0], eax
push esi
xor esi, esi
cmp dword [0x30015064], 0xffffffff
mov eax, 0x104
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x74], 0x30002ccc
je 0x30011e35
cmp dword [0x30015630], esi
je 0x30011e35
push edi
push eax
lea eax, [ebp + 0x198]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x30011d66
mov ecx, 0x82
lea edi, [ebp + 0x198]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x198]
push eax
call fcn.3000f193
test eax, eax
jge 0x30011d84
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x30011da0
mov ecx, 0x82
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
push esi
call fcn.3001197e
push eax
push 0x30002cb0
push 1
call fcn.30011c87
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x7c]
mov edx, eax
mov ecx, 0xffff
and edx, ecx
push edx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x78]
mov edx, eax
and edx, ecx
push edx
shr eax, 0x10
push eax
lea eax, [ebp + 0x198]
push eax
push 0x30002c84
push 1
call fcn.30011c87
mov eax, dword [0x30015068]
add esp, 0x2c
sub eax, esi
pop edi
je 0x30011e18
dec eax
je 0x30011e0f
dec eax
je 0x30011e06
dec eax
jne 0x30011e1f
mov dword [ebp - 0x74], 0x30002c7c
jmp 0x30011e1f
mov dword [ebp - 0x74], 0x30002c74
jmp 0x30011e1f
mov dword [ebp - 0x74], 0x30002c68
jmp 0x30011e1f
mov dword [ebp - 0x74], 0x30002c60
push dword [ebp - 0x74]
push 0x30002c44
push 1
call fcn.30011c87
add esp, 0xc
xor eax, eax
jmp 0x30011e38
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x3a0]
pop esi
call fcn.30012b55
add ebp, 0x3a4
leave
ret
Function at 0x300125da
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov eax, 0x1000c
lea ebp, [esp - 0xff8c]
call fcn.30012b70
mov eax, dword [0x30015078]
push esi
push edi
xor edi, edi
mov dword [ebp + 0xff88], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], edi
call fcn.30012502
mov esi, eax
cmp esi, edi
jl 0x300126c9
push ebx
lea eax, [ebp - 0x7c]
push eax
push edi
push edi
push dword [ebp + 0xff98]
push dword [0x30015634]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80070000
jmp 0x30012681
push 0
lea eax, [ebp - 0x80]
push eax
push 0x10000
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0xff94]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x30012669
call edi
mov esi, eax
test esi, esi
jle 0x30012667
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x300126c8
xor esi, esi
cmp dword [ebp - 0x80], esi
jbe 0x3001269b
push esi
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x30012636
call edi
mov esi, eax
test esi, esi
jle 0x30012697
and esi, 0xffff
or esi, ebx
test esi, esi
jge 0x30012636
jmp 0x300126c8
push 0
push dword [ebp + 0xffa0]
push dword [ebp + 0xff9c]
push 2
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x300126c8
call edi
mov esi, eax
test esi, esi
jle 0x300126c8
and esi, 0xffff
or esi, ebx
pop ebx
cmp dword [ebp - 0x7c], 0
je 0x300126d8
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp + 0xff88]
pop edi
mov eax, esi
pop esi
call fcn.30012b55
add ebp, 0xff8c
leave
ret 0x10

Function at 0x30012759
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x20000005
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x3001279e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x3001279c
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x300127aa
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x30012841
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x30002e60
call fcn.30012c70
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x30012881
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x30012881
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x30012899
cmp eax, 0x20b
je 0x30012886
mov dword [ebp - 0x1c], ebx
jmp 0x300128ad
cmp dword [ecx + 0x84], 0xe
jbe 0x30012881
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x300128a7
cmp dword [ecx + 0x74], 0xe
jbe 0x30012881
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x30015694], 0xffffffff
or dword [0x30015698], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x30015670]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x3001566c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x30015690], eax
call fcn.30012be5
call fcn.30012d1a
cmp dword [0x30015080], ebx
jne 0x3001290d
push fcn.30012d04
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.30012cf2
push 0x30015010
push 0x3001500c
call sub.MSVCRT.dll__initterm
push 0x30012c29
call fcn.30012bd3
mov eax, dword [0x30015668]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x30015664]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x30012961
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x30015008
push section..data
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x300129df
cmp al, bl
je 0x3001298b
cmp dword [ebp - 0x20], ebx
jne 0x300129df
mov al, byte [esi]
cmp al, bl
je 0x3001299b
cmp al, 0x20
ja 0x3001299b
inc esi
mov dword [ebp - 0x24], esi
jmp 0x3001298b
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x300129b7
movzx eax, word [ebp - 0x54]
jmp 0x300129ba
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.30007a0b
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x300129d7
push esi
call dword [sym.imp.MSVCRT.dll_exit]
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x30012a34
cmp al, 0x22
jne 0x300129ee
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCRT.dll__ismbblead]
pop ecx
test eax, eax
je 0x30012a01
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x30012979
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.30012cab
ret
Function at 0x30012b55
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x30015078]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.30012b55
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x30015078]
jne 0x30012b5e
ret
jmp 0x30012a40

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3b4c423b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3aa07e0c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401b15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401b6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b6b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401b5d
cmp esi, ecx
jae 0x401b6b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401b4b
cmp esi, ecx
jae 0x401b6b
cmp word [esi], 0
je 0x401b6b
mov eax, esi
jmp 0x401b6d
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401f8f
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x401fc5
lea esi, [edi + 4]
test esi, esi
je 0x401fc5
call fcn.00401ef1
test al, al
je 0x401fc5
mov ecx, edi
call fcn.00401ef1
test al, al
je 0x401fc5
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x401fc7
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x403715
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.0040163e
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004173b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x4037af
movzx ecx, bl
cmp ecx, 0x26
jne 0x403773
mov edx, str.ProgramFiles
jmp 0x40377d
cmp ecx, 0x1c
jne 0x40379e
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00403a20
push eax
mov ecx, esi
call fcn.004015e6
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4037ab
xor eax, eax
inc eax
jmp 0x4037cd
mov eax, edi
jmp 0x4037cd
lea eax, [ebp - 0x20c]
push eax
call fcn.0042af1c
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004016da
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041682f
leave
ret