joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003cd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100196f3
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x1001e0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x15d], 0
lea ecx, [ebp - 0x15c]
call fcn.100097d0
mov byte [ebp - 4], 1
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0xffffffff
jne 0x10003d65
mov al, byte [ebp - 0x15d]
mov byte [ebp - 0x15e], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call fcn.100030f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100030f0
mov al, byte [ebp - 0x15e]
jmp 0x10003e4a
cmp dword [ebp - 0x140], 0xffffffff
jne 0x10003d73
jmp 0x10003e1a
mov dword [ebp - 0x13c], 0x128
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x140]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10003e1a
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x15c]
call fcn.10009800
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.10009820
test eax, eax
jne 0x10003dc6
mov byte [ebp - 0x15d], 1
jmp 0x10003e0d
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [ebp - 0x140]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10003e0d
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.10009800
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x15c]
call fcn.10009820
test eax, eax
jne 0x10003e0b
mov byte [ebp - 0x15d], 1
jmp 0x10003e0d
jmp 0x10003dc6
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [ebp - 0x15d]
mov byte [ebp - 0x15f], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x15c]
call fcn.100030f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100030f0
mov al, byte [ebp - 0x15f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000a90e
mov esp, ebp
pop ebp
ret
Function at 0x10003e70
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019749
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1001e0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 1
mov eax, dword [str.0123456789ABCDEF]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x1001a51c]
mov dword [ebp - 0x20], ecx
mov edx, dword [0x1001a520]
mov dword [ebp - 0x1c], edx
mov eax, dword [0x1001a524]
mov dword [ebp - 0x18], eax
mov cl, byte [0x1001a528]
mov byte [ebp - 0x14], cl
lea ecx, [ebp - 0x40]
call fcn.100097d0
mov byte [ebp - 4], 2
mov dword [ebp - 0x44], 0
jmp 0x10003eef
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
lea ecx, [ebp + 0xc]
call fcn.100076f0
cmp dword [ebp - 0x44], eax
jae 0x10004002
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp + 0xc]
call fcn.10003ad0
mov cl, byte [eax]
mov byte [ebp - 0x45], cl
movsx edx, byte [ebp - 0x45]
cmp edx, 0x24
je 0x10003fa5
movsx eax, byte [ebp - 0x45]
cmp eax, 0x26
je 0x10003fa5
movsx ecx, byte [ebp - 0x45]
cmp ecx, 0x2b
je 0x10003fa5
movsx edx, byte [ebp - 0x45]
cmp edx, 0x2c
je 0x10003fa5
movsx eax, byte [ebp - 0x45]
cmp eax, 0x2f
je 0x10003fa5
movsx ecx, byte [ebp - 0x45]
cmp ecx, 0x3a
je 0x10003fa5
movsx edx, byte [ebp - 0x45]
cmp edx, 0x5b
je 0x10003fa5
movsx eax, byte [ebp - 0x45]
cmp eax, 0x5d
je 0x10003fa5
movsx ecx, byte [ebp - 0x45]
cmp ecx, 0x5c
je 0x10003fa5
movsx edx, byte [ebp - 0x45]
cmp edx, 0x3b
je 0x10003fa5
movsx eax, byte [ebp - 0x45]
cmp eax, 0x3d
je 0x10003fa5
movsx ecx, byte [ebp - 0x45]
cmp ecx, 0x3f
je 0x10003fa5
movsx edx, byte [ebp - 0x45]
cmp edx, 0x40
je 0x10003fa5
movsx eax, byte [ebp - 0x45]
cmp eax, 0x23
je 0x10003fa5
movsx ecx, byte [ebp - 0x45]
cmp ecx, 0x20
jl 0x10003fa5
movsx edx, byte [ebp - 0x45]
cmp edx, 0x7e
jle 0x10003fdb
push 0x25
lea ecx, [ebp - 0x40]
call fcn.10003ab0
movsx eax, byte [ebp - 0x45]
sar eax, 4
movzx ecx, byte [ebp + eax - 0x24]
push ecx
lea ecx, [ebp - 0x40]
call fcn.10003ab0
movsx edx, byte [ebp - 0x45]
and edx, 0xf
movzx eax, byte [ebp + edx - 0x24]
push eax
lea ecx, [ebp - 0x40]
call fcn.10003ab0
jmp 0x10003ffd
movsx ecx, byte [ebp - 0x45]
cmp ecx, 0x20
jne 0x10003ff0
push 0x2b
lea ecx, [ebp - 0x40]
call fcn.10003ab0
jmp 0x10003ffd
movzx edx, byte [ebp - 0x45]
push edx
lea ecx, [ebp - 0x40]
call fcn.10003ab0
jmp 0x10003ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
call fcn.100030b0
mov ecx, dword [ebp - 0x4c]
or ecx, 1
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.100030f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.100030f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000a90e
mov esp, ebp
pop ebp
ret
Function at 0x1000a90e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001e0c0]
jne 0x1000a918
repz ret
jmp fcn.10011a29

