joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437abe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
push edi
test dword [esi + 0x2c], 0x1000000
lea eax, [esi + 0x44]
jne 0x4946d1
lea ecx, [esi + 0x64]
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test dword [esi + 0x2c], 0x80000
jne 0x494703
push ecx
xor edi, edi
push edi
push edi
push 0x545828
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x437b20
call ebx
cmp eax, 0x3e5
jne 0x494745
test dword [esi + 0x2c], 0x80000
jne 0x494714
mov ecx, dword [esi + 0xa0]
test ecx, ecx
jne 0x49476c
or dword [esi + 0x2c], 0x10000
inc dword [esi + 0x3c]
pop edi
pop esi
pop ebx
leave
ret
push 0x10
push eax
xor edi, edi
push 0x526a38
mov dword [esi + 0x138], edi
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x437b2d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x4946ff
call edi
jmp 0x494759
call edi
jmp 0x494751
mov eax, dword [esi + 0x80]
or eax, 1
mov dword [esi + 0x74], eax
jmp 0x437af3
lea eax, [esi + 0x84]
cmp dword [eax], 0xffffffff
jne 0x437b2d
push 4
push 0xffffffffffffffff
lea ecx, [esi + 0x44]
push ecx
push 0x52656d
push dword [esi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x437b2d
call ebx
test eax, eax
jg 0x49474f
call ebx
jmp 0x494759
call ebx
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
lea edx, [esi + 0x44]
mov dword [esi + 0x64], eax
call fcn.00476e0c
jmp 0x437b3b
push edi
push edi
push edi
push 0x32
mov edx, 0x526335
call fcn.0052b914
add esp, 0x10
jmp 0x437b3b

Function at 0x437b4a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
and dword [ebp - 8], 0
push esi
push eax
push dword [ebp + 8]
mov esi, edx
push esi
call dword [esi + 0x34]
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x494799
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x494799
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jbe 0x437b87
mov ecx, eax
push 0
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 8]
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x494783
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
call dword [esi + 0x38]
mov eax, dword [ebp - 4]
add esp, 0xc
pop esi
leave
ret
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, esi
call fcn.004757a5
jmp 0x4947a6
lea eax, [ebp - 0xc]
push eax
push 0xfffff024
push esi
call dword [esi + 0x38]
add esp, 0xc
xor eax, eax
jmp 0x437bb6
Function at 0x4381b7
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xec]
push edi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
pop ecx
test eax, eax
jne 0x49488d
call dword [sym.imp.MSVCP140.dll__Thrd_id]
lea ecx, [edi + 0x30]
xchg dword [ecx], eax
mov ebx, dword [edi + 0x34]
mov edx, 0x811c9dc5
inc ebx
xor ecx, ecx
mov dword [edi + 0x34], ebx
movzx eax, byte [ebp + ecx + 0xc]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x4381f0
push edx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0x124]
call fcn.0043826a
lea ecx, [esi + 0x124]
mov eax, dword [eax + 4]
test eax, eax
je 0x438265
cmp eax, dword [esi + 0x128]
je 0x494894
mov esi, dword [eax + 0x14]
push eax
call fcn.004382ab
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0x34]
mov dword [ebx], esi
cmp ecx, 1
jne 0x438250
xor ecx, ecx
lea eax, [edi + 0x30]
xchg dword [eax], ecx
mov ecx, dword [edi + 0x34]
dec ecx
push edi
mov dword [edi + 0x34], ecx
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, ebx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ecx + 4]
jmp 0x438224
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov esi, dword [ebp + 8]
mov dword [esi], 0x8000ffff
cmp ebx, 1
jne 0x4948ac
xor ecx, ecx
lea eax, [edi + 0x30]
xchg dword [eax], ecx
mov ebx, dword [edi + 0x34]
lea ecx, [ebx - 1]
push edi
mov dword [edi + 0x34], ecx
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, esi
jmp 0x43825d

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
mov esi, 0x811c9dc5
mov ecx, dword [ebp + 8]
xor edx, edx
movzx eax, byte [ecx + edx + 8]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
cmp edx, 4
jb 0x4382bc
mov edx, dword [edi + 0x18]
and edx, esi
mov esi, dword [edi + 0xc]
cmp dword [esi + edx*8 + 4], ecx
jne 0x4948da
cmp dword [esi + edx*8], ecx
jne 0x438310
mov eax, dword [edi + 4]
mov dword [esi + edx*8], eax
mov dword [esi + edx*8 + 4], eax
mov esi, dword [ecx]
dec dword [edi + 8]
mov edx, dword [ecx + 4]
push 0x18
mov dword [edx], esi
mov edx, dword [ecx + 4]
mov dword [esi + 4], edx
pop edx
call fcn.004311f4
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
mov eax, dword [ecx + 4]
jmp 0x4382ec
cmp dword [esi + edx*8], ecx
jne 0x4382f0
mov eax, dword [ecx]
mov dword [esi + edx*8], eax
jmp 0x4382f0
Function at 0x438315
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push 0x10
mov eax, 0x485db6
call fcn.0048315f
mov esi, ecx
mov ebx, dword [ebp + 0xc]
mov edi, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [ecx + ebx]
xor eax, edi
imul edi, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x43832d
push edi
push ebx
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0043826a
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4948ed
cmp dword [esi + 8], 0xaaaaaaa
je 0x4948fb
push dword [ebp + 0x10]
lea eax, [esi + 4]
push ebx
push eax
lea ecx, [ebp - 0x14]
call fcn.00438446
and dword [ebp - 4], 0
mov ecx, esi
call fcn.004383fb
test al, al
jne 0x494906
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x10]
and dword [ebp - 0x10], 0
push ebx
push ecx
push edi
mov ecx, esi
call fcn.004383b9
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov byte [esi + 4], 1
test ecx, ecx
jne 0x494934
mov eax, esi
call fcn.00483128
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x4383b1
push 0x406f10
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov eax, dword [esi + 8]
mov ecx, esi
inc eax
push eax
call fcn.004eea6c
push eax
mov ecx, esi
call fcn.004eeaca
mov ebx, dword [ebp - 0x10]
mov ecx, esi
push edi
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0043826a
mov ecx, dword [eax]
jmp 0x43838d
push 0x18
pop edx
call fcn.004311f4
jmp 0x4383af
Function at 0x43b944
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push 0x34
mov eax, 0x4862a0
call fcn.00483193
mov ebx, ecx
mov dword [ebp - 0x38], ebx
and dword [ebp - 0x30], 0x78000000
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
mov dword [ebp - 4], eax
mov edx, eax
mov ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0xc]
jae 0x4959fa
mov edi, dword [esi + 8]
mov al, byte [edi + ecx]
inc ecx
mov byte [ebp + edx - 0x34], al
inc edx
mov dword [esi + 0x10], ecx
cmp edx, 4
jb 0x43b976
mov eax, dword [esi + 0xc]
sub eax, ecx
cmp eax, 4
jb 0x495a0c
xor edx, edx
cmp ecx, dword [esi + 0xc]
jae 0x4959fa
mov al, byte [edi + ecx]
inc ecx
mov byte [ebp + edx - 0x30], al
inc edx
mov dword [esi + 0x10], ecx
cmp edx, 4
jb 0x43b9a3
mov edi, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00439c00
lea esi, [ebx + 0xec]
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
pop ecx
test eax, eax
jne 0x495a16
call dword [sym.imp.MSVCP140.dll__Thrd_id]
lea ecx, [esi + 0x30]
xchg dword [ecx], eax
inc dword [esi + 0x34]
lea edx, [ebx + 0x124]
mov byte [ebp - 4], 1
mov ebx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [ebp + ecx - 0x34]
xor eax, ebx
imul ebx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x43ba02
push ebx
lea eax, [ebp - 0x34]
mov ecx, edx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0043826a
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x38]
test ebx, ebx
je 0x43ba9b
cmp ebx, dword [eax + 0x128]
je 0x43ba6d
mov dword [ebx + 0x14], edi
lea eax, [ebp - 0x28]
mov edi, dword [ebx + 0x10]
cmp edi, eax
je 0x43ba65
mov ecx, edi
call fcn.0043baa3
push 6
pop ecx
lea esi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov ecx, dword [ebx + 0xc]
call fcn.0046ed4f
mov eax, dword [esi + 0x34]
cmp eax, 1
jne 0x43ba7f
xor eax, eax
lea ecx, [esi + 0x30]
xchg dword [ecx], eax
mov eax, dword [esi + 0x34]
dec eax
push esi
mov dword [esi + 0x34], eax
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0043baa3
call fcn.0048313d
ret 4
mov ebx, dword [eax + 0x128]
jmp 0x43ba2f
push 0x533c68
lea eax, [ebp - 0x29]
mov byte [ebp - 0x29], 0
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov edi, 0x80004005
jmp 0x43b9c0
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
Function at 0x469baf
Capabilities:
Reference sql statements

