joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458ec2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x483600]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x458f0d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0045929a
test al, al
jne 0x458f07
sub edx, 2
cmp edx, edi
jne 0x458eed
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x458f2f
lea eax, [edi + 2]
cmp edx, eax
je 0x458f2f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00458b89
add esp, 0x10
jmp 0x459029
push esi
lea ecx, [ebp - 0x255]
call fcn.0045929a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x458f72
push dword [ebp - 0x25c]
jmp 0x458f1f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x458faf
cmp word [ebp - 0x226], 0
je 0x458fd0
cmp word [ebp - 0x226], ax
jne 0x458faf
cmp word [ebp - 0x224], 0
je 0x458fd0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00458b89
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45901c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x458f89
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x459004
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x459029
push 0x4585d9
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004665d0
add esp, 0x10
jmp 0x458ff9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fbe4
leave
ret
Function at 0x45a866
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x45a903
push ebx
push esi
call fcn.0045a822
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0045a75f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45a8b0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45a902
push edi
push eax
call fcn.00450c9d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45a8d0
call fcn.00450c63
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45a901
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0045a75f
add esp, 0x20
test eax, eax
jne 0x45a8ef
push edi
call fcn.00450c63
jmp 0x45a8f7
push ebx
call fcn.00450c63
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x45a906
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45a917
pop esi
ret
push ebx
push edi
push esi
call fcn.0045a822
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00450c9d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45a93f
push ebx
push esi
push edi
call fcn.00420e00
add esp, 0xc
push 0
call fcn.00450c63
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x45b224
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045abb4

Function at 0x45e0bf
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004535b8
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45e12e
cmp esi, dword [ebp - 4]
je 0x45e129
cmp dword [ebp + 0xc], 0
je 0x45e129
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45e106
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0045dc11
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x45e130
xor eax, eax
inc eax
jmp 0x45e130
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45e195
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x483600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004535b8
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004535b8
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x45e20c
cmp word [ecx], dx
je 0x45e20c
mov eax, dword [0x47b2dc]
push edi
dec eax
push eax
push 0x47b1c8
call fcn.0045e134
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x45e27f
cmp word [eax], dx
je 0x45e27f
mov eax, dword [edi]
test eax, eax
je 0x45e230
cmp word [eax], dx
je 0x45e230
lea eax, [ebp - 0x10]
push eax
call fcn.0045db17
jmp 0x45e239
lea eax, [ebp - 0x10]
push eax
call fcn.0045dbb2
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x45e2a9
mov eax, dword [0x47b1c4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x47aeb8
call fcn.0045e134
add esp, 0xc
test al, al
je 0x45e2a9
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x45e274
cmp word [eax], di
je 0x45e274
lea eax, [ebp - 0x10]
push eax
call fcn.0045db17
pop ecx
jmp 0x45e2ab
lea eax, [ebp - 0x10]
push eax
call fcn.0045dbb2
jmp 0x45e271
mov eax, dword [edi]
test eax, eax
je 0x45e296
cmp word [eax], dx
je 0x45e296
lea eax, [ebp - 0x10]
push eax
call fcn.0045daae
pop ecx
jmp 0x45e2a9
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x45e374
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0045dfb9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x45e374
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x45e374
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x45e374
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45e301
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0045f082
test ebx, ebx
je 0x45e36f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0045f082
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45e374
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45e374
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00467636
add esp, 0x10
xor eax, eax
inc eax
jmp 0x45e376
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fbe4
leave
ret
Function at 0x45ecf4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47c504
push 0x47c4fc
push str.FlsAlloc
push 0x1f
call fcn.0045e9c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45ed28
push dword [ebp + 8]
mov ecx, esi
call dword [0x4702a4]
call esi
jmp 0x45ed2e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x45ed72
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47c514
push 0x47c50c
push str.FlsGetValue
push 0x21
call fcn.0045e9c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45eda9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4702a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x45edb1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47c51c
push 0x47c514
push str.FlsSetValue
push 0x22
call fcn.0045e9c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45edeb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4702a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4694b9
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004692dd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x469628
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x469628
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4695dd
jg 0x469515
test eax, eax
je 0x4695d3
push 1
push 0x1000
call fcn.00458564
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x469538
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4695ca
push 0x8000
push ebx
call fcn.0044d847
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x469561
jg 0x46955c
cmp ecx, 0x1000
jb 0x469561
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00457733
add esp, 0x10
cmp eax, 0xffffffff
je 0x4695a6
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x46955c
jl 0x46958d
test ecx, ecx
jne 0x46954e
push dword [ebp - 0xc]
push ebx
call fcn.0044d847
push esi
call fcn.00450c63
add esp, 0xc
xor ebx, ebx
jmp 0x469636
cmp byte [edi + 0x24], 0
je 0x4695bd
cmp dword [edi + 0x20], 5
jne 0x4695bd
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4695c8
mov ebx, dword [edi + 0x18]
jmp 0x4695ca
xor ebx, ebx
push esi
call fcn.00450c63
pop ecx
jmp 0x469636
test ecx, ecx
jg 0x46959f
jl 0x4695dd
test eax, eax
jae 0x46959f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00457e11
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4695fd
cmp byte [edi + 0x1c], 0
je 0x46959f
jmp 0x46962e
push ebx
call fcn.0045b656
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x46959f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x469636
cmp byte [edi + 0x1c], 0
je 0x469633
mov ebx, dword [edi + 0x18]
jmp 0x469636
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00457e11
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46c330
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46c35d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46c35d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408635
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x2c
mov eax, 0x439d62
call fcn.00421730
lea esi, [ecx + 0x124]
mov edi, 0x104
push edi
mov ecx, esi
call fcn.004017de
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x408754
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040186a
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.004013b4
add eax, 0x10
pop ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov ecx, esi
push edi
mov dword [ebp - 4], ebx
call fcn.004017de
push eax
push ebx
push 0x4400ac
lea ecx, [ebp - 0x10]
call fcn.00408dae
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0040184e
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040186a
lea ecx, [ebp - 0x38]
call fcn.00414276
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.0040728d
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
push 0x1001
push dword [esi]
lea ecx, [ebp - 0x38]
call fcn.004146fe
test eax, eax
jne 0x4086f9
mov ecx, esi
call fcn.00401451
jmp 0x408736
push 0x4400b4
push 0x87
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x38]
call fcn.00414a65
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], vtable.CFileException.0
lea ecx, [ecx - 0x10]
call fcn.0040184e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0041429d
call fcn.004216fe
ret

Function at 0x408771
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x439d95
call fcn.00421730
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004013b4
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
mov ebx, 0x104
push ebx
mov ecx, edi
call fcn.004017de
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0040184e
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040186a
lea ecx, [ebp - 0x2c]
call fcn.00415479
mov eax, dword [edi]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], 0
je 0x40881e
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00415716
test eax, eax
je 0x40881e
lea ecx, [ebp - 0x2c]
call fcn.004158be
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004159d7
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040132a
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.0040184e
lea ecx, [ebp - 0x2c]
call fcn.004156ca
jmp 0x408820
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041562a
mov eax, ebx
call fcn.004216fe
ret 4
Function at 0x42b538
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x43c510
call fcn.0042be5e
push 1
call fcn.0042b6a2
pop ecx
test al, al
jne 0x42b3e1
push 7
call fcn.0042c0e7
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0042b66d
mov byte [ebp - 0x24], al
mov eax, dword [0x447fe8]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x42b3da
test eax, eax
jne 0x42b44b
mov dword [0x447fe8], ecx
push 0x42f2f4
push 0x42f2dc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x42b42e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x42b532
push 0x42f2d8
push 0x42f2b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x447fe8], 2
jmp 0x42b450
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0042b7ff
pop ecx
call fcn.0042c0db
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x42b480
push esi
call fcn.0042b772
pop ecx
test al, al
je 0x42b480
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0042c316
call esi
call fcn.0042c0e1
mov esi, eax
cmp dword [esi], edi
je 0x42b49e
push esi
call fcn.0042b772
pop ecx
test al, al
je 0x42b49e
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.0042c1fc
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.0042c22f
test al, al
jne 0x42b4d7
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x42b4e0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0042b81c
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x42b532
call fcn.0042bea4
ret
call fcn.0042b247
jmp 0x42b3c2

Function at 0x40d60a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x40d64a
mov cl, byte [ebp + 0x14]
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
mov byte [edx + eax], cl
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x40d61c
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x40d650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x40d68d
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
xor cl, byte [ebp + 0x14]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x40d662
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40216b
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
call main
jmp 0x402175
push 0x14
push 0x411788
call fcn.00405300
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x4021a3
xor ebx, ebx
jmp 0x4021d6
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40219f
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40219f
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4021d6
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004048ef
test eax, eax
jne 0x4021ea
push 0x1c
call main
pop ecx
call fcn.00403b58
test eax, eax
jne 0x4021fb
push 0x10
call main
pop ecx
call fcn.004051cc
and dword [ebp - 4], 0
call fcn.00404904
test eax, eax
jns 0x402215
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4162e8], eax
call main
mov dword [0x414430], eax
call main
test eax, eax
jns 0x40223b
push 8
call main
pop ecx
call fcn.00404de7
test eax, eax
jns 0x40224c
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x40225f
push eax
call main
pop ecx
call fcn.00405299
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x402281
push esi
call main
call fcn.00404663
jmp 0x4022b6
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00405345
ret

Function at 0x40369f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4036ae
pop dword [ebp - 0x18]
mov eax, 0x1992f7dd
add eax, 0xe6ad3ed1
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x7c4167dc
add dword [ebp - 0x28], 0xd210dd6f
mov dword [ebp - 0x24], 0x4ae3c104
sub dword [ebp - 0x24], 0x18b074bf
mov dword [ebp - 0x20], 0xaf1ddb36
sub dword [ebp - 0x20], 0x62d19708
mov dword [ebp - 0x1c], 0xc4653088
add dword [ebp - 0x1c], 0x3b9acf78
lea eax, [ebp - 0x28]
push eax
mov eax, 0xc96dfe10
add eax, 0x36d2d224
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x4e7e86a6
sub dword [ebp - 0x28], 0xda0c1d50
mov dword [ebp - 0x24], 0xf3290963
add dword [ebp - 0x24], 0x4e435812
mov dword [ebp - 0x20], 0x8d44cc93
add dword [ebp - 0x20], 0xd62a9fd9
mov dword [ebp - 0x1c], 0x1ba67da2
sub dword [ebp - 0x1c], 0x1ba67da2
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x35527
push 0
call eax
mov ecx, 0xc1e6ec99
add ecx, 0x3e194d67
xor edx, edx
add edx, eax
mov edi, 0xe01b088c
sub edi, 0xdfd8f88c
add edi, dword [ebp - 0x18]
mov esi, 0x5817a85
sub esi, 0x2ff46ae6
sub dword [ebp - 0x14], 0xc50e15c7
mov ebx, dword [edi]
add dword [ebp - 8], 0xb71e23b3
add ebx, esi
xor dword [ebp - 4], 0xcb7b3767
mov dword [edx], ebx
mov dword [ebp - 4], 0xb561dfb0
add edx, 4
add edi, 0x19968ac
add edi, 0xfe669758
loop 0x4037cd
add eax, 0xf6b8d422
add eax, 0x94806b1
xor ebx, ebx
add ebx, eax
add eax, 0xfa91f469
sub eax, 0xfa91f464
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x100025d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002628
cmp byte [esi + ebx - 1], 0xa
je 0x100025fc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10003118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x39e48fa5
Capabilities:
Reference sql statements

Disassembly:
push 0x98
mov eax, 0x39ec745f
call fcn.39eaecb8
mov eax, dword [ebp + 8]
mov esi, ecx
push esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x68], eax
mov edi, edx
call fcn.39e49280
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 0x44]
mov dword [esi], 0x39e17adc
mov dword [esi + 0x40], 0x39e17b1c
mov dword [ebp - 0x70], eax
mov dword [eax], ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x68]
push 3
call fcn.39eb4742
mov eax, dword [ebp - 0x6c]
cmp eax, 4
seta cl
mov dword [ebp - 0x70], edi
cmp cl, bl
je 0x39e49028
push 0x3e
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
mov ebx, 0x39e17918
mov edi, 0x39e179a8
xor esi, esi
mov dword [ebp - 0x68], 0x80004005
call fcn.39e32d08
mov dword [esi + 0x48], eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x68]
push 4
call fcn.39eb4742
mov eax, dword [ebp - 0x6c]
push 0x39e17800
lea ecx, [ebp - 0x2c]
mov dword [esi + 0x4c], eax
call fcn.39eb4742
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.39e3c0a7
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x68]
push 2
lea edx, [ebp - 0x48]
call fcn.39eb4742
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.39eb4742
push 0x39e16470
lea ecx, [ebp - 0x2c]
call fcn.39eb4742
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x39e49091
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xa4]
call fcn.39eb4742
mov byte [ebp - 4], 5
lea eax, [ebp - 0xa4]
push eax
push edi
lea eax, [ebp - 0x84]
push eax
call fcn.39e4b0ce
mov byte [ebp - 4], 7
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0xa4]
call fcn.39eb4742
lea eax, [ebp - 0x78]
push eax
call fcn.39e4b011
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x64]
call fcn.39e3c0a7
mov byte [ebp - 4], 9
jmp 0x39e49109
push edi
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x78]
call fcn.39eb4742
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.39eb4742
mov eax, dword [esi + 0x44]
push dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x84]
call fcn.39eb4742
test al, al
jne 0x39e490e4
mov byte [ebp - 4], 8
push ebx
push edi
lea ecx, [ebp - 0x64]
call fcn.39eb4742
mov byte [ebp - 4], 7
lea eax, [ebp - 0x78]
push eax
call fcn.39e4141f
mov byte [ebp - 4], 4
lea eax, [ebp - 0x84]
push eax
call fcn.39e4141f
mov byte [ebp - 4], 3
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.39eb4742
mov byte [ebp - 4], 2
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.39eb4742
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.39eaed4a
ret 4