joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b0e40
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x7be408]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x5b0e53
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x5b0e94
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x7be4b0]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x5b0ec6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5b0eca
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x5b0ebb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x5b0ee8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5b0eec
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x5b0edd
xor ecx, ecx
mov eax, 0x7be418
xor ebx, ebx
mov bl, byte [ecx + 0x7be4c0]
cmp byte [esp + ebx + 0x14], 0
je 0x5b0f17
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x7be4d8]
cmp byte [esp + ebx + 0x14], 0
je 0x5b0f2e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x5b0efe
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x5b0e87
lea edx, [esp + 0x84]
push edx
call fcn.005b0f70
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x5caae3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5cab1b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005c8b70
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005c8b48
jmp 0x5cab27
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5cc1d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5cc216
call fcn.005d1f91
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5cc216
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5cc20d
xor eax, eax
jmp 0x5cc21e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005cc224
pop edi
pop esi
pop ebx
ret 4

Function at 0x5d24c1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5d24ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5d250d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005d2427
jmp 0x5d250d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5d250d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005d2427
test edi, edi
mov eax, edi
jne 0x5d24f7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4705d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x579aa4]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0050c770
add esp, 0xc
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x470629
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0050c75f
add esp, 0x20c
ret
push str.ntdll.dll
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x470612
push str.RtlGetVersion
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0050c75f
add esp, 0x20c
ret
Function at 0x4d77f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
call fcn.004d6db0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x18], 0xffffffff
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004d76a0
add esp, 8
lea edx, [ebp - 0x10]
push edx
call fcn.00482b90
add esp, 4
mov ecx, eax
call fcn.00406010
push eax
push 0
push str.level
push 0x554324
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x10]
call fcn.00406190
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004d7d80
add esp, 0x10
test eax, eax
je 0x4d78c9
push 0x57d4f8
push 4
call fcn.00513492
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4d789d
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00405e60
mov dword [ebp - 0x24], eax
jmp 0x4d78a4
mov dword [ebp - 0x24], 0
xor edx, edx
cmp dword [ebp + 0x10], 1
setne dl
add edx, 1
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0x8214
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4d791c
push 0x57d4f8
push 4
call fcn.00513492
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d78f2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00405e60
mov dword [ebp - 0x28], eax
jmp 0x4d78f9
mov dword [ebp - 0x28], 0
xor ecx, ecx
cmp dword [ebp + 0x10], 1
setne cl
add ecx, 1
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 0x8203
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x28
push ecx
mov ecx, esp
push eax
call fcn.00405e60
call fcn.004e2d30
add esp, 8
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4d92d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
aam 0x88
pop ebp
aam 0x50
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
Function at 0x508160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x18], 0
je 0x508178
cmp dword [ebp + 8], 0
je 0x508178
cmp dword [ebp + 0xc], 0
jne 0x50817c
xor al, al
jmp 0x5081ea
lea ecx, [ebp - 0xc]
call fcn.00475e70
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0x555a98
lea edx, [ebp - 0xc]
push edx
call fcn.004e8c30
add esp, 0x10
mov byte [ebp - 1], 1
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc]
call fcn.0046d450
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x5081d5
cmp dword [ebp - 8], 3
je 0x5081d9
mov byte [ebp - 1], 0
mov dl, byte [ebp - 1]
mov byte [ebp - 0xd], dl
lea ecx, [ebp - 0xc]
call fcn.0046d380
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x509e0a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x57d494], 0
push esi
jne 0x509d78
call fcn.00509c8c
test eax, eax
je 0x509dbb
mov eax, dword [0x57d494]
cmp eax, 1
jne 0x509d99
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x509dbb
pop esi
ret
push eax
call dword [0x57d49c]
test eax, eax
jne 0x509e03
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x509dbf
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x57d494]
call dword [0x57d49c]
mov edi, eax
test edi, edi
je 0x509de4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x509e00
mov edi, esi
add esi, 0xff0
push edi
push dword [0x57d494]
call dword [0x57d498]
add edi, 0x10
cmp edi, esi
jb 0x509dec
mov eax, edi
pop edi
pop esi
ret
jmp 0x509d65

Function at 0x50c75f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x579aa4]
jne 0x50c769
repz ret
jmp fcn.00519892
Function at 0x532e6b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.005191e8
and dword [ebp - 4], 0
cmp dword [0x57e228], 0
mov ebx, eax
jne 0x532f1c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x532fcd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x532fcd
push eax
call fcn.00519176
mov dword [esp], 0x55c0b8
push edi
mov dword [0x57e228], eax
call esi
push eax
call fcn.00519176
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x57e22c], eax
call esi
push eax
call fcn.00519176
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x57e230], eax
call esi
push eax
call fcn.00519176
pop ecx
mov dword [0x57e238], eax
test eax, eax
je 0x532f1c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00519176
pop ecx
mov dword [0x57e234], eax
mov eax, dword [0x57e234]
cmp eax, ebx
je 0x532f74
cmp dword [0x57e238], ebx
je 0x532f74
push eax
call fcn.005191f1
push dword [0x57e238]
mov esi, eax
call fcn.005191f1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x532f74
test edi, edi
je 0x532f74
call esi
test eax, eax
je 0x532f6b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x532f6b
test byte [ebp - 0xc], 1
jne 0x532f74
or dword [ebp + 0x10], 0x200000
jmp 0x532fad
mov eax, dword [0x57e22c]
cmp eax, ebx
je 0x532fad
push eax
call fcn.005191f1
pop ecx
test eax, eax
je 0x532fad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x532fad
mov eax, dword [0x57e230]
cmp eax, ebx
je 0x532fad
push eax
call fcn.005191f1
pop ecx
test eax, eax
je 0x532fad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x57e228]
call fcn.005191f1
pop ecx
test eax, eax
je 0x532fcd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x532fcf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d1c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232d4], 0
push esi
jne 0x405d53
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d2d
mov dword [ecx*4 + 0x4232d0], eax
inc ecx
cmp ecx, 0x100
jl 0x405d28
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d84
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232d0]
xor eax, esi
inc ecx
dec edx
jne 0x405d66
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1002056
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x100ba14]
test eax, eax
je 0x1002074
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [0x100ba14], 0
push esi
mov esi, 0x3e8
push esi
push 0x40
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [0x100ba14], eax
je 0x10021b4
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
mov ebx, 0x100121c
push ebx
push dword [ebp + 8]
call edi
cmp eax, 0xea
jne 0x10020fd
push 0x42
push dword [ebp - 4]
push dword [0x100ba14]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
jne 0x10020e7
push dword [0x100ba14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [0x100ba14], 0
xor eax, eax
jmp 0x10021b2
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [0x100ba14], eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
test eax, eax
mov ebx, 0x1f4
je 0x100211e
push ebx
push dword [0x100ba14]
mov dword [ebp - 4], esi
push 9
push dword [0x100bd04]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x100ba14]
cmp word [eax], 0
je 0x10021af
push esi
push 0x40
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
mov dword [ebp + 8], esi
je 0x10021af
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push esi
push dword [0x100ba14]
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
ja 0x1002162
push esi
push dword [0x100ba14]
jmp 0x10021a0
push 0x42
add eax, eax
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalReAlloc]
call esi
test eax, eax
je 0x10021a6
push dword [ebp - 4]
mov dword [ebp + 8], eax
push eax
push dword [0x100ba14]
call edi
mov eax, dword [ebp - 4]
push 0x42
add eax, eax
push eax
push dword [0x100ba14]
call esi
test eax, eax
je 0x10021a6
push dword [ebp + 8]
mov dword [0x100ba14], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x100290c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x100b080]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x414]
push eax
xor ebx, ebx
push 0x1001274
mov dword [ebp - 0x41c], ebx
mov word [ebp - 0x414], bx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x414], bx
jne 0x100295b
push ebx
call dword [sym.imp.KERNEL32.dll_ExitThread]
lea eax, [ebp - 0x414]
push eax
call fcn.010021be
push 0x100bce0
mov dword [ebp - 0x420], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp edi, ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x100298c
push ebx
push ebx
push 0x1009
push edi
call esi
mov eax, dword [0x100ba10]
cmp eax, ebx
mov dword [0x100ba0c], ebx
je 0x10029b0
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0100270d
mov dword [ebp - 0x418], eax
jmp 0x10029b6
mov dword [ebp - 0x418], ebx
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push edi
push dword [ebp - 0x420]
push eax
call fcn.01002248
test eax, eax
jne 0x10029dd
push ebx
push 1
push 0xb
push edi
call esi
jmp 0x1002a54
mov eax, dword [0x100ba0c]
push 0x1002636
push 1
push 0x1030
push edi
mov dword [0x100ba08], eax
call esi
push 3
pop eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x454]
push eax
push ebx
push 0x102b
push edi
mov dword [ebp - 0x454], 8
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x44c], ebx
call esi
cmp dword [0x100ba08], 0x400
jae 0x1002a43
mov dword [0x100ba08], 1
jmp 0x1002a4a
shr dword [0x100ba08], 0xa
mov dword [ebp - 0x41c], 1
push 0x100bce0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x418], ebx
pop edi
pop esi
pop ebx
je 0x1002a76
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
call fcn.010039ea
leave
ret 4
Function at 0x1003078
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001438
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003193
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1001410
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x100318a
cmp dword [ebp - 0x10], ebx
je 0x100318a
lea eax, [ebp - 4]
push eax
push 0x100b030
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x10013f0
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x100ba04
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x10013c4
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x100ba18
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x10013b0
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
cmp dword [0x100ba18], ebx
je 0x1003165
lea eax, [ebp - 4]
push eax
push 0x100b078
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1001390
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x1003165
mov eax, 0x5a0
cmp dword [0x100b078], eax
jbe 0x1003165
mov dword [0x100b078], eax
push dword [ebp - 8]
call fcn.01002056
test eax, eax
je 0x100317d
call fcn.01003043
test eax, eax
je 0x100318a
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1003195
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003b3c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1001508
call fcn.01004a70
mov edi, 0x94
mov eax, edi
call fcn.01004bd0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x100ba44], ecx
mov eax, dword [esi + 4]
mov dword [0x100ba50], eax
mov edx, dword [esi + 8]
mov dword [0x100ba54], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100ba48], esi
cmp ecx, 2
je 0x1003b9c
or esi, 0x8000
mov dword [0x100ba48], esi
shl eax, 8
add eax, edx
mov dword [0x100ba4c], eax
cmp word [0x1000000], 0x5a4d
jne 0x1003bd8
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1003bd8
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1003bf1
cmp ecx, 0x20b
je 0x1003bde
and dword [ebp - 0x1c], 0
jmp 0x1003c05
cmp dword [eax + 0x84], 0xe
jbe 0x1003bd8
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1003bff
cmp dword [eax + 0x74], 0xe
jbe 0x1003bd8
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01004a11
pop ecx
test eax, eax
jne 0x1003c32
cmp dword [0x100ba2c], 1
jne 0x1003c1f
call fcn.010041ed
push 0x1c
call fcn.01004000
push 0xff
call fcn.01003e5f
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01004841
test eax, eax
jge 0x1003c47
push 0x1b
call fcn.01003b0d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100d0d0], eax
call fcn.01004714
mov dword [0x100ba24], eax
call fcn.0100466b
test eax, eax
jge 0x1003c6d
push 8
call fcn.01003b0d
pop ecx
call fcn.01004411
test eax, eax
jge 0x1003c7e
push 9
call fcn.01003b0d
pop ecx
call fcn.01003eb9
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1003c91
push eax
call fcn.01003b0d
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.010043a3
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1003cb3
movzx eax, word [ebp - 0x40]
jmp 0x1003cb6
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.0100380d
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1003cd7
push esi
call fcn.01003f99
call fcn.01003fd1
jmp 0x1003d09
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.01004aab
ret
Function at 0x1004000
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100b080]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100b0a0]
je 0x100402a
inc eax
cmp eax, 0x12
jb 0x100401b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100b0a0]
mov dword [ebp - 0x110], esi
jne 0x10041d5
mov eax, dword [0x100ba2c]
cmp eax, 1
je 0x10041a3
test eax, eax
jne 0x1004060
cmp dword [0x100b088], 1
je 0x10041a3
cmp ecx, 0xfc
je 0x10041d5
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100409b
push 5
pop ecx
mov esi, 0x100187c
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10040a6
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x10040de
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10040be
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001878
push ebx
call fcn.01005d50
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10040e3
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x100b0a4]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10040fd
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01004bd0
mov edx, esp
push 6
pop ecx
mov esi, 0x100185c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004129
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1004135
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100414e
mov eax, dword [ebp - 0x110]
mov esi, 0x1001858
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100b0a4]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100416c
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1004178
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001830
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01005c48
add esp, 0xc
jmp 0x10041d5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10041d5
mov esi, dword [esi + 0x100b0a4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10041ba
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.010039ea
pop edi
pop esi
pop ebx
leave
ret