Disassembly:
push 0x18
mov eax, 0x4870dc
call fcn.0048315f
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, 0x80004005
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [edi], eax
mov dword [ebp - 4], ebx
mov esi, ebx
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], bl
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp + 8]
push eax
call fcn.0043d040
mov eax, dword [eax]
mov dword [edi], eax
test eax, eax
js 0x469c3a
push ebx
push 0x402620
push dword [ebp - 0x18]
lea eax, [ebp + 8]
mov esi, 0x80004005
push eax
lea ecx, [ebp - 0x24]
mov dword [edi], esi
call fcn.0042b530
mov eax, dword [ebp + 8]
mov dword [edi], eax
test eax, eax
js 0x469c37
push dword [ebp + 0x10]
lea eax, [ebp + 8]
mov dword [edi], esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push eax
call fcn.00469c99
mov eax, dword [eax]
mov dword [edi], eax
test eax, eax
js 0x469c37
mov dword [edi], ebx
mov esi, dword [ebp - 0x24]
mov byte [ebp - 4], 2
mov eax, ebx
test esi, esi
jne 0x469c84
push eax
push 0x401d3c
lea eax, [ebp + 8]
mov dword [ebp - 0x24], ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.0043e9a0
or ebx, 0xffffffff
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x469c7a
mov dword [ebp - 4], 3
mov eax, ebx
lock xadd dword [esi + 4], eax
je 0x4b3f2b
mov eax, edi
call fcn.00483128
ret 0xc
push esi
call fcn.00447f1c
pop ecx
mov edx, eax
lea ecx, [ebp + 8]
call fcn.0043d242
mov eax, dword [eax]
jmp 0x469c44
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 4
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x469c7a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
jmp 0x469c7a
Function at 0x47117c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov ecx, 0x811c9dc5
cmp dword [ebp + 8], esi
jbe 0x47119f
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc esi
cmp esi, dword [ebp + 8]
jb 0x47118d
mov eax, ecx
pop esi
leave
ret

Function at 0x475d80
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x4885cd
call fcn.0048315f
mov esi, ecx
push 8
call fcn.00481a43
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov edx, dword [edx]
mov dword [eax], edx
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
xor ebx, ebx
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x47d302
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x4b8fd5
call fcn.00483128
ret 8
push 6
mov dword [edi], ebx
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x476296
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x53a024]
xor eax, ebp
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, 0x5460a0
inc edx
call fcn.0047681f
test eax, eax
jne 0x4762ec
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 2
push 0xc0000000
push 0x403270
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x53b0e8], eax
cmp eax, 0xffffffff
jne 0x4b90f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00481a32
leave
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
push 0x10
push esi
push 0x528dd2
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
push 0x7cecb8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x1c]
push eax
push dword [0x53b0e8]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4762df
movsx eax, word [ebp - 0x1c]
movsx ecx, word [ebp - 0xc]
mov dword [0x53b0ec], eax
movsx eax, word [ebp - 0x10]
sub ecx, eax
inc ecx
mov dword [0x53b0e0], ecx
jmp 0x4762df
Function at 0x4762f2
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x53a024]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
push ecx
call fcn.0047654e
pop ecx
test eax, eax
jne 0x4b914c
push ecx
call fcn.00476588
pop ecx
test eax, eax
jne 0x4b914c
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x47640f
lea eax, [esp + 0x288]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4b9140
push eax
push ebx
push 2
mov dword [0x545204], ebx
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, dword [sym.imp.WS2_32.dll_getsockopt]
mov esi, eax
cmp esi, 0xffffffff
je 0x4763b6
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x274
push eax
lea eax, [esp + 0x14]
push eax
push 0x2005
push 0xffff
push esi
call ebx
test eax, eax
jne 0x4763af
mov eax, dword [esp + 0x10]
and eax, 0x20000
neg eax
sbb eax, eax
not eax
and dword [0x545204], eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
inc eax
push 0
push eax
push 0x17
mov dword [0x545200], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x47640f
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x274
push eax
lea eax, [esp + 0x14]
push eax
push 0x2005
push 0xffff
push esi
call ebx
test eax, eax
jne 0x476408
mov eax, dword [esp + 0x10]
and eax, 0x20000
neg eax
sbb eax, eax
not eax
and dword [0x545200], eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebx
xor ecx, esp
call fcn.00481a32
mov esp, ebp
pop ebp
ret
mov edx, 0x40efe0
mov ecx, eax
call fcn.0052863b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3

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

