joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bb5b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 0x800
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push edi
or bl, 0xff
push eax
mov esi, edi
mov byte [ebp - 0x805], bl
mov dword [ebp - reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push eax
push 0xf003f
push edi
push 0x10006d48
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000bc88
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push eax
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push eax
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x10006db0
push dword [ebp - 0x80c]
mov dword [ebp - reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex], 0x800
call edi
mov ecx, 0xea
test eax, eax
je 0x1000bc04
cmp eax, ecx
jne 0x1000bc88
cmp eax, ecx
jne 0x1000bc52
push dword [ebp - 0x810]
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x1000bc88
push dword [ebp - 0x810]
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push eax
push esi
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push eax
push 0
push 0x10006db0
push dword [ebp - 0x80c]
call edi
test eax, eax
jne 0x1000bc7c
mov eax, esi
jmp 0x1000bc58
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push 0
lea ecx, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push ecx
lea ebx, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
call fcn.1000b164
mov bl, byte [ebp - 0x818]
test eax, eax
jne 0x1000bc7c
mov bl, byte [ebp - 0x805]
test esi, esi
je 0x1000bc88
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex], 0
je 0x1000bc9d
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1000cace
leave
ret
Function at 0x1000bcb3
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 0x800
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push edi
push eax
mov ebx, edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push eax
push 0xf003f
push edi
push 0x10006d48
mov esi, edi
push 0x80000002
mov dword [ebp - reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000be34
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push eax
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push eax
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push eax
push edi
push 0x10006db0
push dword [ebp - 0x808]
mov dword [ebp - reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, 0xea
test edi, edi
je 0x1000bd55
cmp edi, eax
jne 0x1000be26
cmp edi, eax
jne 0x1000bdad
push dword [ebp - 0x80c]
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1000be26
push dword [ebp - 0x80c]
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push eax
push ebx
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push eax
push 0
push 0x10006db0
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x1000be0e
mov eax, ebx
jmp 0x1000bdb3
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
lea ecx, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
push ecx
push eax
lea eax, reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
call fcn.1000b210
test eax, eax
js 0x1000be05
cmp dword [ebp - reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex], esi
je 0x1000be05
mov esi, dword [ebp - reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex]
test esi, esi
jne 0x1000bde0
xor eax, eax
jmp 0x1000bde8
mov edx, esi
call fcn.1000b124
inc eax
add eax, eax
push eax
push esi
push 7
push 0
push 0x10006db0
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x1000be0e
mov esi, dword [ebp - reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex]
push 8
pop edi
test ebx, ebx
je 0x1000be1a
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test esi, esi
je 0x1000be26
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cace
leave
ret
Function at 0x1000bfad
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
xor edx, edx
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x3c], 0x28
rep stosd dword es:[edi], eax
test ebx, ebx
je 0x1000c15e
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x34]
push eax
push 0x20019
push edx
push 0x10004408
push 0x80000002
call edi
mov esi, eax
test esi, esi
jne 0x1000c136
cmp dword [ebp - 0x34], eax
je 0x1000c136
lea eax, [ebp - 0x30]
push eax
push 3
push esi
push ebx
push dword [ebp - 0x34]
call edi
mov esi, eax
test esi, esi
jne 0x1000c0ed
cmp dword [ebp - 0x30], eax
je 0x1000c0ed
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x38]
push eax
push 4
xor ebx, ebx
push ebx
push 0x10007180
push dword [ebp - 0x30]
mov dword [ebp - 0x38], ebx
call edi
mov esi, eax
test esi, esi
je 0x1000c083
push dword [ebp - 0x38]
push 0x10007180
push 0x10007190
call fcn.10009770
add esp, 0xc
push esi
call fcn.10009788
push eax
push 0x10007088
call fcn.10009770
jmp 0x1000c113
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 0x10007210
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea eax, [ebp - 0x2c]
test esi, esi
je 0x1000c0b1
push eax
push 0x10007210
push 0x10007220
jmp 0x1000c065
push 0xd
push eax
push 0x10006a40
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x1000c115
push 0x1a
push 0x10006a40
push 1
push ebx
push 0x10007210
push dword [ebp - 0x30]
call edi
mov esi, eax
test esi, esi
je 0x1000c115
push dword [ebp - 0x38]
push 0x10007210
jmp 0x1000c060
push ebx
push 0x10004408
push 0x100070e8
call fcn.10009770
add esp, 0xc
push esi
call fcn.10009788
push eax
push 0x10007088
call fcn.10009770
xor ebx, ebx
pop ecx
pop ecx
cmp dword [ebp - 0x34], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1000c129
push dword [ebp - 0x34]
call edi
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x30], 0
je 0x1000c15a
push dword [ebp - 0x30]
call edi
jmp 0x1000c15a
push 0x10004408
push 0x10006ff0
call fcn.10009770
pop ecx
pop ecx
push esi
call fcn.10009788
push eax
push 0x10007088
call fcn.10009770
pop ecx
pop ecx
mov eax, esi
jmp 0x1000c16c
push 0x10006f80
call fcn.10009770
pop ecx
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000cace
leave
ret
Function at 0x1000c180
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor eax, eax
push 0xf003f
push eax
push eax
mov esi, eax
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1000c1ac
push 0x57
pop eax
jmp 0x1000c2ef
push edi
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x1000c1e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.10009788
push eax
push dword [ebp + 8]
push 0x100072a8
call fcn.10009770
add esp, 0xc
jmp 0x1000c2bf
lea eax, [ebp - 4]
push eax
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x1000c2b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x7a
jne 0x1000c2a0
mov eax, dword [ebp - 4]
push eax
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1000c23b
push esi
call fcn.10009788
push eax
push 0x10007328
call fcn.10009770
pop ecx
pop ecx
jmp 0x1000c2c3
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
xor esi, esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x1000c25f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x100074b0
jmp 0x1000c2b9
push 0xd
push 0x10006a40
push dword [ebx + 0x10]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
mov eax, 0x10006a40
jne 0x1000c27d
mov eax, esi
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
push 0xffffffffffffffff
push ecx
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x1000c2cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000c2bf
push esi
call fcn.10009788
push eax
push 0x10007398
call fcn.10009770
pop ecx
jmp 0x1000c2be
push 0x10007418
call fcn.10009770
pop ecx
test esi, esi
je 0x1000c2cd
mov ecx, dword [ebp + 8]
call fcn.1000bfad
mov esi, eax
test edi, edi
je 0x1000c2d8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
test ebx, ebx
je 0x1000c2ed
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x1000cb00
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x1000cb16
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], reloc.SETUPAPI.dll_CM_Set_DevNode_Problem_Ex
jne 0x1000cb31
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x1000cb40
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x1000cb7e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1000cb76
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1000cb80
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1000cb66
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4010e5
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 4]
ret

Function at 0x4010f8
Capabilities:
Set current directory

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp edi, 3
jle 0x40111d
cmp byte [edi + esi - 1], 0x5c
jne 0x40111d
and byte [edi + esi - 1], bl
push 1
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
dec eax
neg eax
sbb eax, eax
neg eax
test ebx, ebx
je 0x401134
mov byte [edi + esi - 1], 0x5c
pop edi
pop esi
pop ebx
ret

Function at 0x4014d8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
lea eax, [ebp - 8]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
lea eax, [ebp - 0x28]
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40153a
push 7
lea eax, [ebp - 0x28]
push str.PKBACK
push eax
call fcn.00401028
add esp, 0xc
test eax, eax
jne 0x40153a
mov al, byte [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmp al, bl
je 0x401536
cmp al, 0x2e
je 0x401536
cmp al, 0x20
je 0x401536
mov al, byte [ecx + 1]
inc ecx
jmp 0x401524
cmp byte [ecx], bl
jne 0x401540
or ax, 0xffff
jmp 0x40156c
mov al, byte [ecx]
cmp al, 0x30
jb 0x40154a
cmp al, 0x39
jbe 0x40154d
inc ecx
jmp 0x401540
xor eax, eax
mov dl, byte [ecx]
cmp dl, bl
je 0x40156c
movzx edx, dl
lea eax, [eax + eax*4]
shl eax, 1
sub edx, 0x30
js 0x40156c
cmp edx, 9
jg 0x40156c
add eax, edx
inc ecx
jmp 0x40154f
pop ebx
leave
ret 4

Function at 0x4016c0
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push 8
xor eax, eax
shl ecx, 1
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
test dl, 1
je 0x4016e0
shr eax, 1
xor eax, 0xedb88320
jmp 0x4016e2
shr eax, 1
dec esi
jne 0x4016cc
pop esi
ret 4

Function at 0x401709
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [0x4082a0]
mov edx, ecx
dec ecx
test edx, edx
je 0x40173c
push edi
lea edx, [ecx + 1]
mov ecx, dword [esp + 8]
push esi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x407ea0]
xor eax, esi
inc ecx
dec edx
jne 0x401722
pop esi
pop edi
mov dword [0x4082a0], eax
ret
Function at 0x401eb4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x5c8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0
je 0x401ef7
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x5c8]
push 0x4079d8
push eax
call edi
lea eax, [ebp - 0x5c8]
push esi
push eax
call edi
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
jne 0x401f13
lea eax, [ebp - 0x5c8]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x401fb9
lea eax, [ebp - 0x2e4]
push eax
push 0
push ebx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x1f
jne 0x401f45
push ebx
push 0x2e
call fcn.0040108f
push eax
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
jmp 0x401f9f
cmp eax, 0x20
jbe 0x401f83
mov al, byte [esi]
push 1
neg al
sbb eax, eax
push 0
and eax, esi
push eax
mov eax, dword [0x407934]
and eax, 0x20000
push ebx
neg eax
sbb eax, eax
and eax, str.Install
push eax
push dword [0x4086c0]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test edi, edi
je 0x401f7e
mov dword [edi], eax
cmp eax, 0x20
ja 0x401fb9
push ebx
push eax
push 0xe
call fcn.0040108f
push eax
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
lea eax, [ebp - 0x2e4]
push str.WinZip_Self_Extractor
push eax
push dword [0x4086c0]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401fbe
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x401ffa
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x105
push eax
lea eax, [ebp - 0x10c]
push eax
push str.winzip_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x402019
push 0
push str.WinZip_Self_Extractor
push 0x1b
call fcn.0040108f
push eax
push dword [0x4086c0]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
leave
ret
mov cl, byte [ebp - 0x10c]
lea eax, [ebp - 0x10c]
test cl, cl
je 0x402034
cmp cl, 0x20
je 0x402034
mov cl, byte [eax + 1]
inc eax
jmp 0x402025
push 0x408440
inc eax
push str.__s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x407934]
mov ecx, 0x1000
mov edx, eax
add esp, 0xc
and edx, ecx
cmp edx, ecx
jne 0x40208a
mov ecx, 0x8000
and eax, ecx
cmp eax, ecx
je 0x40208a
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x10c]
sub ecx, 3
add eax, ecx
dec eax
mov byte [eax], 0x7a
inc eax
mov byte [eax], 0x69
mov byte [eax + 1], 0x70
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0x407e68
push eax
call fcn.00401eb4
add esp, 0xc
neg eax
sbb eax, eax
neg eax
leave
ret

Function at 0x4023df
Capabilities:
Query environment variable

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
ret
Function at 0x4039d8
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov bl, 0x22
cmp byte [eax], bl
je 0x4039e8
add bl, 0xfe
mov cl, byte [eax + 1]
inc eax
xor edx, edx
cmp cl, dl
je 0x4039fc
cmp cl, bl
je 0x4039fc
mov cl, byte [eax + 1]
inc eax
jmp 0x4039ee
cmp byte [eax], dl
je 0x403a01
inc eax
push edx
push eax
push edx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403b79
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x40840e]
test eax, eax
jg 0x403b8c
and dword [0x4083d4], 0
xor eax, eax
ret
push edi
push esi
mov esi, 0x800
cmp eax, esi
ja 0x403b99
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push esi
push dword [0x4083d0]
push dword [0x407e04]
call edi
cmp dword [0x407e14], 0
mov ecx, eax
mov dword [0x4083d4], ecx
je 0x403c08
cmp ecx, 0xffffffff
je 0x403c08
cmp ecx, esi
je 0x403c19
test ecx, ecx
jl 0x403c08
mov ax, word [0x4078d0]
push dword [0x407e18]
inc ax
push eax
call fcn.0040132a
mov ecx, dword [0x4083d4]
test ecx, ecx
jne 0x403c01
push esi
push dword [0x4083d0]
push dword [0x407e04]
call edi
mov ecx, eax
mov dword [0x4083d4], ecx
cmp ecx, 0xffffffff
je 0x403c08
mov esi, ecx
cmp ecx, esi
je 0x403c19
push 2
call fcn.00401d71
mov ecx, dword [0x4083d4]
sub dword [0x40840e], ecx
mov esi, dword [0x4083d0]
cmp dword [0x407e08], 0
mov dword [0x40841c], esi
je 0x403c5b
mov eax, ecx
mov edx, eax
dec eax
test edx, edx
je 0x403c5b
lea edi, [eax + 1]
call fcn.004054cc
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.004054e2
inc esi
dec edi
pop ecx
jne 0x403c40
mov ecx, dword [0x4083d4]
mov eax, ecx
dec ecx
pop esi
mov dword [0x4083d4], ecx
pop edi
ret

Function at 0x4054e2
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x407e70]
xor eax, ecx
mov edx, 0xff
and eax, edx
push esi
shr ecx, 8
mov eax, dword [eax*4 + 0x407ea0]
xor eax, ecx
mov ecx, dword [0x407e78]
mov dword [0x407e70], eax
and eax, edx
add eax, dword [0x407e74]
mov esi, ecx
and esi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [0x407e74], eax
shr eax, 0x18
xor esi, eax
shr ecx, 8
mov eax, dword [esi*4 + 0x407ea0]
pop esi
xor eax, ecx
mov dword [0x407e78], eax
ret

Function at 0x4055c9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [0x407e10]
call fcn.0040553d
pop ecx
lea eax, [ebp - 0xc]
push 0xc
push dword [ebp + 8]
push eax
call fcn.00401000
add esp, 0xc
xor edi, edi
lea esi, [ebp + edi - 0xc]
call fcn.004054cc
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.004054e2
inc edi
pop ecx
cmp edi, 0xc
jl 0x4055f0
cmp dword [0x407e0c], 0
movzx ax, byte [ebp - 1]
je 0x405623
xor ecx, ecx
mov cl, byte [0x408407]
jmp 0x40562c
mov ecx, dword [0x40840a]
shr ecx, 0x18
cmp ax, cx
je 0x405636
or eax, 0xffffffff
jmp 0x405638
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10001452
Capabilities:
Access peb ldr_data
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x38
mov edi, dword [0x1001c0f7]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov edx, dword [ebx]
cmp edx, ebx
je 0x100014c7
xor ebp, ebp
mov esi, dword [edx + 0x30]
mov ecx, ebp
movzx eax, word [esi]
test eax, eax
je 0x100014b9
mov dword [esp + 8], edx
mov eax, ebp
mov dword [esp + 4], ebx
mov dword [esp], edi
movzx ebx, word [esi + eax*2]
inc eax
lea edx, [ebx - 0x41]
cmp edx, 0x19
lea edi, [ebx + 0x20]
jbe 0x100014a1
mov edi, ebx
movzx edx, di
movzx ebx, word [esi + eax*2]
add ecx, edx
test ebx, ebx
jne 0x1000148f
mov edx, dword [esp + 8]
mov ebx, dword [esp + 4]
mov edi, dword [esp]
cmp edi, ecx
je 0x10001d46
mov edx, dword [edx]
cmp edx, ebx
jne 0x10001476
xor ebx, ebx
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
mov esi, dword [0x1001c0eb]
mov edi, dword [0x1001c11f]
mov edx, dword [0x1001c0d7]
mov eax, dword [ecx + esi*8 + 0x78]
mov dword [esp + 0xc], edx
mov edx, dword [eax + ebx + 0x24]
mov esi, dword [eax + ebx + 0x20]
add edx, ebx
mov ecx, dword [eax + ebx + 0x1c]
add esi, ebx
mov eax, dword [eax + ebx + 0x18]
add ecx, ebx
test eax, eax
jbe 0x10001588
mov dword [esp + 0x30], ebx
xor ebp, ebp
mov dword [esp + 8], eax
mov ebx, dword [edx + 0x18]
jmp 0x100014c9
Function at 0x10001720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [esi + ebx], 0
jne 0x1000171f
xor ebp, ebp
test esi, esi
je 0x10001767
mov dword [esp + 0x14], edx
xor ecx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0xc]
movzx esi, byte [ecx + ebx]
xor eax, eax
test edx, edx
jbe 0x10001751
xor edi, edi
inc edi
add eax, ebp
cmp edi, edx
jb 0x1000174a
inc ecx
lea ebp, [eax + esi]
cmp ecx, dword [esp + 0x20]
jb 0x1000173e
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]

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

Disassembly:
add eax, ebx
mov edi, dword [0x1001c0eb]
mov ecx, dword [0x1001c133]
mov edx, dword [0x1001c0d7]
mov eax, dword [eax + edi*8 + 0x78]
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
mov edx, dword [eax + ebx + 0x20]
add edx, ebx
mov dword [esp + 0x18], edx
mov ecx, dword [eax + ebx + 0x24]
mov edx, dword [eax + ebx + 0x1c]
add ecx, ebx
mov eax, dword [eax + ebx + 0x18]
add edx, ebx
test eax, eax
jbe 0x10001885
mov dword [esp + 0x1c], ebp
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
je 0x10001836
invalid
mov edx, dword [esp + 0x30]
add edx, dword [ebp + edi*4]
cmp byte [edx], 0
je 0x10001cd7
xor ebx, ebx
inc ebx
cmp byte [ebx + edx], 0
jne 0x10001826
xor ecx, ecx
test ebx, ebx
je 0x1000186a
mov dword [esp + 0x24], ebx
xor eax, eax
mov dword [esp + 0x20], edi
mov ebp, dword [esp + 0xc]
invalid
movzx esi, byte [eax + edx]
xor ebx, ebx
test ebp, ebp
jbe 0x10001854
xor edi, edi
inc edi
add ebx, ecx
cmp edi, ebp
jb 0x1000184d
inc eax
lea ecx, [ebx + esi]
cmp eax, dword [esp + 0x24]
jb 0x10001841
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, esi
je 0x10001cb6
inc edi
cmp edi, dword [esp + 8]
jb 0x10001813
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
xor eax, eax
push 0
push esi
call eax
mov ecx, eax
test ecx, ecx
jne 0x1000189c
xor eax, eax
add esp, 0x38
pop ebp
pop ebx
pop edi
pop esi
ret
mov edi, dword [ebx + 0x3c]
add edi, ebx
mov eax, dword [0x1001c0eb]
mov edx, dword [0x1001c0df]
mov dword [esp + 0x24], edx
mov edi, dword [edi + eax*8 + 0x78]
mov edx, dword [0x1001c0d7]
mov dword [esp + 0x18], edx
invalid
push esp