Function at 0x10016775
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.1000f31f
and dword [ebp - 4], 0
cmp dword [0x100213a0], 0
mov ebx, eax
jne 0x10016826
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100168d7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100168d7
push eax
call fcn.1000f2ad
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100213a0], eax
call esi
push eax
call fcn.1000f2ad
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100213a4], eax
call esi
push eax
call fcn.1000f2ad
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100213a8], eax
call esi
push eax
call fcn.1000f2ad
pop ecx
mov dword [0x100213b0], eax
test eax, eax
je 0x10016826
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000f2ad
pop ecx
mov dword [0x100213ac], eax
mov eax, dword [0x100213ac]
cmp eax, ebx
je 0x1001687e
cmp dword [0x100213b0], ebx
je 0x1001687e
push eax
call fcn.1000f328
push dword [0x100213b0]
mov esi, eax
call fcn.1000f328
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001687e
test edi, edi
je 0x1001687e
call esi
test eax, eax
je 0x10016875
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10016875
test byte [ebp - 0xc], 1
jne 0x1001687e
or dword [ebp + 0x10], 0x200000
jmp 0x100168b7
mov eax, dword [0x100213a4]
cmp eax, ebx
je 0x100168b7
push eax
call fcn.1000f328
pop ecx
test eax, eax
je 0x100168b7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100168b7
mov eax, dword [0x100213a8]
cmp eax, ebx
je 0x100168b7
push eax
call fcn.1000f328
pop ecx
test eax, eax
je 0x100168b7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100213a0]
call fcn.1000f328
pop ecx
test eax, eax
je 0x100168d7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100168d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x66a802e7
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x66a626d7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1001db3
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1008044]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x114], 0x104
je 0x1001e8c
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push ebx
push 0x1001208
push 0x80000002
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001e78
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push 0x1001207
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001e78
cmp dword [ebp - 0x110], 2
lea eax, [ebp - 0x108]
jne 0x1001e5b
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 0x114], eax
jmp 0x1001e78
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001e78
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x10c], ebx
je 0x1001e8c
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100392b
leave
ret 8

Function at 0x10023bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001248
push 0x80000002
mov dword [ebp - 4], esi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002423
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x100123c
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002423
cmp dword [ebp - 8], 4
jne 0x1002423
cmp dword [ebp - 0xc], esi
jne 0x1002423
inc ebx
cmp dword [ebp - 4], esi
je 0x1002431
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x100283c
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x10082c8], 0
mov eax, dword [0x1008044]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 4], eax
mov esi, 0x105
jne 0x10028f1
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x5e2
push dword [0x1008518]
call edi
test eax, eax
je 0x10028dc
lea eax, [ebp - 0x10c]
push eax
push 0x45c
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push esi
lea eax, [ebp - 0x214]
push eax
push 0x60b
push dword [0x1008518]
call edi
test eax, eax
jne 0x10028c5
push esi
push 0x1001207
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x40
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0x459
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [0x10082c8], 0
and dword [0x10082c4], 0
push 1
push 0x45a
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x60a
push dword [0x1008518]
call edi
test eax, eax
je 0x100293d
lea eax, [ebp - 0x10c]
push eax
push 2
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100392b
leave
ret 4

Function at 0x10030b7
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x10082c8], 0
mov eax, dword [0x1008044]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 4], eax
mov esi, 0x105
jne 0x100316c
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x5ec
push dword [0x1008518]
call edi
test eax, eax
je 0x1003157
lea eax, [ebp - 0x10c]
push eax
push 0x45c
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push esi
lea eax, [ebp - 0x214]
push eax
push 0x60b
push dword [0x1008518]
call edi
test eax, eax
jne 0x1003140
push esi
push 0x1001207
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x40
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0x459
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [0x10082c8], 0
and dword [0x10082c4], 0
push 1
push 0x45e
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x60a
push dword [0x1008518]
call edi
test eax, eax
je 0x10031b8
lea eax, [ebp - 0x10c]
push eax
push 2
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100392b
leave
ret 4
Function at 0x1003a72
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x10012a8
call fcn.01003d34
mov edi, 0x94
mov eax, edi
call fcn.01004aa0
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 [0x100832c], ecx
mov eax, dword [esi + 4]
mov dword [0x1008338], eax
mov edx, dword [esi + 8]
mov dword [0x100833c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1008330], esi
cmp ecx, 2
je 0x1003ad2
or esi, 0x8000
mov dword [0x1008330], esi
shl eax, 8
add eax, edx
mov dword [0x1008334], eax
cmp word [0x1000000], 0x5a4d
jne 0x1003b0e
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1003b0e
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1003b27
cmp ecx, 0x20b
je 0x1003b14
and dword [ebp - 0x1c], 0
jmp 0x1003b3b
cmp dword [eax + 0x84], 0xe
jbe 0x1003b0e
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1003b35
cmp dword [eax + 0x74], 0xe
jbe 0x1003b0e
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01004a40
pop ecx
test eax, eax
jne 0x1003b68
cmp dword [0x100831c], 1
jne 0x1003b55
call fcn.0100421c
push 0x1c
call fcn.0100402f
push 0xff
call fcn.01003e8e
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01004870
test eax, eax
jge 0x1003b7d
push 0x1b
call fcn.01003a43
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10088b4], eax
call fcn.01004743
mov dword [0x1008314], eax
call fcn.0100469a
test eax, eax
jge 0x1003ba3
push 8
call fcn.01003a43
pop ecx
call fcn.01004440
test eax, eax
jge 0x1003bb4
push 9
call fcn.01003a43
pop ecx
call fcn.01003ee8
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1003bc7
push eax
call fcn.01003a43
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.010043d2
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1003be9
movzx eax, word [ebp - 0x40]
jmp 0x1003bec
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.010020cf
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1003c0d
push esi
call fcn.01003fc8
call fcn.01004000
jmp 0x1003c3f
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.01003d6f
ret
Function at 0x100402f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1008044]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1008050]
je 0x1004059
inc eax
cmp eax, 0x12
jb 0x100404a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1008050]
mov dword [ebp - 0x110], esi
jne 0x1004204
mov eax, dword [0x100831c]
cmp eax, 1
je 0x10041d2
test eax, eax
jne 0x100408f
cmp dword [0x100804c], 1
je 0x10041d2
cmp ecx, 0xfc
je 0x1004204
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 0x10040ca
push 5
pop ecx
mov esi, 0x100161c
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 0x10040d5
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100410d
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10040ed
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001618
push ebx
call fcn.01005390
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004112
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1008054]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100412c
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01004aa0
mov edx, esp
push 6
pop ecx
mov esi, 0x10015fc
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 0x1004158
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1004164
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 0x100417d
mov eax, dword [ebp - 0x110]
mov esi, 0x10015f8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1008054]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100419b
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10041a7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10015d0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01005283
add esp, 0xc
jmp 0x1004204
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1004204
mov esi, dword [esi + 0x1008054]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10041e9
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.0100392b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004743
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1008480]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x100478f
call esi
mov edi, eax
cmp edi, ebx
je 0x1004775
mov dword [0x1008480], 1
jmp 0x1004794
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100478a
push 2
pop eax
mov dword [0x1008480], eax
jmp 0x100478f
mov eax, dword [0x1008480]
cmp eax, 1
jne 0x100480c
cmp edi, ebx
jne 0x10047a0
call esi
mov edi, eax
cmp edi, ebx
je 0x1004815
cmp word [edi], bx
mov eax, edi
je 0x10047b5
inc eax
inc eax
cmp word [eax], bx
jne 0x10047a7
inc eax
inc eax
cmp word [eax], bx
jne 0x10047a7
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1004803
push eax
call fcn.010059bc
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x1004803
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x1004800
push dword [ebp - 4]
call fcn.010058f7
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1004864
cmp eax, 2
je 0x1004819
cmp eax, ebx
je 0x1004819
xor eax, eax
jmp 0x1004866
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1004815
cmp byte [esi], bl
je 0x1004836
inc eax
cmp byte [eax], bl
jne 0x100482c
inc eax
cmp byte [eax], bl
jne 0x100482c
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.010059bc
cmp eax, ebx
pop ecx
je 0x100485d
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005052
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1005083
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x100508a
cmp ebx, dword [ebp + 8]
jae 0x100508a
xor eax, eax
jmp 0x100527a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100509b
xor eax, eax
inc eax
jmp 0x1005279
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x10050b1
cmp ecx, edx
jae 0x10051f6
cmp dword [eax + 4], 0
je 0x10050ba
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x10050a2
cmp dword [ebp + 8], 0
je 0x10050dc
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x10051f6
cmp eax, esi
jae 0x10051f6
mov eax, dword [0x10084a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1005101
cmp dword [esi*4 + 0x10084b0], edi
je 0x10051fa
inc esi
cmp esi, eax
jl 0x10050ef
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005276
cmp dword [ebp - 8], 0x1000000
jne 0x1005276
test byte [ebp - 0xc], 0xcc
je 0x100517f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1005276
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1005276
cmp word [eax + 0x18], 0x10b
jne 0x1005276
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1005276
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100517f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100517f
test byte [ecx + 0x27], 0x80
jne 0x10051f6
push 1
push 0x10084f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1005093
mov ecx, dword [0x10084a8]
test ecx, ecx
mov edx, ecx
jle 0x10051b3
lea eax, [ecx*4 + 0x10084ac]
cmp dword [eax], edi
je 0x10051b3
dec edx
sub eax, 4
test edx, edx
jg 0x10051a7
test edx, edx
jne 0x10051e4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x10051c0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10051d8
lea eax, [edx*4 + 0x10084b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x10051c6
cmp ecx, 0x10
jge 0x10051e4
inc ecx
mov dword [0x10084a8], ecx
push 0
push 0x10084f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1005093
xor eax, eax
jmp 0x1005279
test esi, esi
jle 0x1005093
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x10084f0
call ebx
test eax, eax
jne 0x1005093
cmp dword [esi*4 + 0x10084b0], edi
je 0x1005250
mov eax, dword [0x10084a8]
lea esi, [eax - 1]
test esi, esi
jl 0x100523e
cmp dword [esi*4 + 0x10084b0], edi
je 0x100523a
dec esi
jns 0x100522e
test esi, esi
jge 0x100524e
cmp eax, 0x10
jge 0x1005249
inc eax
mov dword [0x10084a8], eax
lea esi, [eax - 1]
jmp 0x1005250
je 0x1005268
xor ecx, ecx
test esi, esi
jl 0x1005268
lea eax, [ecx*4 + 0x10084b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1005256
push 0
push 0x10084f0
call ebx
jmp 0x1005093
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret