joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41db50
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15a0
call fcn.00410950
mov dword [ebp - 4], 0
jmp 0x41db6f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x32d05d76
jge 0x41dc09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x177d4a8], 0xfc
jne 0x41dba5
push str.radomuvusodimu_zafowefukojadur_futalaxafiwelukagiwidovuri_cinuwinezitavovotocusubebofazuya_vininudeduv
push 0
push str.wuramunocegu_xugewunicehako_yinofomal
push str.secixivusadurifomije_cemewusetenidebuhomakerofaw
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x177d4a8], 0x5e4
jne 0x41dbf9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
lea ecx, [ebp - 0x858]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea edx, [ebp - 0x978]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
cmp dword [ebp - 4], 0x9be51dc
jle 0x41dc04
jmp 0x41dc09
jmp 0x41db66
push 0x428fd0
mov ecx, dword [0x177d4a8]
push ecx
mov edx, dword [0x1774ef4]
push edx
call fcn.0041da10
mov dword [ebp - 0x97c], 0
jmp 0x41dc3c
mov eax, dword [ebp - 0x97c]
add eax, 1
mov dword [ebp - 0x97c], eax
cmp dword [ebp - 0x97c], 0x3e79e
jge 0x41dc7c
cmp dword [0x177d4a8], 0x10
jne 0x41dc69
lea ecx, [ebp - 0x980]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push str.gixipujeza
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
cmp dword [ebp - 0x97c], 0x1e673
jne 0x41dc7a
call fcn.0041d2d0
jmp 0x41dc2d
mov dword [ebp - 0x984], 0
jmp 0x41dc97
mov edx, dword [ebp - 0x984]
add edx, 1
mov dword [ebp - 0x984], edx
cmp dword [ebp - 0x984], 0xdd9a7
jge 0x41dcbd
cmp dword [0x177d4a8], 0xc01
jne 0x41dcbb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x41dc88
jmp dword [0x1774ef4]
Function at 0x7813480f
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
xor ebx, ebx
push ebx
push ebx
mov ebp, str.__MSVCRT_HEAP_SELECT
push ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x78134961
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x7813495f
push esi
push ebx
push ebp
call edi
test eax, eax
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
jbe 0x78134953
cmp eax, esi
ja 0x78134953
cmp byte [ebx], 0
mov ecx, ebx
je 0x78134889
mov al, byte [ecx]
cmp al, 0x61
jl 0x78134883
cmp al, 0x7a
jg 0x78134883
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x78134875
push 0x16
push ebx
push str.__GLOBAL_HEAP_SELECTED
call sym.MSVCR80.dll__ftelli64_nolock
add esp, 0xc
test eax, eax
jne 0x781348a1
mov edi, ebx
jmp 0x781348fc
push 0x105
push 8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x78134953
push 3
push esi
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp byte [esi], 0
mov ecx, esi
je 0x781348e5
mov al, byte [ecx]
cmp al, 0x61
jl 0x781348df
cmp al, 0x7a
jg 0x781348df
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x781348d1
push esi
push ebx
call sym.MSVCR80.dll_strstr
pop ecx
pop ecx
push esi
push 0
mov edi, eax
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
test edi, edi
je 0x78134953
push 0x2c
push edi
call sym.MSVCR80.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x78134953
inc eax
cmp byte [eax], 0x20
je 0x7813490e
mov cl, byte [eax]
xor esi, esi
cmp cl, 0x30
jl 0x78134953
cmp cl, 0x39
jg 0x78134934
imul esi, esi, 0xa
movsx ecx, cl
inc eax
lea esi, [esi + ecx - 0x30]
mov cl, byte [eax]
cmp cl, 0x30
jge 0x7813491d
cmp esi, 2
je 0x78134943
cmp esi, 3
je 0x78134943
cmp esi, 1
jne 0x78134953
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
mov eax, esi
jmp 0x781349c1
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
call sym.MSVCR80.dll__get_osplatform
test eax, eax
pop ecx
je 0x7813497d
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
lea eax, [esp + 0x14]
push eax
call sym.MSVCR80.dll__get_winmajor
test eax, eax
pop ecx
je 0x78134999
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
cmp dword [esp + 0x10], 2
jne 0x781349ac
cmp dword [esp + 0x14], 5
jb 0x781349ac
xor eax, eax
inc eax
jmp 0x781349c1
lea eax, [esp + 0x18]
push eax
call fcn.781347e2
cmp byte [esp + 0x1c], 6
pop ecx
sbb eax, eax
add eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x78138894
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.MSVCR80.dll__invalid_parameter
Function at 0x78139847
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x781c19c8]
jne 0x78139851
repz ret
jmp sym.MSVCR80.dll___report_gsfailure

Function at 0x7815472c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154759
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__ftelli64_nolock
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78154735
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154788
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x781547af
test al, 1
je 0x781547af
test byte [esp + 0xc], 2
je 0x781547af
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x7815477f
xor eax, eax
pop esi
ret

Function at 0x78154a51
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154a7e
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__ftelli64_nolock
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154a9c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78154a79
test byte [esp + 0xc], 0x80
je 0x78154aa8
and eax, 0xfffffffe
jmp 0x78154aab
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78154a8d
xor eax, eax
pop esi
ret

Function at 0x78155c9d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155cca
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__ftelli64_nolock
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78155ca6
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155cf9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x78155d20
test al, 1
je 0x78155d20
test byte [esp + 0xc], 2
je 0x78155d20
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x78155cf0
xor eax, eax
pop esi
ret
Function at 0x78155e6a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155e97
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__ftelli64_nolock
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155eb5
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78155e92
test byte [esp + 0xc], 0x80
je 0x78155ec1
and eax, 0xfffffffe
jmp 0x78155ec4
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78155ea6
xor eax, eax
pop esi
ret

Function at 0x78176088
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x78176097
pop dword [ebp - 0x38]
mov eax, 0xd9f232a6
add eax, 0x9e252df1
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x4486f
push 0
mov eax, 0xa8ac4c41
add eax, 0xcf6cf47f
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xf54b0a2a
sub ecx, 0xf54ab930
mov esi, eax
mov edx, 0x781cb000
add edx, dword [ebp - 0x38]
mov edi, 0x855a46b4
add edi, 0x55377ea0
add dword [ebp - 0x30], 0x6cd85696
mov ebx, dword [edx]
add dword [ebp - 0x1c], 0xdfea2358
xor ebx, edi
sub dword [ebp - 4], esi
mov dword [esi], ebx
xor dword [ebp - 0x24], 0x340917b7
add esi, 0x281deb39
add esi, 0xd7e214cb
add edx, 0xe7b02dd7
add edx, 0x184fd22d
loop 0x781760f0
add eax, 0x136bb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xbd5083c4
add ecx, 0xbac27c3c
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0xccb000
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x6d6015
lea edi, [esi - 0x5f5015]
push edi
or ebp, 0xffffffff
jmp 0xccb022
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xccb029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xccb018
mov eax, 1
add ebx, ebx
jne 0xccb03b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xccb04c
jne 0xccb06b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xccb06b
dec eax
add ebx, ebx
jne 0xccb058
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xccb030
add ebx, ebx
jne 0xccb067
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xccb0bd
xor ecx, ecx
sub eax, 3
jb 0xccb083
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xccb0f2
sar eax, 1
mov ebp, eax
jmp 0xccb08e
add ebx, ebx
jne 0xccb08e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xccb05c
inc ecx
add ebx, ebx
jne 0xccb09c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xccb05c
add ebx, ebx
jne 0xccb0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xccb09e
jne 0xccb0ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xccb09e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xccb0dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xccb0ce
jmp 0xccb01e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xccb0dc
add edi, ecx
jmp 0xccb01e
pop esi
mov edi, esi
mov ecx, 0x161d0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xccb0fa
cmp byte [edi], 0x55
jne 0xccb0fa
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 0xccb0ff
lea edi, [esi + 0x8b1000]
mov eax, dword [edi]
or eax, eax
je 0xccb16e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8cb000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8cb028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xccb12c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8cb030]
or eax, eax
je 0xccb168
mov dword [ebx], eax
add ebx, 4
jmp 0xccb149
call dword [esi + 0x8cb02c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xccb1a8
cmp al, 0xef
ja 0xccb192
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xccb174
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0xccb181
mov eax, dword [edi]
add edi, 4
jmp 0xccb181
mov ebp, dword [esi + 0x8cb034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0xccb1dc
sub esp, 0xffffff80
jmp 0x461a00
Function at 0x4058d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x4058e4
pop dword [ebp - 0x44]
mov eax, 0xf4f81d36
sub eax, 0xf4b7c452
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x4c08bebf
add dword [ebp - 0x54], 0x249868c
mov dword [ebp - 0x50], 0x4c26a32c
add dword [ebp - 0x50], 0xe60ca919
mov dword [ebp - 0x4c], 0xece86399
add dword [ebp - 0x4c], 0x5f63e095
mov dword [ebp - 0x48], 0xedd8116d
sub dword [ebp - 0x48], 0xedd8116d
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xbb46c8d2
add dword [ebp - 0x54], 0xb92ba084
mov dword [ebp - 0x50], 0xe99eb399
add dword [ebp - 0x50], 0x57cdaddc
mov dword [ebp - 0x4c], 0xc215dc37
add dword [ebp - 0x4c], 0xa1599035
mov dword [ebp - 0x48], 0xdcc86428
sub dword [ebp - 0x48], 0xdcc86428
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x4c331451
add eax, 0xb40d6caf
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x36254
push 0
call eax
mov ecx, 0xf9b55a99
sub ecx, 0xf9b515e1
mov ebx, eax
mov esi, 0xc25963e1
sub esi, 0xc21421e1
add esi, dword [ebp - 0x44]
mov edx, 0xba91a6cb
add edx, 0x4365e70e
sub dword [ebp - 0x1c], 0x3b998c2a
mov edi, dword [esi]
add dword [ebp - 0x18], edx
xor edi, edx
add dword [ebp - 8], 0x345d332
mov dword [ebx], edi
mov dword [ebp - 0x3c], 0xd6398567
add ebx, 4
add esi, 0x8b0c6509
sub esi, 0x8b0c6505
loop 0x405a01
add eax, 0x9c26393a
add eax, 0x63dacc79
xor ebx, ebx
add ebx, eax
add eax, 0xa1760899
sub eax, 0xa1760894
mov ecx, 0xd6b6edc9
sub ecx, 0xd676edc9
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x405ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa50
push esi
call fcn.004060e4
push esi
call fcn.00405b43
mov edi, eax
test edi, edi
jne 0x405bc1
xor eax, eax
jmp 0x405c19
push edi
call fcn.00406378
test byte [0x434ef8], 0x80
je 0x405bde
mov ax, word [edi]
test ax, ax
je 0x405bbd
cmp ax, 0x5c
je 0x405bbd
sub edi, esi
sar edi, 1
jmp 0x405bf8
call fcn.00406427
test eax, eax
je 0x405bf2
test byte [eax], 0x10
je 0x405bbd
push esi
call fcn.00405ae4
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405be4
call fcn.00405a98
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c94
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cb3
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405cb9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x10002ff9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x10003008
pop dword [ebp - 0x30]
mov eax, 0x8e4242dd
add eax, 0x81bded2b
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x34b9a
push 0
mov eax, 0x4ed60bc1
sub eax, 0x3ed48a7d
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x3567
xor ebx, ebx
add ebx, eax
mov edx, 0x1002b600
add edx, dword [ebp - 0x30]
mov edi, 0xdb6145f9
mov esi, dword [edx]
add dword [ebp - 0x28], ecx
sub esi, edi
sub dword [ebp - 0x1c], 0x76b2fc4e
mov dword [ebx], esi
xor dword [ebp - 0x24], edi
add ebx, 4
add edx, 0xaeb1d469
sub edx, 0xaeb1d465
loop 0x10003057
add eax, 0xc86f
mov ebx, eax
add eax, 5
mov ecx, 0x4b2a5aa7
add ecx, 0xc4d5a559
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x10009943
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x100174bf
call fcn.10016e93
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x100099c0
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x100099c0
call fcn.100080da
mov esi, eax
jmp 0x10009ac6
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x100099e3
call fcn.100080da
jmp 0x10009ab9
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x100099d9
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x10009a16
mov esi, 0x8007000e
jmp 0x10009abb
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x10009ae9
jb 0x10009a31
cmp eax, 0xffffffff
ja 0x10009ae9
cmp eax, 0x400
jbe 0x10009a46
push eax
lea ecx, [ebp - 0x418]
call fcn.10002ff9
jmp 0x10009a68
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10009a68
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x10009a0c
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100099d9
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.10002ff9
mov esi, eax
test edi, edi
je 0x10009ac6
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10009adf
lea ecx, [ebp - 0x418]
call fcn.100080a2
mov eax, esi
call fcn.10016de8
ret 0x10
push 0x80070216
call fcn.10002ff9
int3
Function at 0x1001139d
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x10011430
call fcn.1000ed82
xor edi, edi
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x100265f7
test eax, eax
je 0x10031507
cmp eax, 2
jne 0x100116c7
push dword [0x100de7cc]
call fcn.100d331f
pop ecx
test eax, eax
jne 0x1001141b
push 0x3bc
push 1
call fcn.100d331f
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x10031555
push esi
push dword [0x100de7cc]
call fcn.100d331f
pop ecx
pop ecx
test eax, eax
je 0x10050453
push edi
push esi
call sym.MSVCR120.dll__initptd
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
call fcn.10011398
xor eax, eax
inc eax
call fcn.1000edc7
ret
cmp eax, 3
jne 0x1001141b
push edi
call fcn.100d331f
pop ecx
jmp 0x1001141b
call fcn.100261c8
test eax, eax
je 0x10031555
call fcn.10026580
test eax, eax
je 0x100503fe
call fcn.10026f4d
test eax, eax
js 0x10050408
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [sym.MSVCR120.dll__wcmdln], eax
call fcn.100d331f
jmp 0x100268e4
mov dword [0x100dfbbc], eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [sym.MSVCR120.dll__acmdln], eax
call fcn.10026c85
call fcn.10026928
test eax, eax
js 0x1003155c
push edi
call fcn.100d331f
pop ecx
test eax, eax
jne 0x1003155c
test edi, edi
jne 0x1005040f
inc dword [0x100dfbb8]
jmp 0x1001141b
mov eax, dword [0x100dfbb8]
test eax, eax
jle 0x10031555
dec eax
mov dword [0x100dfbb8], eax
mov dword [ebp - 4], edi
cmp dword [0x100e0418], 0
je 0x10050416
call fcn.10031219
call fcn.10031260
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10050420
mov dword [ebp - 4], 0xfffffffe
call fcn.1003154c
jmp 0x1001141b
xor eax, eax
jmp 0x10011423
xor edi, edi
inc edi
jmp 0x10026915
call fcn.1009f373
jmp 0x10031555
call fcn.100775db
jmp 0x100503fe
call fcn.1009f9c4
jmp 0x10050408
call sym.MSVCR120.dll__cexit
jmp 0x10031526
call fcn.1009f9c4
call fcn.100775db
call fcn.1009f373
jmp 0x1003153b
push esi
call fcn.100d331f
pop ecx
jmp 0x10031555
Function at 0x1001f855
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x21c], 0
push ebx
or ebx, 0xffffffff
push esi
lea esi, [ebp - 0x218]
test eax, eax
je 0x10051169
push edi
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1001f921
lea eax, [ebp - 0x218]
push eax
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp edi, 0x104
jg 0x10051186
test edi, edi
je 0x1001f921
movzx eax, word [esi]
cmp eax, 0x5c
je 0x1001f919
cmp eax, 0x2f
je 0x1001f919
push 0x3d
pop eax
mov word [ebp - 0xc], ax
movzx eax, word [esi]
push eax
call fcn.100d331f
pop ecx
push 0x3a
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x1001f921
xor ebx, ebx
cmp dword [ebp - 0x21c], 0
pop edi
jne 0x100511cd
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.10010cbc
mov esp, ebp
pop ebp
ret
cmp ax, word [esi + 2]
je 0x1001f8f7
jmp 0x1001f8c6
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x100511c1
call sym.MSVCR120.dll___doserrno
and dword [eax], 0
call sym.MSVCR120.dll__errno
mov dword [eax], 0x16
call sym.MSVCR120.dll__invalid_parameter_noinfo
jmp 0x1001f907
lea eax, [edi + 1]
push 2
push eax
call fcn.100d331f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001f921
mov dword [ebp - 0x21c], 1
test edi, edi
je 0x1001f921
push esi
lea eax, [edi + 1]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
jmp 0x1001f8b5
push eax
call fcn.100d331f
pop ecx
jmp 0x1001f8f9
push esi
call fcn.100d331f
pop ecx
jmp 0x1001f907

Function at 0x1001f985
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x1001f9d8
cmp eax, 0x1a
jg 0x1001f9d8
add eax, 0x40
mov word [ebp - 0xc], ax
push 0x3a
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x100510c2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010cbc
mov esp, ebp
pop ebp
ret
call sym.MSVCR120.dll___doserrno
jmp 0x100510d1
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.100d331f
pop ecx
jmp 0x100510e7
mov dword [eax], 0xf
call sym.MSVCR120.dll__errno
mov dword [eax], 0xd
call sym.MSVCR120.dll__invalid_parameter_noinfo
or eax, 0xffffffff
jmp 0x1001f9ca

Function at 0x1002241a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, 0x811c9dc5
xor esi, esi
movzx eax, byte [esi + ecx]
xor eax, edi
imul edi, eax, 0x1000193
inc esi
cmp esi, 4
jb 0x10022426
mov eax, edi
xor edx, edx
div ebx
pop edi
pop esi
mov eax, edx
pop ebx
ret