Disassembly:
push 0x21c
mov eax, 0x48871b
call fcn.00483193
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x228], eax
lea edx, [ebp - 0x228]
mov dword [ebp - 4], ebx
call fcn.00477c16
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x477c03
mov ecx, eax
call fcn.00477c44
test al, al
jne 0x477c03
mov bl, 1
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x4b991b
mov al, bl
call fcn.0048313d
ret
mov ecx, esi
call fcn.0043308e
push 0x18
push esi
call fcn.00481cc4
pop ecx
pop ecx
jmp 0x477c0e
Function at 0x47cac4
Capabilities:
Create thread
Get system information on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
test byte [edx], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x47cb1e
xor esi, esi
push 0xc
call dword [0x540204]
mov edi, eax
pop ecx
test edi, edi
je 0x47cb43
mov eax, dword [ebp + 0xc]
push 0
push 4
push edi
push 0x475fae
push esi
push 0
mov dword [edi], 0x43680c
mov dword [edi + 4], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x47cb2a
mov dword [ebx], eax
push eax
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [edx + 4]
test esi, esi
je 0x47cad6
jmp 0x4bb4b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, edi
mov esi, dword [eax]
call fcn.00476009
sub esi, 0
je 0x47cb17
jmp 0x4bb4d2
mov eax, 0xfffff027
jmp 0x47cb19
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x20]
dec esi
add esi, eax
neg eax
and esi, eax
jmp 0x47cad6
sub esi, 0xb
je 0x4bb500
dec esi
sub esi, 1
je 0x4bb4f6
sub esi, 9
je 0x4bb4ec
mov eax, 0xfffff01a
jmp 0x47cb19
mov eax, 0xfffff019
jmp 0x47cb19
mov eax, 0xfffff004
jmp 0x47cb19
mov eax, 0xfffff008
jmp 0x47cb19

Function at 0x48051d
Capabilities:
Terminate process

Disassembly:
push 8
mov eax, 0x488e52
call fcn.0048315f
mov ebx, ecx
mov ecx, 0x546528
call fcn.00436a00
mov ecx, dword [0x5454ec]
xor edi, edi
xor esi, esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
test ecx, ecx
je 0x480564
call fcn.0043c406
test al, al
je 0x480564
mov edi, dword [0x5454e8]
mov esi, dword [0x5454ec]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
test edi, edi
je 0x48056f
call dword [edi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or edi, 0xffffffff
mov dword [ebp - 4], edi
test esi, esi
jne 0x4bd8bc
call fcn.00483128
ret
mov dword [ebp - 4], 1
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x48058b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 2
lock xadd dword [esi + 8], edi
dec edi
jne 0x48058b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x48058b
Function at 0x4ed38d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ed3e3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4ed3e3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4ed3d5
cmp esi, ecx
jae 0x4ed3e3
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4ed3c3
cmp esi, ecx
jae 0x4ed3e3
cmp word [esi], 0
je 0x4ed3e3
mov eax, esi
jmp 0x4ed3e5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push 0x21c
mov eax, 0x48871b
call fcn.00483193
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x228], eax
lea edx, [ebp - 0x228]
mov dword [ebp - 4], ebx
call fcn.00477c16
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ee612
mov ecx, eax
call fcn.0042d6e2
test al, al
jne 0x4ee612
mov bl, 1
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4ee62a
mov ecx, esi
call fcn.0043308e
push 0x18
push esi
call fcn.00481cc4
pop ecx
pop ecx
mov al, bl
call fcn.0048313d
ret

