joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb9fa80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5fc000]
push edi
or ebp, 0xffffffff
jmp 0xb9faa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb9faa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb9fa98
mov eax, 1
add ebx, ebx
jne 0xb9fabb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb9facc
jne 0xb9faeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb9faeb
dec eax
add ebx, ebx
jne 0xb9fad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb9fab0
add ebx, ebx
jne 0xb9fae7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb9fb3d
xor ecx, ecx
sub eax, 3
jb 0xb9fb03
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb9fb72
sar eax, 1
mov ebp, eax
jmp 0xb9fb0e
add ebx, ebx
jne 0xb9fb0e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb9fadc
inc ecx
add ebx, ebx
jne 0xb9fb1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb9fadc
add ebx, ebx
jne 0xb9fb29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb9fb1e
jne 0xb9fb3a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb9fb1e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb9fb5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb9fb4e
jmp 0xb9fa9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb9fb5c
add edi, ecx
jmp 0xb9fa9e
pop esi
mov edi, esi
mov ecx, 0xf6e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb9fb7a
cmp byte [edi], 0xe
jne 0xb9fb7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xb9fb7f
lea edi, [esi + 0x79c000]
mov eax, dword [edi]
or eax, eax
je 0xb9fbf7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7a7538]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7a763c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb9fbac
mov ecx, edi
jns 0xb9fbdb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7a7640]
or eax, eax
je 0xb9fbf1
mov dword [ebx], eax
add ebx, 4
jmp 0xb9fbc9
call dword [esi + 0x7a7650]
mov ebp, dword [esi + 0x7a7644]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xb9fc2b
sub esp, 0xffffff80
jmp 0x40e3b4

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 0x18005ff5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
test esi, esi
je 0x180060b6
cmp dword [ebp + 8], 0
jne 0x1800601a
cmp dword [ebp + 0x10], 2
jg 0x180060b6
call fcn.180040b1
push eax
lea ecx, [ebp - 4]
call fcn.1800717c
call fcn.180040b1
push eax
lea ecx, [ebp + 0x14]
call fcn.1800717c
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.1800ed03
test al, al
jne 0x1800605c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x1800603c
jmp 0x18006080
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.18005f21
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x180060a0
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x181a9438
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.18004715
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004715
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x180063d6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx], fcn.18006584
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.180040b1
push eax
lea ecx, [ebx + 0xc]
call fcn.1800717c
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.18006e44
mov dword [ebx + 0x18], edi
call fcn.180040b1
push eax
lea ecx, [ebx + 0x1c]
call fcn.1800717c
movzx eax, byte [0x181d7aa2]
neg eax
sbb eax, eax
and eax, 0x181d6c50
mov dword [ebp + 8], eax
je 0x180064a9
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.180062e9
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x18006485
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call edi
mov dword [ebx + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call edi
test eax, eax
setne al
jmp 0x1800648f
xor eax, eax
mov dword [ebx + 4], 0x989680
inc eax
mov byte [ebx + 0xb], al
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.18006dec
lea ecx, [esi - 0x10]
call fcn.18004715
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x18008fbc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x181cf008]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
test edi, edi
je 0x1800903e
movzx eax, word [edi]
test ax, ax
je 0x1800903e
push 0x3a
mov ecx, eax
xor dl, dl
pop eax
push 0x2e
mov esi, edi
pop ebx
cmp cx, 0x5c
je 0x1800900f
cmp cx, 0x2f
je 0x1800900f
cmp cx, ax
je 0x1800900f
cmp cx, bx
je 0x18009014
mov dl, 1
cmp cx, bx
jne 0x18009022
cmp esi, edi
jbe 0x18009022
cmp word [esi - 2], bx
je 0x180091d1
cmp cx, ax
push 0x3a
sete al
add esi, 2
dec al
and dl, al
movzx eax, word [esi]
mov ecx, eax
test ax, ax
pop eax
jne 0x18008ff7
jmp 0x18009040
xor dl, dl
test dl, dl
je 0x180091d1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18009070
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18009066
xor eax, eax
jmp 0x180091d6
call fcn.18013e1e
jmp 0x180091d6
and eax, 0x410
cmp eax, 0x10
jne 0x180091d1
mov ecx, edi
call fcn.18008e75
push 0x250
mov ebx, eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.18148b00
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.18006e44
mov esi, 0x181a9a24
push esi
call fcn.1814ca63
pop ecx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.18006f50
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x180090f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180091c1
call fcn.18013e1e
test ebx, ebx
jns 0x180091bf
jmp 0x180091c1
test byte [esp + 0x18], 0x10
je 0x1800918a
push 0
push 2
mov edx, 0x181a99f4
lea ecx, [esp + 0x4c]
call fcn.1800d18c
pop ecx
pop ecx
test eax, eax
je 0x1800918a
push 0
push 3
mov edx, 0x181a9a18
lea ecx, [esp + 0x4c]
call fcn.1800d18c
pop ecx
pop ecx
test eax, eax
je 0x1800918a
push edi
lea ecx, [esp + 0x10]
call fcn.18006e44
mov edi, 0x181a8ea4
push edi
call fcn.1814ca63
pop ecx
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.18006f50
lea eax, [esp + 0x44]
push eax
call fcn.1814ca63
pop ecx
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.18006f50
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.18008fbc
test ebx, ebx
js 0x1800917e
test eax, eax
jns 0x1800917e
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18004715
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180090f3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x180091c1
mov ecx, edi
call fcn.1800abe2
test ebx, ebx
js 0x180091c1
test eax, eax
jns 0x180091c1
mov ebx, eax
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18004715
mov eax, ebx
jmp 0x180091d6
mov eax, 0x80004005
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18145fe4
mov esp, ebp
pop ebp
ret
Function at 0x1800e642
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x181cf008]
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.18006eee
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.18148b00
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 0x1800e6dc
movzx ecx, bl
cmp ecx, 0x26
jne 0x1800e6a0
mov edx, str.ProgramFiles
jmp 0x1800e6aa
cmp ecx, 0x1c
jne 0x1800e6cb
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.180052b8
push eax
mov ecx, esi
call fcn.18006dec
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.18004715
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x1800e6d8
xor eax, eax
inc eax
jmp 0x1800e6fa
mov eax, edi
jmp 0x1800e6fa
lea eax, [ebp - 0x20c]
push eax
call fcn.1814ca63
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.180070ff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145fe4
leave
ret

Function at 0x1800ed03
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x1800ed44
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x1800ed44
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x1800ed1f
xor al, al
jmp 0x1800ed46
mov al, 1
pop esi
leave
ret 4

Function at 0x1800f8b8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x181cf008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x234], ecx
push edi
push 2
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x1800f954
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.18148b00
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800f954
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx + 0x1c]
jne 0x1800f937
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x1800f950
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800f91c
mov edi, 0x80004005
jmp 0x1800f95b
mov dword [ebx], eax
jmp 0x1800f95b
call fcn.18013e1e
mov edi, eax
cmp esi, 0xffffffff
je 0x1800f967
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145fe4
leave
ret 4
Function at 0x18018d96
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push esi
push str.GOOGLE_UPDATE_NO_CRASH_HANDLER
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x18018eba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x18018dd9
test eax, eax
jle 0x18018dd3
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x18018eba
lea edi, [ebx + 0x90]
mov ecx, dword [edi]
test ecx, ecx
je 0x18018dec
mov dword [edi], esi
call fcn.1801a0a9
lea ecx, [ebp - 0x18]
call fcn.1800f1bf
call fcn.180040b1
push eax
lea ecx, [ebp - 8]
call fcn.1800717c
push dword [ebx + 0xc]
lea eax, [ebp - 8]
push 0x181ab26c
push eax
call fcn.1800f2dc
add esp, 0xc
lea ecx, [ebp - 4]
push str.CommandLineMode
call fcn.18006e44
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.1801b897
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp - 0x18]
je 0x18018e4a
push dword [esi + 0x10]
lea ecx, [ebp - 4]
call fcn.1800c345
test eax, eax
jns 0x18018e65
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ecx
push esi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.1801b8d4
mov esi, dword [eax]
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0x14]
call fcn.18006dec
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004715
mov cl, byte [ebx + 0x88]
lea edx, [ebp - 0x18]
push edi
call fcn.180b2ed5
pop ecx
mov ecx, dword [ebp - 8]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18004715
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push dword [ecx + 4]
mov ecx, eax
push eax
call fcn.1800f25d
push 0x18
push dword [ebp - 0x18]
call fcn.1800a736
pop ecx
pop ecx
mov eax, esi
jmp 0x18018ebd
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1801a847
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x1801a87d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a8ec
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a8ec
lea ecx, [ebp - 4]
call fcn.1804c279
lea ecx, [ebp - 8]
call fcn.1801aca0
push ebx
push ebx
push str.RPCSS
push ebx
push ebx
push edi
mov edi, dword [ebp - 8]
push 1
push 2
push 0x10
push 0xf01ff
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x1801a8cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a8d2
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a8d2
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [edi - 0x10]
call fcn.18004715
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004715
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x18026eb5
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x18026ed1
mov eax, 0x80070057
jmp 0x18026f3d
call fcn.180040b1
push eax
lea ecx, [ebp + 0xc]
call fcn.1800717c
push dword [esi]
lea eax, [ebp + 0xc]
push str._s_last.dmp
push eax
call fcn.1800f2dc
lea eax, [ebp + 0xc]
push eax
lea edx, [ebx + 4]
lea ecx, [ebp - 4]
call fcn.1800eeae
mov esi, dword [ebp - 4]
add esp, 0x10
cmp dword [esi - 0xc], edi
jne 0x18026f10
mov edi, 0x80040709
jmp 0x18026f28
mov eax, dword [ebp + 8]
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x18026f28
call fcn.18013e1e
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.18004715
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.18004715
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1803308f
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x180331e2
mov edx, 0x10000000
cmp eax, 0x7c
je 0x180331e2
cmp eax, 0x29
jne 0x180330c8
cmp dword [esi + 0x10], 0
jne 0x180331e2
test dword [esi + 0x50], edx
je 0x180331e8
cmp eax, 0x2e
jne 0x180330e3
push 5
lea ecx, [esi + 0x24]
call fcn.180332bb
mov ecx, esi
call fcn.18033066
jmp 0x180331cc
cmp eax, 0x5c
jne 0x18033138
mov ecx, esi
call fcn.18033066
test byte [esi + 0x50], 0x80
je 0x1803312c
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x18033114
push 4
lea ecx, [esi + 0x24]
call fcn.180332bb
mov ecx, esi
call fcn.18033066
jmp 0x180331d3
cmp eax, 0x42
jne 0x1803312c
push 4
lea ecx, [esi + 0x24]
call fcn.180332bb
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x18033108
mov ecx, esi
call fcn.18034129
jmp 0x180331cc
cmp eax, 0x5b
jne 0x18033158
mov ecx, esi
call fcn.18033066
mov ecx, esi
call fcn.180340dd
cmp dword [esi + 0x4c], 0x5d
je 0x180330d7
push 4
jmp 0x180331ea
cmp eax, 0x28
jne 0x18033175
mov ecx, esi
call fcn.18033066
mov ecx, esi
call fcn.18034202
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x180331e8
jmp 0x180331c1
cmp eax, 0x5e
jne 0x1803317e
push 2
jmp 0x18033100
cmp eax, 0x24
jne 0x1803318a
push 3
jmp 0x18033100
cmp eax, 0x2a
je 0x180331de
cmp eax, 0x2b
je 0x180331de
cmp eax, 0x3f
je 0x180331de
cmp eax, 0x7b
je 0x180331de
cmp eax, 0x7d
jne 0x180331a8
test dword [esi + 0x50], edx
je 0x180331da
cmp eax, 0x5d
jne 0x180331b2
test dword [esi + 0x50], edx
je 0x18033151
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.180343cb
mov bl, 1
mov ecx, esi
call fcn.18033066
test bl, bl
je 0x180331d3
mov ecx, esi
call fcn.180342f1
mov cl, 1
jmp 0x18033096
push 6
jmp 0x180331ea
push 0xa
jmp 0x180331ea
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.180324c8
int3
Function at 0x1804036b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0xc], ebx
call fcn.180040b1
push eax
mov ecx, ebx
call fcn.1800717c
xor ecx, ecx
lea eax, [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.180071f9
xor ebx, ebx
inc ebx
lea edi, [eax + 0x10]
mov dword [ebp - 8], edi
mov dword [ebp + 8], edi
cmp dword [edi - 4], ebx
jle 0x180403c8
push dword [edi - 0xc]
lea ecx, [ebp + 8]
call fcn.1800736c
mov edi, dword [ebp + 8]
mov dword [ebp - 8], edi
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
neg eax
sbb eax, eax
and eax, 0x18004b16
je 0x18040423
cmp dword [ebp - 4], ebx
jl 0x18040423
push dword [esi]
mov ecx, dword [ebp - 0xc]
call fcn.18006e76
cmp dword [ebp - 4], ebx
jle 0x18040427
mov edi, dword [ebp - 0x10]
push dword [esi + ebx*4]
lea ecx, [ebp + 8]
call fcn.18006e44
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.18009ef8
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.18004715
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x180403f7
mov edi, dword [ebp - 8]
jmp 0x18040427
test esi, esi
je 0x1804042e
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [edi - 0x10]
call fcn.18004715
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x18040581
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x24]
cmp eax, esi
je 0x180405a1
test eax, eax
je 0x1804059e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], esi
mov eax, dword [edi + 0x28]
mov esi, dword [ebp + 0xc]
cmp eax, esi
je 0x180405b9
test eax, eax
je 0x180405b6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x28], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
test edx, edx
je 0x180405ca
lock inc dword [edx + 4]
mov edx, dword [eax + 4]
mov ecx, dword [edi + 0x30]
mov eax, dword [eax]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], edx
test ecx, ecx
je 0x180405de
call fcn.1801d592
test edi, edi
je 0x180405e8
mov eax, dword [edi]
push edi
call dword [eax + 4]
xor ebx, ebx
push ebx
push ebx
push edi
push 0x18040939
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [edi + 0x34]
mov dword [ebp + 8], eax
cmp esi, eax
je 0x18040617
test esi, esi
je 0x18040612
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [edi + 0x34], eax
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x18004b16
jne 0x1804062a
call fcn.18013e1e
mov ebx, eax
neg esi
sbb esi, esi
not esi
and esi, edi
je 0x1804063a
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x180a4d61
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
mov edi, ebx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x180a4db8
push ebx
push dword [ecx + edi*4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x180a4d95
mov dl, 1
mov byte [ebp - 1], dl
jmp 0x180a4d98
mov dl, byte [ebp - 1]
mov eax, dword [esi + 8]
inc edi
mov ecx, dword [esi + 4]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x180a4d80
test dl, dl
je 0x180a4db8
push dword [ebp + 8]
mov ecx, esi
call fcn.180a4869
mov bl, al
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x180b1ce4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x181cf008]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x208
mov dword [esp + 0x10], eax
xor edi, edi
lea eax, [esp + 0x2c]
mov bl, dl
push edi
push eax
mov esi, ecx
call fcn.18148b00
add esp, 0xc
lea eax, [esp + 0x28]
push 0x104
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x180b1d4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x180b1d9f
movzx eax, ax
or eax, 0x80070000
jmp 0x180b1d9f
lea ecx, [esp + 0x10]
call fcn.180083d5
lea eax, [esp + 0x10]
mov dl, bl
push eax
lea ecx, [esp + 0x2c]
call fcn.18008af6
pop ecx
push dword [esp + 0x10]
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x180b1d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x180b1d94
movzx edi, di
or edi, 0x80070000
lea ecx, [esp + 0x10]
call fcn.180083fe
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18145fe4
mov esp, ebp
pop ebp
ret

Function at 0x180b1f28
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0xc], ebx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x180b2037
mov eax, dword [ebx]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x180b2037
mov edx, dword [esi]
lea ecx, [ebp - 8]
push 0x181ba9ec
call fcn.180082e5
mov esi, dword [ebp - 8]
pop ecx
cmp dword [esi - 0xc], ebx
jne 0x180b1f78
call fcn.18013e1e
mov ebx, eax
jmp 0x180b202b
push edi
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x180b1fa3
call fcn.18013e1e
mov ebx, eax
jmp 0x180b202a
call fcn.180040b1
push eax
lea ecx, [ebp - 4]
call fcn.1800717c
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
call fcn.1800c5fc
push dword [eax]
lea eax, [ebp - 4]
push 0xbf
push 0xbb
push 0xef
push str._c_c_c_s
push eax
call fcn.1800f2f1
mov ecx, dword [ebp - 0xc]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.18004715
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ebx
push ecx
mov dword [ebp - 0x10], ebx
push dword [eax - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180b200c
call fcn.18013e1e
mov ebx, eax
jmp 0x180b2018
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.18006dec
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004715
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
lea ecx, [esi - 0x10]
call fcn.18004715
mov eax, ebx
jmp 0x180b203a
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret