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

Disassembly:
push 0x654d776f
jae 0x68cd9c
popal
pushal
retf
add byte [ebx - 0xc7743a], cl
xchg edi, eax
movsb byte es:[edi], byte [esi]
add byte [eax], al
add byte [edx + 0x68cecc], bh
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x2a0]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp byte [ebp + 8], 3
sete dl
mov eax, esi
call 0xcc6bf35d
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov ecx, ebx
mov dl, 1
mov eax, dword [0x64034c]
call 0x4126f277
mov esi, eax
push 0x4b
push 0x19
mov ecx, 0x88
mov edx, 0x88
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xa4]
mov edx, 0x68cef0
mov eax, esi
call 0x6147d79d
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x118], 0x68cf14
mov edx, 0x68cf04
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov eax, dword [0x7535e8]
mov eax, dword [eax]
mov edx, dword [eax + 0x148]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
call 0xece1cedd
mov eax, dword [ebp - 0xc]
mov dl, 1
call 0x76d0e7
test al, al
je 0x68ce89
mov ecx, ebx
mov dl, 1
mov eax, dword [0x6475f8]
call 0xc8c9edf9
mov edx, eax
mov eax, ebx
call 0xb943f902
mov eax, ebx
call 0xd44f909
mov eax, dword [eax + 0x4c]
add eax, 4
mov edx, dword [ebp - 8]
call 0x44d5cf17
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x17c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68ceb5
lea eax, [ebp - 0xc]
mov edx, 3
call 0xc4d1cf3b
ret
Function at 0x401910
Capabilities:
Terminate process

Disassembly:
mov eax, 0x2098
call fcn.00463f70
mov eax, dword [0x5f1cf8]
xor eax, esp
mov dword [esp + 0x2094], eax
push esi
push 0x400
push 0x400
lea eax, [esp + 0xc]
push 0x4bf01e
push eax
call fcn.0040b860
lea ecx, [esp + 0x14]
push str.UPDATE_t1_SET
push ecx
call fcn.0040bb70
mov eax, dword [0x4dc014]
add esp, 0x18
test eax, eax
je 0x4019d7
mov esi, 1
cmp eax, esi
jb 0x4019d7
call fcn.00463afc
push eax
push esi
push str.intcol_d___ld
lea edx, [esp + 0xa0]
push 0x2004
push edx
call fcn.00463e8c
add esp, 0x14
cmp eax, 0x2004
jg 0x401ac7
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0040bb70
add esp, 8
cmp esi, dword [0x4dc014]
jb 0x4019b8
cmp dword [0x4dc018], 0
jbe 0x4019cc
push 1
lea edx, [esp + 8]
push 0x4bf160
push edx
call fcn.0040b9f0
add esp, 0xc
add esi, 1
cmp esi, dword [0x4dc014]
jbe 0x401966
mov eax, dword [0x4dc018]
test eax, eax
je 0x401a62
mov esi, 1
cmp eax, esi
jb 0x401a62
lea ecx, [ecx]
lea eax, [esp + 0x14]
push eax
call fcn.0040100f
lea ecx, [esp + 0x18]
push ecx
push eax
push esi
push str.charcol_d___.s
lea edx, [esp + 0xa8]
push 0x2004
push edx
call fcn.00463e8c
add esp, 0x1c
cmp eax, 0x2004
jg 0x401ac7
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0040bb70
add esp, 8
cmp esi, dword [0x4dc018]
jae 0x401a57
push 1
lea edx, [esp + 8]
push 0x4bf160
push edx
call fcn.0040b9f0
add esp, 0xc
add esi, 1
cmp esi, dword [0x4dc018]
jbe 0x4019f0
cmp byte [0x62aec0], 0
jne 0x401a74
cmp byte [0x62aec1], 0
je 0x401a86
lea eax, [esp + 4]
push str._WHERE_id_
push eax
call fcn.0040bb70
add esp, 8
push 0x38
push 0x18
call fcn.0040b700
mov ecx, dword [esp + 0x10]
add ecx, 1
push 0x38
push ecx
mov esi, eax
call fcn.0040b700
mov dword [esi], eax
mov edx, dword [esp + 0x18]
add edx, 1
add esp, 0x10
mov dword [esi + 4], edx
cmp byte [0x62aec0], 0
jne 0x401ae4
cmp byte [0x62aec1], 0
jne 0x401ae4
mov byte [esi + 8], 1
jmp 0x401ae8
push str.Memory_Allocation_error_in_creating_update_n
call fcn.00463ceb
add eax, 0x40
push eax
call fcn.00463b1e
add esp, 8
push 1
call fcn.00463a63
mov byte [esi + 8], 3
mov ecx, dword [esp + 4]
push ecx
push eax
call fcn.0040bba0
lea edx, [esp + 0xc]
push edx
call fcn.0040bb50
mov ecx, dword [esp + 0x20a4]
add esp, 0xc
mov eax, esi
pop esi
xor ecx, esp
call fcn.00463f56
add esp, 0x2098
ret
Function at 0x401ba0
Capabilities:
Terminate process

Disassembly:
mov eax, 0x2018
call fcn.00463f70
mov eax, dword [0x5f1cf8]
xor eax, esp
mov dword [esp + 0x2014], eax
push 0x400
push 0x400
lea eax, [esp + 8]
push 0x4bf01e
push eax
call fcn.0040b860
lea ecx, [esp + 0x10]
push str.INSERT_INTO_t1_VALUES__
push ecx
call fcn.0040bb70
add esp, 0x18
cmp byte [0x62aec0], 0
je 0x401c20
lea edx, [esp]
push str.NULL
push edx
call fcn.0040bb70
add esp, 8
cmp dword [0x4dc014], 0
jne 0x401c0f
cmp dword [0x4dc018], 0
je 0x401c20
lea eax, [esp]
push 0x4bf160
push eax
call fcn.0040bb70
add esp, 8
cmp byte [0x62aec1], 0
je 0x401c5d
lea ecx, [esp]
push str.uuid__
push ecx
call fcn.0040bb70
add esp, 8
cmp dword [0x4dc014], 0
jne 0x401c4c
cmp dword [0x4dc018], 0
je 0x401c5d
lea edx, [esp]
push 0x4bf160
push edx
call fcn.0040bb70
add esp, 8
mov eax, dword [0x62ae24]
test eax, eax
push esi
je 0x401ccb
xor esi, esi
test eax, eax
jbe 0x401ca3
lea ecx, [ecx]
test esi, esi
je 0x401c86
lea eax, [esp + 4]
push 0x4bf160
push eax
call fcn.0040bb70
add esp, 8
lea ecx, [esp + 4]
push str.uuid__
push ecx
call fcn.0040bb70
add esi, 1
add esp, 8
cmp esi, dword [0x62ae24]
jb 0x401c70
cmp dword [0x4dc014], 0
jne 0x401cb9
cmp dword [0x4dc018], 0
je 0x401dc9
lea edx, [esp + 4]
push 0x4bf160
push edx
call fcn.0040bb70
add esp, 8
mov eax, dword [0x4dc014]
test eax, eax
je 0x401d4a
mov esi, 1
cmp eax, esi
jb 0x401d4a
lea ecx, [ecx]
call fcn.00463afc
push eax
push 0x4bf244
lea eax, [esp + 0x1c]
push 0x2004
push eax
call fcn.00463e8c
add esp, 0x10
cmp eax, 0x2004
jg 0x401e34
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 8]
push edx
call fcn.0040bb70
add esp, 8
cmp esi, dword [0x4dc014]
jb 0x401d2b
cmp dword [0x4dc018], 0
jbe 0x401d3f
push 1
lea eax, [esp + 8]
push 0x4bf160
push eax
call fcn.0040b9f0
add esp, 0xc
add esi, 1
cmp esi, dword [0x4dc014]
jbe 0x401ce0
mov eax, dword [0x4dc018]
test eax, eax
je 0x401dc9
mov esi, 1
cmp eax, esi
jb 0x401dc9
push edi
lea ecx, [ecx]
lea ecx, [esp + 0x18]
push ecx
call fcn.0040100f
push 1
lea edx, [esp + 0x10]
push 0x4bf240
push edx
mov edi, eax
call fcn.0040b9f0
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040b9f0
push 1
lea edx, [esp + 0x28]
push 0x4bf240
push edx
call fcn.0040b9f0
add esp, 0x28
cmp esi, dword [0x4dc018]
jae 0x401dbd
push 1
lea eax, [esp + 0xc]
push 0x4bf160
push eax
call fcn.0040b9f0
add esp, 0xc
add esi, 1
cmp esi, dword [0x4dc018]
jbe 0x401d60
pop edi
push 1
lea ecx, [esp + 8]
push 0x4bf054
push ecx
call fcn.0040b9f0
push 0x38
push 0x18
call fcn.0040b700
mov edx, dword [esp + 0x1c]
add edx, 1
push 0x38
push edx
mov esi, eax
call fcn.0040b700
mov dword [esi], eax
mov ecx, dword [esp + 0x24]
add ecx, 1
mov dword [esi + 4], ecx
mov byte [esi + 8], 2
mov edx, dword [esp + 0x20]
push edx
push eax
call fcn.0040bba0
lea eax, [esp + 0x28]
push eax
call fcn.0040bb50
mov ecx, dword [esp + 0x2040]
add esp, 0x28
mov eax, esi
pop esi
xor ecx, esp
call fcn.00463f56
add esp, 0x2018
ret
push str.Memory_Allocation_error_in_creating_insert_n
call fcn.00463ceb
add eax, 0x40
push eax
call fcn.00463b1e
add esp, 8
push 1
call fcn.00463a63
int3
Function at 0x401f00
Capabilities:
Terminate process

Disassembly:
mov eax, 0x2008
call fcn.00463f70
mov eax, dword [0x5f1cf8]
xor eax, esp
mov dword [esp + 0x2004], eax
push esi
push 0x400
push 0x400
push 0x4bf01e
push 0x62ae68
call fcn.0040b860
push 7
push str.SELECT
push 0x62ae68
call fcn.0040b9f0
mov esi, 1
add esp, 0x1c
cmp dword [0x4dc014], esi
jb 0x401fb8
push esi
push str.intcol_d
lea eax, [esp + 0xc]
push 0x2004
push eax
call fcn.00463e8c
add esp, 0x10
cmp eax, 0x2004
jg 0x4020a4
lea ecx, [esp + 4]
push ecx
push 0x62ae68
call fcn.0040bb70
add esp, 8
cmp esi, dword [0x4dc014]
jb 0x401f99
cmp dword [0x4dc018], 0
jbe 0x401fad
push 1
push 0x4bf160
push 0x62ae68
call fcn.0040b9f0
add esp, 0xc
add esi, 1
cmp esi, dword [0x4dc014]
jbe 0x401f53
mov esi, 1
cmp dword [0x4dc018], esi
jb 0x402021
push esi
push str.charcol_d
lea edx, [esp + 0xc]
push 0x2004
push edx
call fcn.00463e8c
add esp, 0x10
cmp eax, 0x2004
jg 0x4020a4
lea eax, [esp + 4]
push eax
push 0x62ae68
call fcn.0040bb70
add esp, 8
cmp esi, dword [0x4dc018]
jae 0x402016
push 1
push 0x4bf160
push 0x62ae68
call fcn.0040b9f0
add esp, 0xc
add esi, 1
cmp esi, dword [0x4dc018]
jbe 0x401fc5
push str._FROM_t1
push 0x62ae68
call fcn.0040bb70
add esp, 8
test bl, bl
je 0x40205b
cmp byte [0x62aec0], 0
jne 0x402049
cmp byte [0x62aec1], 0
je 0x40205b
push str._WHERE_id_
push 0x62ae68
call fcn.0040bb70
add esp, 8
push 0x38
push 0x18
call fcn.0040b700
mov ecx, dword [0x62ae6c]
add ecx, 1
push 0x38
push ecx
mov esi, eax
call fcn.0040b700
mov dword [esi], eax
mov edx, dword [0x62ae6c]
add edx, 1
add esp, 0x10
test bl, bl
mov dword [esi + 4], edx
je 0x4020c1
cmp byte [0x62aec0], 0
jne 0x40209e
cmp byte [0x62aec1], 0
je 0x4020c1
mov byte [esi + 8], 5
jmp 0x4020c5
push str.Memory_Allocation_error_in_creating_select_n
call fcn.00463ceb
add eax, 0x40
push eax
call fcn.00463b1e
add esp, 8
push 1
call fcn.00463a63
mov byte [esi + 8], 0
mov ecx, dword [0x62ae68]
push ecx
push eax
call fcn.0040bba0
push 0x62ae68
call fcn.0040bb50
mov ecx, dword [esp + 0x2014]
add esp, 0xc
mov eax, esi
pop esi
xor ecx, esp
call fcn.00463f56
add esp, 0x2008
ret
Function at 0x4021d0
Capabilities:
Terminate process

Disassembly:
cmp byte [0x62aebc], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x4022d1
test eax, eax
je 0x4021fe
mov eax, dword [eax]
push str.blackhole
push eax
call fcn.00463fa0
add esp, 8
test eax, eax
jne 0x4022d1
push ebx
mov esi, 0x11
mov edi, str.SELECT_id_from_t1
call fcn.00402180
add esp, 4
test eax, eax
push ebx
je 0x402240
call fcn.00409bc0
mov ecx, dword [0x62af30]
push eax
push ecx
push str._s:_Cannot_select_GUID_primary_keys.___s__n
call fcn.00463ceb
add eax, 0x40
push eax
call fcn.00463b1e
add esp, 0x10
push 1
call fcn.00463a63
call fcn.00409630
mov ebx, eax
push ebx
call fcn.00409b80
mov ecx, eax
or ecx, edx
mov dword [0x62cc38], eax
mov dword [0x62cc3c], edx
je 0x4022c5
lea edx, [eax*4]
push 0x38
push edx
call fcn.0040b700
add esp, 8
push ebx
mov dword [0x62cc8c], eax
call fcn.0040b4c0
xor esi, esi
xor edi, edi
cmp dword [0x62cc3c], esi
jb 0x4022c5
ja 0x402291
cmp dword [0x62cc38], esi
jbe 0x4022c5
mov eax, dword [eax]
push 0
push eax
call fcn.0040b7d0
mov ecx, dword [0x62cc8c]
add esp, 8
mov dword [ecx + esi*4], eax
add esi, 1
push ebx
adc edi, 0
call fcn.0040b4c0
cmp edi, dword [0x62cc3c]
jb 0x402291
ja 0x4022c5
cmp esi, dword [0x62cc38]
jb 0x402291
push ebx
call fcn.00408430
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x38
push 4
mov dword [0x62cc38], 1
mov dword [0x62cc3c], 0
call fcn.0040b700
push 0
push str.796c4422_1d94_102a_9d6d_00e0812d
mov dword [0x62cc8c], eax
call fcn.0040b7d0
mov edx, dword [0x62cc8c]
add esp, 0x10
pop edi
pop esi
mov dword [edx], eax
xor eax, eax
pop ebx
ret
Function at 0x402720
Capabilities:
Terminate process

Disassembly:
mov eax, 0x2008
call fcn.00463f70
mov eax, dword [0x5f1cf8]
xor eax, esp
mov dword [esp + 0x2004], eax
push ebp
mov ebp, dword [esp + 0x2010]
push esi
push edi
push ebp
push str.DROP_SCHEMA_IF_EXISTS___s_
lea eax, [esp + 0x14]
push 0x2004
push eax
call fcn.00463e8c
push ebx
mov esi, eax
lea edi, [esp + 0x20]
call fcn.00402180
add esp, 0x14
test eax, eax
je 0x402796
push ebx
call fcn.00409bc0
mov ecx, dword [0x62af30]
push eax
push ebp
push ecx
push str._s:_Cannot_drop_database__s_ERROR_:__s_n
call fcn.00463ceb
add eax, 0x40
push eax
call fcn.00463b1e
add esp, 0x14
push 1
call fcn.00463a63
mov ecx, dword [esp + 0x2010]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00463f56
add esp, 0x2008
ret

Function at 0x4027e0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
test ebx, ebx
push esi
push edi
je 0x402823
mov edi, edi
mov esi, dword [ebx + 4]
test esi, esi
je 0x402823
mov edi, dword [ebx]
push ebp
call fcn.00402180
add esp, 4
test eax, eax
push ebp
jne 0x40282a
call fcn.0040cc70
test eax, eax
je 0x40281c
push ebp
call fcn.00409630
push eax
call fcn.00408430
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x4027f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
call fcn.00409bc0
mov ecx, dword [ebx + 4]
mov edx, dword [0x62af30]
push eax
mov eax, dword [ebx]
push eax
push ecx
push edx
push str._s:_Cannot_run_query__.s_ERROR_:__s_n
call fcn.00463ceb
add eax, 0x40
push eax
call fcn.00463b1e
add esp, 0x18
push 1
call fcn.00463a63
int3
Function at 0x404100
Capabilities:
Terminate process

Disassembly:
sub esp, 0x34
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
push edi
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
call fcn.00411bf0
xor esi, esi
push esi
call fcn.00411ed0
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esp, 8
push 0x62cbe0
call edi
push 0x62cbc0
mov dword [0x62cc2c], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x62cbc0
mov dword [0x62cbb0], 1
call ebx
test ebp, ebp
jbe 0x4041a2
lea esp, [esp]
lea ecx, [esp + 0x34]
push ecx
push 0x401037
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.00411de0
add esp, 0x10
test eax, eax
jne 0x404285
add dword [0x62cc2c], 1
add esi, 1
cmp esi, ebp
jb 0x404170
push 0x62cbe0
call ebx
lea edx, [esp + 0x28]
push edx
call fcn.00411c30
add esp, 4
push 0x62cbc0
call edi
push 0x62cbc0
mov dword [0x62cbb0], 0
call ebx
push 0x62cc00
call fcn.00411bb0
add esp, 4
lea esi, [esp + 0x10]
call fcn.004010e0
push 0x62cbe0
call edi
cmp dword [0x62cc2c], 0
je 0x404238
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, 0xbb8
nop
lea eax, [esp + 0x18]
push eax
call esi
add dword [esp + 0x18], 0x1c9c380
lea ecx, [esp + 0x18]
push ecx
adc dword [esp + 0x20], 0
push 0x62cbe0
push 0x62cc60
mov dword [esp + 0x2c], edi
call fcn.00411aa0
add esp, 0xc
cmp dword [0x62cc2c], 0
jne 0x404200
push 0x62cbe0
call ebx
lea esi, [esp + 0x18]
call fcn.004010e0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call fcn.004010a0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
add esp, 0x10
pop edi
mov dword [ecx], eax
mov eax, dword [esp + 0x4c]
pop esi
mov dword [ecx + 4], ebp
pop ebp
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
xor eax, eax
pop ebx
add esp, 0x34
ret
mov ecx, dword [0x62af30]
push ecx
push str._s:_Could_not_create_thread_n
call fcn.00463ceb
add eax, 0x40
push eax
call fcn.00463b1e
add esp, 0xc
push 0
call fcn.00463a63
int3
Function at 0x406700
Capabilities:
Get common file path

Disassembly:
push esi
push str.GetSystemWindowsDirectoryA
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
push esi
push edi
je 0x406724
call eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
cmp esi, 8
jbe 0x40674d
lea eax, [esi + edi - 8]
push str.System32
push eax
call fcn.0048ecc5
add esp, 8
test eax, eax
jne 0x40674d
sub esi, 8
mov byte [esi + edi], al
mov eax, esi
pop esi
ret

Function at 0x4067a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
mov eax, dword [0x5f1cf8]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
mov ebp, dword [esp + 0x214]
push 0x1c
push ebp
mov dword [esp + 0x10], 0
call fcn.00413520
mov ebx, eax
add esp, 8
xor eax, eax
test ebx, ebx
je 0x4068bf
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
push esi
push edi
mov dword [ebx + 0x18], eax
mov eax, 0x200
lea edi, [esp + 0x14]
call fcn.00406700
test eax, eax
je 0x406817
mov eax, edi
push eax
mov edi, ebx
mov esi, ebp
call fcn.00406680
add esp, 4
mov dword [esp + 0x10], eax
push 0x200
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x406840
lea edx, [esp + 0x14]
push edx
mov edi, ebx
mov esi, ebp
call fcn.00406680
add esp, 4
add dword [esp + 0x10], eax
push 0x4c0324
mov edi, ebx
mov esi, ebp
call fcn.00406680
add dword [esp + 0x14], eax
add esp, 4
mov eax, 0x200
lea esi, [esp + 0x14]
call fcn.00406760
test eax, eax
je 0x406878
mov eax, esi
push eax
mov esi, ebp
call fcn.00406680
add esp, 4
add dword [esp + 0x10], eax
push str.MYSQL_HOME
call fcn.00465ab7
add esp, 4
test eax, eax
je 0x40689a
push eax
mov edi, ebx
mov esi, ebp
call fcn.00406680
add esp, 4
add dword [esp + 0x10], eax
push 0x4bf01e
mov edi, ebx
mov esi, ebp
call fcn.00406680
add eax, dword [esp + 0x14]
add esp, 4
xor ecx, ecx
test eax, eax
setg cl
pop edi
pop esi
sub ecx, 1
and ecx, ebx
mov eax, ecx
mov ecx, dword [esp + 0x20c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00463f56
add esp, 0x208
ret
Function at 0x407c40
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_connect]
ret
Function at 0x40b700
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40b70f
mov esi, 1
push esi
call fcn.00466667
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40b763
push edi
call fcn.004654a0
mov edi, eax
call fcn.0041b5d0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x40b746
mov edx, dword [fcn.004123f0]
mov dword [fcn.004123f0], edx
test al, 0x18
je 0x40b757
push esi
push 0x64
push 5
call fcn.00418dc0
add esp, 0xc
test edi, edi
pop edi
je 0x40b776
push 1
call fcn.00463a63
test byte [esp + 0x10], 0x20
je 0x40b776
push esi
push 0
push ebx
call fcn.00464b40
add esp, 0xc
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4114e0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.004654a0
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.00479cbc
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4115b8
call fcn.004654a0
cmp dword [eax], 0
je 0x411527
call fcn.004654a0
mov ebp, dword [eax]
jmp 0x41152a
or ebp, 0xffffffff
call fcn.0041b5d0
test esi, esi
mov dword [eax], ebp
je 0x41153a
cmp esi, 0xffffffff
jne 0x411544
call fcn.004654a0
cmp dword [eax], 4
je 0x411594
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x411577
cmp esi, 0xffffffff
je 0x4115c9
test al, 6
je 0x411577
call fcn.0041b5d0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0041d100
add esp, 4
push eax
push 0x24
push 9
call fcn.00418dc0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x4115e7
test al, 6
je 0x411587
test eax, 0x200
je 0x4115e7
test eax, 0x200
je 0x4115bc
add dword [esp + 0x18], esi
sub edi, esi
call fcn.004654a0
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.00479cbc
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x411514
mov eax, dword [esp + 0x20]
test al, 6
je 0x4115ef
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
call fcn.0041b5d0
mov eax, dword [eax]
push eax
push ebx
call fcn.0041d100
add esp, 4
push eax
push 0x24
push 2
call fcn.00418dc0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
test eax, 0x200
je 0x4115fa
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x411de0
Capabilities:
Create thread

Disassembly:
push esi
push 0xc
call fcn.00466667
mov esi, eax
add esp, 4
test esi, esi
jne 0x411df6
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebx
push 0x62bbf0
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x411e1f
mov eax, 0xffff
push edi
push esi
push eax
push 0x411d90
call fcn.00468a08
mov edx, dword [esp + 0x1c]
mov edi, eax
add esp, 0xc
mov dword [esi], edi
push 0x62bbf0
mov dword [edx], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0xffffffff
jne 0x411e5a
call fcn.004654a0
mov eax, dword [eax]
test eax, eax
jne 0x411e67
or eax, edi
pop edi
pop ebx
pop esi
ret
mov eax, dword [ebx + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
pop edi
pop ebx
pop esi
ret
Function at 0x412010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa20
mov eax, dword [0x5f1cf8]
xor eax, esp
mov dword [esp + 0xa1c], eax
push ebx
push ebp
push esi
push edi
push 0x412000
call fcn.00469625
add esp, 4
call fcn.004694a6
push 0x62d158
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x412058
mov dword [0x62d158], eax
mov dword [0x62d15c], eax
jmp 0x4120ec
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0x2ac18000
adc ecx, 0xfe624e21
mov dword [0x62d174], ecx
lea ecx, [esp + 0x20]
push ecx
mov dword [0x62d170], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [0x62d15c]
mov edi, dword [0x62d158]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push esi
push edi
push edx
push eax
call fcn.004696a0
push 0
push 0x989680
push ebx
push ecx
mov ebp, eax
mov dword [esp + 0x24], edx
call fcn.00465570
push esi
push edi
push edx
push eax
call fcn.00464ad0
mov ecx, dword [esp + 0x14]
push 0
push 0x989680
push ecx
push ebp
mov esi, eax
mov edi, edx
call fcn.00465570
add esi, eax
adc edi, edx
sub dword [0x62d170], esi
sbb dword [0x62d174], edi
lea edx, [esp + 0x20]
push edx
push 0x20019
push 0
push str.SOFTWAREMySQL
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4121eb
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x12c]
push ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x2c]
xor esi, esi
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
mov ebp, 0xff
mov ebx, 0x3ff
push edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
call edi
cmp eax, 0x103
je 0x4121e0
lea ebx, [ebx]
add esi, 1
cmp eax, 0xea
je 0x4121ab
test eax, eax
jne 0x4121e0
cmp dword [esp + 0x10], 1
jne 0x4121ab
push eax
lea eax, [esp + 0x12c]
push eax
push 0x4c0cd4
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x538]
push edx
call fcn.00414bd0
lea eax, [esp + 0x53c]
push eax
call fcn.004929c5
push eax
call fcn.004945e9
add esp, 0x1c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x3c]
push edx
push esi
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
call edi
cmp eax, 0x103
jne 0x412160
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xa2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00463f56
add esp, 0xa20
ret
Function at 0x4122a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5f1cf8]
xor eax, esp
mov dword [esp + 0x190], eax
call fcn.00412210
test al, al
je 0x4122ec
push esi
mov esi, dword [sym.imp.WSOCK32.dll_WSAStartup]
lea eax, [esp + 4]
push eax
push 2
call esi
test eax, eax
je 0x412303
call dword [sym.imp.WSOCK32.dll_WSACleanup]
lea ecx, [esp + 4]
push ecx
push 2
call esi
test eax, eax
jne 0x4122eb
mov byte [0x62bc0c], 1
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
xor al, al
call fcn.00463f56
add esp, 0x194
ret
cmp word [esp + 4], 2
je 0x4122e4
call dword [sym.imp.WSOCK32.dll_WSACleanup]
lea edx, [esp + 4]
push edx
jmp 0x4122dc