Function at 0x4ee6dc
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x53a024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, ecx
lea ecx, [ebp - 0x1c]
call fcn.0046edef
cmp dword [eax + 0x14], 8
jb 0x4ee6fe
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea ecx, [ebp - 0x1c]
call fcn.0043308e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481a32
leave
ret
Function at 0x4f23fe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push esi
push edi
jbe 0x4f24a8
cmp dword [ebp + 0x18], 0
mov esi, dword [ebp + 8]
jne 0x4f2436
cmp word [esi + 8], 0
jne 0x4f2436
mov ecx, dword [ebp + 0x1c]
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov al, byte [esi + 0x10]
mov byte [ecx + 4], al
movzx eax, word [esi + 8]
mov dword [ecx + 0xc], eax
mov al, 1
jmp 0x4f24aa
mov al, byte [ebp + 0x20]
mov edx, dword [ebp + 0x14]
xor al, 1
shl al, 5
movzx eax, al
movsx edx, byte [edx]
sub edx, eax
movzx eax, byte [ebp + 0x20]
shl eax, 5
sub edx, 0x41
add eax, 0x1a
cmp edx, eax
jae 0x4f24a8
mov eax, dword [ebp + 0xc]
movsx edi, word [eax + edx*2]
test edi, edi
je 0x4f24a8
cmp edi, dword [ebp + 0x10]
jae 0x4f24a8
imul eax, edi, 0x14
add eax, 8
add eax, esi
mov dword [ebp + 0x20], eax
push dword [ebp + 0x18]
push dword [eax - 4]
push dword [ebp + 0x14]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov edx, eax
add esp, 0xc
mov eax, dword [ebp + 0x20]
test edx, edx
jne 0x4f249a
movzx ecx, word [eax]
cmp ecx, dword [ebp + 0x18]
je 0x4f24b0
test edx, edx
js 0x4f24a8
inc edi
add eax, 0x14
mov dword [ebp + 0x20], eax
cmp edi, dword [ebp + 0x10]
jb 0x4f2475
xor al, al
pop edi
pop esi
pop ebp
ret 0x1c
mov ecx, dword [ebp + 0x1c]
imul edx, edi, 0x14
mov eax, dword [edx + esi + 0xc]
mov dword [ecx], eax
mov al, byte [edx + esi + 0x10]
mov byte [ecx + 4], al
movzx eax, word [edx + esi + 8]
jmp 0x4f242f

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov edi, edx
mov esi, dword [ebx + 0x88]
mov dword [ebp - 4], edi
test esi, esi
je 0x500aa1
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x88], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x10], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x500b05
movzx eax, word [ebx + 0x8c]
cdq
add eax, 0x28
adc edx, 0
push edx
push eax
call fcn.0045dc04
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test esi, esi
jne 0x500aee
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 0x98]
dec ecx
mov esi, dword [ebx + 0x3c]
push 0
cdq
push ecx
mov edi, dword [esi]
push edx
push eax
call fcn.004835a0
push edx
push eax
push esi
call dword [edi + 0x48]
add esp, 0x10
push 7
pop eax
jmp 0x500b13
lea eax, [esi + 0x28]
mov dword [esi + 0x14], ebx
mov dword [esi + 8], eax
push 0x20
pop eax
mov word [esi + 0x1c], ax
xor eax, eax
inc eax
mov word [esi + 0x1e], ax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 0x18], edi
inc dword [ebx + 0x78]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x50503a
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, edx
mov ebx, 0x401d68
push esi
push ebx
push esi
mov edi, ecx
push 0x40c638
push edi
call fcn.0050ad83
add esp, 0x18
cmp dword [ebp + 8], 0
jne 0x505073
push esi
push ebx
push 0x40c6c8
push edi
call fcn.0050ad83
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret