joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421004]
jne 0x40100a
repz ret
jmp fcn.0040151b

Function at 0x4067a7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x421004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403d19
and dword [ebp - 0x14], 0
cmp dword [0x423e80], 0
mov dword [ebp - 0x18], eax
jne 0x40685a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406902
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406902
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x423e80], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x423e84], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x423e88], eax
call edi
push eax
call esi
mov dword [0x423e90], eax
test eax, eax
je 0x40685a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x423e8c], eax
mov eax, dword [0x423e8c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4068b3
cmp dword [0x423e90], ecx
je 0x4068b3
push eax
call esi
push dword [0x423e90]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4068b3
test ebx, ebx
je 0x4068b3
call edi
test eax, eax
je 0x4068aa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4068aa
test byte [ebp - 8], 1
jne 0x4068b3
or dword [ebp + 0x10], 0x200000
jmp 0x4068e6
mov eax, dword [0x423e84]
cmp eax, dword [ebp - 0x18]
je 0x4068e6
push eax
call esi
test eax, eax
je 0x4068e6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4068e6
mov eax, dword [0x423e88]
cmp eax, dword [ebp - 0x18]
je 0x4068e6
push eax
call esi
test eax, eax
je 0x4068e6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x423e80]
call esi
test eax, eax
je 0x406902
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406904
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x418d70
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x408
mov eax, dword [0x421004]
xor eax, esp
mov dword [esp + 0x404], eax
cmp dword [0x22c6f8c], 0xfc7
jne 0x418d9f
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4243a4]
imul eax, eax, 0x343fd
cmp dword [0x22c6f8c], 0x139e
mov dword [0x4243a4], eax
jne 0x418dce
mov ecx, dword [esp]
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [0x4243a4]
add eax, 0x269ec3
push esi
mov dword [0x4243a4], eax
movzx esi, word [0x4243a6]
and esi, 0x7fff
cmp dword [0x22c6f8c], 0x8e7
jne 0x418e03
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x408
ret

Function at 0x418ed0
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x421ec0]
sub esp, 0x14
push ebx
mov ebx, dword [0x22c6930]
push edi
mov edi, dword [0x22c6f8c]
call fcn.00418e20
cmp dword [0x22c6f8c], 0x2f
jne 0x418f2a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00418e50
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x4191e0
Capabilities:
Get disk information
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1818
call fcn.004095e0
mov eax, dword [0x421004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x419209
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xbbe2aa2
jge 0x4192b1
cmp dword [0x22c6f8c], 0xa5f
jne 0x419255
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x1018]
push edx
push 0x41fa7c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [ebp - 4], 0x84526b
jne 0x41927a
mov eax, dword [0x422ce0]
mov dword [0x22c6f8c], eax
mov ecx, dword [0x22c6f8c]
add ecx, 0xa231
mov dword [0x22c6f8c], ecx
cmp dword [0x22c6f8c], 0x141
jne 0x4192ac
push str.jisaxivemuvanacucoxoxobo_necogoduhutevepipojomaji_kadesezimini_joretevigusopibiyigibiga_wemakihumovuyo
lea edx, [ebp - 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x4243a8], 0xec58acac
mov dword [0x4243ac], 0xffffffff
jmp 0x419200
call fcn.00418f40
jmp dword [0x22c6930]
Function at 0x4023b6
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push htons
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x4023d4
mov eax, 0x47376e
push eax
push 1
mov ebx, 0x194
call fcn.0042b570
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x402401
add eax, 8
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_send]
nop
nop
cmp dword [ebp - 8], esp
je 0x40242b
push 0x44
push 0x401b956
push 6
call fcn.0042a2b6
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
mov eax, 0
setg al
jmp 0x40243f
mov esp, ebp
pop ebp
ret 8
Function at 0x405de8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x2000
push 1
mov ebx, 0x1bc
call fcn.0042b720
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405e34
push ebx
call fcn.0042a2b0
add esp, 4
pop eax
mov dword [ebp - 4], eax
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x405e4b
mov eax, 0x47376e
push eax
push 1
mov ebx, 0x194
call fcn.0042b570
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x405e76
add eax, 8
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_recv]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405ea0
push 0x6f
push 0x401b957
push 6
call fcn.0042a2b6
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x405ee8
push 0x80000301
push 0
push dword [ebp - 8]
push htons
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x405eca
mov eax, 0x47376e
push eax
push 2
mov ebx, 0x1a0
call fcn.0042bcf0
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
jmp 0x405ef2
mov eax, 0x47376e
jmp 0x405ef2
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x405f03
push ebx
call fcn.0042a2b0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x42b950
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x42b9b9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0042af30
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x42c320
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x42c3b2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x42c3a4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x42c39c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x42c365
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x42c3c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x42c401.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x42c401.2
jmp dword [eax*4 + 0x42c48c]
mov word [esp + 0x48], di
jmp 0x42c43a
mov word [esp + 0x48], 2
jmp 0x42c43a
mov word [esp + 0x48], 3
jmp 0x42c43a
mov word [esp + 0x48], 4
jmp 0x42c43a
mov word [esp + 0x48], 7
jmp 0x42c43a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x42c484
cmp dword [esp + 0x70], edi
je 0x42c470
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x42c4b0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
ja 0x42c531
je 0x42c522
cmp eax, 0x80000101
ja 0x42c51b
je 0x42c522
cmp eax, 0x80000004
je 0x42c4fc
cmp eax, 0x80000005
jne 0x42c546
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 3
test eax, eax
je 0x42c593
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x42c593
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 1
push eax
call dword [0x496dd4]
mov ebp, dword [esp + 0x44]
mov ebx, eax
add esp, 4
inc ebx
jmp 0x42c593
cmp eax, 0x80000201
jne 0x42c546
mov ebx, 4
lea ebp, [esp + 0x40]
mov dword [esp + 8], ebx
jmp 0x42c593
cmp eax, 0x80000401
je 0x42c57e
cmp eax, 0x80000501
je 0x42c566
cmp eax, 0x80000601
je 0x42c54e
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.00460bf4
mov dword [esp + 0xc], eax
jmp 0x42c58f
fld dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.00460bf4
mov dword [esp + 0xc], eax
jmp 0x42c58f
mov ecx, dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea ebp, [esp + 0xc]
mov edx, dword [esp + 0x28]
push esi
push edx
call fcn.0042d9a0
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0
call dword [0x496dd4]
add esp, 8
test esi, esi
je 0x42c66c
test eax, eax
je 0x42c66c
inc eax
push edi
push eax
call fcn.00461137
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00461110
mov esi, eax
add esp, 0xc
test esi, esi
je 0x42c60e
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42c662
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x42c657
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00461103
add esp, 4
pop edi
mov eax, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x42d300
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x42d321
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x42d37b
inc edi
cmp edi, esi
jl 0x42d315
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x42d3b0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x42d36a
cmp byte [eax], bl
je 0x42d385
cmp byte [eax + 1], bl
je 0x42d38e
cmp byte [eax + 2], bl
je 0x42d398
cmp byte [eax + 3], bl
je 0x42d3a4
add eax, 4
cmp eax, edi
jb 0x42d341
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x42f580
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
push esi
mov dword [esp + 0x14], 0
call fcn.0042ede0
add esp, 4
test eax, eax
je 0x42f6a3
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.0042ef10
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x42f6a3
mov ecx, dword [esi]
push ecx
push esi
call fcn.0042ee10
add esp, 8
test eax, eax
je 0x42f6a3
push esi
call fcn.0042f0e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42f6a3
lea edi, [esi + 0xc]
test edi, edi
je 0x42f6a3
mov esi, dword [esi + 0x41c]
test esi, esi
je 0x42f6a3
lea edx, [esp + 0x14]
push edx
call fcn.0042fba0
add esp, 4
lea eax, [esp + 0x14]
push ebx
push edi
push ebp
push str.SELECT__s_FROM__s_WHERE__ROWID____s
push eax
call fcn.0042ff70
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push ecx
push 0xffffffffffffffff
push edx
call fcn.0042fee0
add esp, 4
push eax
push esi
call fcn.00431ac0
mov esi, eax
lea eax, [esp + 0x28]
push eax
call fcn.0042fdd0
add esp, 0x18
test esi, esi
jne 0x42f6a3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42f6a3
push eax
call fcn.00430560
add esp, 4
cmp eax, 0x64
jne 0x42f692
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
push ecx
push edx
push esi
push eax
call fcn.0042e4a0
mov ecx, dword [esp + 0x20]
mov esi, eax
push ecx
call fcn.004313b0
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42f6a3
push eax
call fcn.004313b0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x439e60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x439f90
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x4ad68c]
sub esp, 0x138
test eax, eax
je 0x439fbc
push 0x118
push eax
lea eax, [esp + 8]
push eax
call fcn.00461ca0
add esp, 0xc
mov byte [esp + 0x118], 0
jmp 0x439fcc
lea ecx, [esp]
push ecx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebp
push esi
push edi
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x439ff1
lea eax, [esp + 0xc]
dec eax
cmp byte [eax + ecx], 0x5c
jne 0x439ff1
dec ecx
test ecx, ecx
jg 0x439fe6
mov esi, dword [esp + 0x148]
mov byte [esp + ecx + 0xc], 0
lea edx, [esp + 0xc]
push edx
push str._s_sqlite_
push esi
call fcn.00460f5d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi + esi]
push eax
push 0xf
call fcn.004498e0
add esp, 0x14
mov ecx, 0xf
xor eax, eax
xor edx, edx
mov al, byte [edi + esi]
mov ebp, 0x3e
div ebp
inc edi
dec ecx
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], dl
jne 0x43a02e
push esi
mov byte [edi + esi], 0
call fcn.00439e60
add esp, 4
test eax, eax
jne 0x439ffd
pop edi
pop esi
pop ebp
add esp, 0x138
ret

Function at 0x43a0d0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
jle 0x43a11b
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx]
lea eax, [esp + 0x1c]
push 0
push eax
push esi
push edi
push ecx
call ebp
test eax, eax
je 0x43a11b
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x43a10c
sub esi, ecx
add edi, ecx
test esi, esi
jg 0x43a0ea
test eax, eax
je 0x43a11b
cmp esi, ecx
jg 0x43a11b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xd
pop ebx
ret

Function at 0x43a1d0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push esi
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [esp + 8]
push 1
push 0
push 0
push eax
call fcn.00462090
mov ecx, eax
xor eax, eax
add ecx, esi
pop esi
adc edx, eax
mov eax, dword [esp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x43a21d
xor eax, eax
pop esi
ret
call fcn.0043a260
test eax, eax
jne 0x43a23c
push edi
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 0x104
jbe 0x43a23c
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43a24c
xor eax, eax
pop esi
ret
and al, 0x10
xor ecx, ecx
cmp al, 0x10
pop esi
sete cl
mov eax, ecx
ret
Function at 0x43f950
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
mov cl, byte [esi + 0x41]
mov eax, dword [esi + 0x18]
test cl, cl
jne 0x43f96d
mov eax, dword [esp + 0xc]
pop esi
mov dword [eax], 1
xor eax, eax
ret
mov ecx, dword [esi + 0x1c]
xor edx, edx
inc ecx
mov word [esi + 0x3a], 0
mov dword [esi + 0x1c], ecx
mov dx, word [eax + 0x14]
cmp ecx, edx
jl 0x43fa2a
mov cl, byte [eax + 4]
test cl, cl
jne 0x43f9c8
mov edx, dword [eax + 0x44]
xor ecx, ecx
mov cl, byte [eax + 8]
lea eax, [ecx + edx + 8]
push eax
call fcn.0043e3f0
push eax
push esi
call fcn.0043f590
add esp, 0xc
test eax, eax
jne 0x43fa48
push esi
call fcn.0043f5f0
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ecx], 0
pop esi
ret
push eax
call fcn.0043fa50
add esp, 4
test eax, eax
jne 0x43f9fb
push esi
call fcn.0043fa90
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
xor edx, edx
add esp, 4
mov dx, word [eax + 0x14]
cmp ecx, edx
jl 0x43fa0d
push eax
call fcn.0043fa50
add esp, 4
test eax, eax
je 0x43f9d5
mov eax, dword [esp + 0xc]
mov dword [eax], 1
mov byte [esi + 0x41], 0
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0xc]
mov dword [ecx], 0
mov dl, byte [eax + 6]
test dl, dl
je 0x43fa3b
push ecx
push esi
call fcn.0043f950
add esp, 8
pop esi
ret
mov ecx, dword [esp + 0xc]
mov dword [ecx], 0
mov cl, byte [eax + 4]
test cl, cl
je 0x43fa3f
xor eax, eax
pop esi
ret
push esi
call fcn.0043f5f0
add esp, 4
pop esi
ret
Function at 0x446ba0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
cmp edi, 2
jl 0x446c23
mov ebx, dword [esp + 0x10]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov al, byte [ebx + edi - 1]
mov dl, byte [ebx]
mov cl, byte [eax + 0x46d3dc]
mov eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0x46d3dc]
lea eax, [eax + eax*2]
shl ecx, 2
xor eax, ecx
mov ecx, 0x7f
xor eax, edi
cdq
idiv ecx
xor eax, eax
mov al, byte [edx + str._QhZ]
mov esi, eax
dec esi
js 0x446c23
xor ecx, ecx
mov cl, byte [esi + 0x46db3c]
cmp ecx, edi
jne 0x446c16
xor edx, edx
push edi
mov dx, word [esi*2 + 0x46dbb0]
push ebx
add edx, 0x46d838
push edx
call fcn.004324c0
add esp, 0xc
test eax, eax
je 0x446c2c
xor eax, eax
mov al, byte [esi + 0x46dac8]
mov esi, eax
dec esi
jns 0x446beb
pop edi
pop esi
mov eax, 0x1b
pop ebx
ret
xor eax, eax
pop edi
mov al, byte [esi + 0x46dc94]
pop esi
pop ebx
ret
Function at 0x45d8f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x45d8fc
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x45d98f
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x45d959
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.0045d9a0
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x45d92e
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret

Function at 0x45d9c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x45dabd
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x45da12
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x45da3e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.0045d9a0
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x45da7f
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x45da01
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret