joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f0f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp eax, 4
ja case.0x1004f105.0
jmp dword [eax*4 + 0x1004f19c]
push esi
push 0xffffffffffffffff
push dword [edi + 0x14]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push esi
xorps xmm0, xmm0
mov dword [edi + 0x14], 0xffffffff
push 1
push esi
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1004f17b
push 0x1388
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov ecx, 0x102
cmovne esi, ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x1004f3a0
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c850
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x10072f40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x250], eax
push 0x1234
push 0x1234
push str.RzProtocolMutex__04X__04X
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x464], eax
test eax, eax
je 0x1004f461
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1004f461
xor edi, edi
mov dword [ebp - 4], edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
push edi
push 0x40000000
push 3
push edi
push edi
push 0xc0000000
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x1004f484
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1005078e
mov esp, ebp
pop ebp
ret 0x14
push 5
push eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
test eax, eax
je 0x1004f461
xorps xmm0, xmm0
movups xmmword [ebp - 0x238], xmm0
movq qword [ebp - 0x228], xmm0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x238], 0x1c
lea eax, [ebp - 0x238]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
je 0x1004f461
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
mov al, byte [ebp + 0x18]
mov byte [ebp - 0x226], al
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x225], al
mov al, byte [ebp + 0x14]
cmp al, 1
jne 0x1004f4f6
mov byte [ebp - 0x224], 0
jmp 0x1004f503
cmp al, 2
sete al
inc al
mov byte [ebp - 0x224], al
mov eax, dword [ebp - 0x230]
and eax, 0xffffffbf
mov dword [ebp - 0x230], eax
and eax, 0xffffffdf
or eax, 0x10
mov dword [ebp - 0x230], eax
and eax, 0xfffffff7
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x238]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
je 0x1004f461
mov dword [ebp - 0x24c], 0xffffffff
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
lea eax, [ebp - 0x24c]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
je 0x1004f461
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
push 0
push 0
push esi
push 0x1004f700
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x10], eax
mov byte [esi + 0x1c], 1
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], 3
mov eax, edi
jmp 0x1004f466
Function at 0x1004f9f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 4
ja case.0x1004fa05.0
jmp dword [eax*4 + 0x1004faa4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x1004fa2f
push 0xffffffffffffffff
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], 0xffffffff
push 0
push 0
xorps xmm0, xmm0
push 1
push 0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1004fa83
push 0x1388
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov ecx, 0x102
cmovne edi, ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100271c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x1002734
push 0x80004005
call fcn.010021df
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebp
ret 0xc

Function at 0x1002cf1
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
jne 0x1002d07
push ebx
push ebx
push 1
push 0xc0000005
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov esi, dword [ebx + 8]
test esi, esi
je 0x1002d25
push edi
push dword [esi + 4]
call dword [esi]
mov edi, dword [esi + 8]
push esi
call fcn.01006970
pop ecx
mov esi, edi
test edi, edi
jne 0x1002d0f
pop edi
and dword [ebx + 8], 0
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1003eca
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push edi
mov edi, dword [0x100a070]
push 4
inc eax
push eax
push dword [esi]
call edi
add esp, 0xc
test eax, eax
jne 0x1003eb5
xor eax, eax
jmp 0x1003ee3
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call edi
add esp, 0xc
test eax, eax
je 0x1003eb1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
mov dword [esi + 4], eax
push dword [esi + 8]
call fcn.01003536
inc dword [esi + 8]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x1005334
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10052f7
mov eax, 0x80070057
jmp 0x100536a
mov edx, dword [esi + 8]
xor eax, eax
push ebx
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp edx, dword [esi + 0xc]
jae 0x1005358
mov ebx, dword [edx]
test ebx, ebx
je 0x1005346
cmp dword [ebp + 0x10], 0
je 0x1005326
mov edi, dword [ebx]
mov esi, dword [ebp + 0x10]
push 4
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov esi, dword [ebp + 8]
jne 0x1005346
push 0
call dword [ebx + 0x1c]
push eax
push dword [ebx]
call fcn.01003b80
test eax, eax
jl 0x1005368
push 0
call dword [ebx + 4]
mov dword [ebp - 8], eax
test eax, eax
jl 0x1005368
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
cmp edx, dword [esi + 0xc]
jb 0x1005309
mov eax, dword [ebp - 8]
test eax, eax
jl 0x1005368
cmp dword [ebp + 0xc], 0
je 0x1005368
push 0
push dword [esi + 4]
call fcn.01003964
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x402770
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x41b5f0]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jg 0x4027e7
push 0x100
lea eax, [ebp - 0x108]
push eax
push 7
mov ecx, dword [0x41ca14]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
push 0x46
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [0x41ca68]
push edx
call fcn.004069ae
add esp, 0xc
push 8
mov eax, dword [0x41ca68]
push eax
call fcn.004055c0
add esp, 8
push 1
call fcn.00407067
cmp dword [ebp + 0xc], 0xffffffff
je 0x402865
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jle 0x402865
push 0x100
lea edx, [ebp - 0x108]
push edx
push 9
mov eax, dword [0x41ca14]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.USER32.dll_CharToOemA]
push 0x4c
push 0x46
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [0x41ca68]
push ecx
call fcn.004069ae
add esp, 0x10
push 0xa
mov edx, dword [0x41ca68]
push edx
call fcn.004055c0
add esp, 8
push 0xb
mov eax, dword [0x41ca68]
push eax
call fcn.004055c0
add esp, 8
push 1
call fcn.00407067
mov ecx, dword [ebp - 4]
call fcn.004073a0
mov esp, ebp
pop ebp
ret

Function at 0x402880
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x41b5f0]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jg 0x4028f7
push 0x100
lea eax, [ebp - 0x108]
push eax
push 0xc
mov ecx, dword [0x41ca14]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
push 0x4c
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [0x41ca68]
push edx
call fcn.004069ae
add esp, 0xc
push 0xd
mov eax, dword [0x41ca68]
push eax
call fcn.004055c0
add esp, 8
push 1
call fcn.00407067
cmp dword [ebp + 8], 0xffffffff
je 0x402975
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jle 0x402975
push 0x100
lea edx, [ebp - 0x108]
push edx
push 0xe
mov eax, dword [0x41ca14]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.USER32.dll_CharToOemA]
push 0x4c
push 0x46
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [0x41ca68]
push ecx
call fcn.004069ae
add esp, 0x10
push 0xf
mov edx, dword [0x41ca68]
push edx
call fcn.004055c0
add esp, 8
push 0x10
mov eax, dword [0x41ca68]
push eax
call fcn.004055c0
add esp, 8
push 1
call fcn.00407067
mov ecx, dword [ebp - 4]
call fcn.004073a0
mov esp, ebp
pop ebp
ret
Function at 0x402990
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x41b5f0]
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x108]
push eax
push 0x11
mov ecx, dword [0x41ca14]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [0x41ca68]
push eax
call fcn.004069ae
add esp, 0xc
push 0x12
mov ecx, dword [0x41ca68]
push ecx
call fcn.004055c0
add esp, 8
push 0x13
mov edx, dword [0x41ca68]
push edx
call fcn.004055c0
add esp, 8
push 0x14
mov eax, dword [0x41ca68]
push eax
call fcn.004055c0
add esp, 8
push 0x15
mov ecx, dword [0x41ca68]
push ecx
call fcn.004055c0
add esp, 8
push 0x17
mov edx, dword [0x41ca68]
push edx
call fcn.004055c0
add esp, 8
push 0x18
mov eax, dword [0x41ca68]
push eax
call fcn.004055c0
add esp, 8
push 0x19
mov ecx, dword [0x41ca68]
push ecx
call fcn.004055c0
add esp, 8
push 0x1a
mov edx, dword [0x41ca68]
push edx
call fcn.004055c0
add esp, 8
push 0x39
mov eax, dword [0x41ca68]
push eax
call fcn.004055c0
add esp, 8
push 0x3a
mov ecx, dword [0x41ca68]
push ecx
call fcn.004055c0
add esp, 8
push 1
call fcn.00407067
mov ecx, dword [ebp - 4]
call fcn.004073a0
mov esp, ebp
pop ebp
ret

Function at 0x402b80
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41b5f0]
mov dword [ebp - 8], eax
push esi
push 0xa
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004075c6
add esp, 0xc
mov dword [ebp - 0x10c], eax
mov esi, dword [ebp - 4]
sub esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
push edx
call fcn.00406c30
add esp, 4
cmp esi, eax
jne 0x402bcf
cmp dword [ebp - 0x10c], 0
jge 0x402c68
push 0x100
lea eax, [ebp - 0x108]
push eax
push 0x1c
mov ecx, dword [0x41ca14]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
movsx ecx, byte [ebp + 8]
push ecx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [0x41ca68]
push eax
call fcn.004069ae
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x108]
push ecx
push 0x1d
mov edx, dword [0x41ca14]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.USER32.dll_CharToOemA]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [0x41ca68]
push ecx
call fcn.004069ae
add esp, 0xc
push 1
call fcn.00407067
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 8]
call fcn.004073a0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403a60
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41b5f0]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
sub ecx, 0x30
mov dword [ebp - 0x210], ecx
cmp dword [ebp - 0x210], 0x4f
ja case.0x403aa1.1
mov edx, dword [ebp - 0x210]
movzx eax, byte [edx + 0x403cee]
jmp dword [eax*4 + 0x403ce6]
or eax, 0xffffffff
jmp 0x403cda
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
sub edx, 0x22
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0x8d
ja case.0x403ae5.2
mov eax, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x403d4a]
jmp dword [ecx*4 + 0x403d3e]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
sub eax, 0x22
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0x8d
ja case.0x403b21.2
mov ecx, dword [ebp - 0x218]
movzx edx, byte [ecx + 0x403e0c]
jmp dword [edx*4 + 0x403dd8]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20c], eax
jmp 0x403bdb
mov dword [ebp - 0x20c], 0
jmp 0x403bdb
mov ecx, dword [ebp + 0x14]
lea edx, [ecx + ecx + 1]
mov dword [ebp - 0x20c], edx
jmp 0x403bdb
mov dword [ebp - 0x20c], 0x19
jmp 0x403bdb
mov dword [ebp - 0x20c], 0x18
jmp 0x403bdb
mov dword [ebp - 0x20c], 0x1a
jmp 0x403bdb
mov dword [ebp - 0x20c], 0x1a
jmp 0x403bdb
mov dword [ebp - 0x20c], 1
jmp 0x403bdb
mov dword [ebp - 0x20c], 3
jmp 0x403bdb
mov dword [ebp - 0x20c], 6
jmp 0x403bdb
mov dword [ebp - 0x20c], 0xc
jmp 0x403bdb
mov dword [ebp - 0x20c], 0x14
jmp 0x403bdb
mov eax, dword [ebp + 0x14]
cdq
mov ecx, 3
idiv ecx
mov edx, dword [ebp + 0x14]
lea eax, [eax + edx*2 + 3]
mov dword [ebp - 0x20c], eax
jmp 0x403c0a
cmp dword [ebp + 0x18], 0x23
je 0x403be9
cmp dword [ebp + 0x18], 0x22
jne 0x403bf5
mov dword [ebp - 0x20c], 0
jmp 0x403bfe
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x20c], ecx
jmp 0x403c0a
mov dword [ebp - 0x20c], 0
cmp dword [ebp - 0x20c], 0x7fff
jle 0x403c20
mov dword [ebp - 0x20c], 0x7fff
push 0x100
lea edx, [ebp - 0x208]
push edx
push 0x2a
mov eax, dword [0x41ca14]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.USER32.dll_CharToOemA]
mov eax, dword [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004069ae
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
push 0xff
lea edx, [ebp - 0x108]
push edx
call fcn.0040773b
add esp, 0xc
test eax, eax
jne 0x403cb3
push 0x2b
mov eax, dword [ebp + 0xc]
push eax
call fcn.004055c0
add esp, 8
mov ecx, dword [0x41ca48]
push ecx
mov edx, dword [0x41ca18]
push edx
call fcn.004057f0
add esp, 8
push 1
call fcn.00407067
movsx eax, byte [ebp - 0x108]
cmp eax, 0xa
je 0x403cd4
lea ecx, [ebp - 0x108]
push ecx
call fcn.004064d3
add esp, 4
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 4]
call fcn.004073a0
mov esp, ebp
pop ebp
ret
Function at 0x403ea0
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x41b5f0]
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x108]
push eax
push 0x2c
mov ecx, dword [0x41ca14]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
cmp dword [ebp + 0x10], 0
jne 0x403ef4
mov dword [ebp - 0x144], str.none
jmp 0x403efd
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x144]
push edx
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004069ae
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x32
lea eax, [ebp - 0x140]
push eax
call fcn.0040773b
add esp, 0xc
test eax, eax
jne 0x403f58
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.00406ded
add esp, 4
mov edx, dword [0x41ca48]
push edx
mov eax, dword [0x41ca18]
push eax
call fcn.004057f0
add esp, 8
push 1
call fcn.00407067
lea ecx, [ebp - 0x140]
push ecx
call fcn.00406c30
add esp, 4
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jle 0x403f97
mov edx, dword [ebp - 0x10c]
movsx eax, byte [ebp + edx - 0x141]
cmp eax, 0xa
jne 0x403f97
mov ecx, dword [ebp - 0x10c]
mov byte [ebp + ecx - 0x141], 0
movsx edx, byte [ebp - 0x140]
test edx, edx
jne 0x403fb3
cmp dword [ebp + 0x10], 0
jne 0x403fb3
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xffffffff
jmp 0x403fee
movsx ecx, byte [ebp - 0x140]
test ecx, ecx
jne 0x403fd7
cmp dword [ebp + 0x10], 0
je 0x403fd7
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x140]
push eax
call fcn.00406300
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.00404000
add esp, 0xc
mov ecx, dword [ebp - 4]
call fcn.004073a0
mov esp, ebp
pop ebp
ret
Function at 0x4041d0
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41b5f0]
mov dword [ebp - 8], eax
mov byte [ebp - 0x20d], 0
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov dl, byte [ebp + 0x14]
push edx
call fcn.004043a0
add esp, 0xc
mov dword [ebp - 0x20c], eax
movzx eax, byte [ebp - 0x20d]
test eax, eax
jne 0x404384
push 0x100
lea ecx, [ebp - 0x208]
push ecx
push 0x2d
mov edx, dword [0x41ca14]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.USER32.dll_CharToOemA]
mov edx, dword [ebp - 0x20c]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004069ae
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
push 0xff
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040773b
add esp, 0xc
test eax, eax
jne 0x404298
mov edx, dword [0x41ca48]
push edx
mov eax, dword [0x41ca18]
push eax
call fcn.004057f0
add esp, 8
push 1
call fcn.00407067
movsx ecx, byte [ebp - 0x108]
cmp ecx, 0xa
jne 0x4042b9
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 4], edx
mov byte [ebp - 0x20d], 1
jmp 0x40437f
lea eax, [ebp - 0x108]
push eax
call fcn.00406560
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404334
mov dword [ebp - 0x214], 0
jmp 0x4042ec
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
lea edx, [ebp - 0x108]
push edx
call fcn.00406c30
add esp, 4
cmp dword [ebp - 0x214], eax
jge 0x404334
mov eax, dword [ebp - 0x214]
movsx ecx, byte [ebp + eax - 0x108]
cmp ecx, 0x30
je 0x404332
mov edx, dword [ebp - 0x214]
movsx eax, byte [ebp + edx - 0x108]
cmp eax, 0xa
je 0x404332
mov dword [ebp - 4], 0xffffffff
jmp 0x404334
jmp 0x4042dd
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x218], ecx
cmp dword [ebp - 0x218], 0
jl 0x404363
cmp dword [ebp - 0x218], 2
jle 0x40435a
cmp dword [ebp - 0x218], 4
je 0x40435a
jmp 0x404363
mov byte [ebp - 0x20d], 1
jmp 0x40437f
push 0x2e
mov edx, dword [ebp + 0xc]
push edx
call fcn.004055c0
add esp, 8
push 0x2f
mov eax, dword [ebp + 0xc]
push eax
call fcn.004055c0
add esp, 8
jmp 0x404204
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.004073a0
mov esp, ebp
pop ebp
ret
Function at 0x404630
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x710
mov eax, dword [0x41b5f0]
mov dword [ebp - 4], eax
cmp dword [0x41c500], 0
je 0x4046de
mov eax, dword [0x41ca5c]
push eax
call fcn.00406c30
add esp, 4
cmp eax, 0x3ff
jbe 0x4046c0
push 0x100
lea ecx, [ebp - 0x510]
push ecx
push 0x3f
mov edx, dword [0x41ca14]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [0x41ca5c]
push eax
call fcn.00406c30
add esp, 4
push eax
push 0x3ff
lea ecx, [ebp - 0x510]
push ecx
lea edx, [ebp - 0x710]
push edx
call fcn.0040714d
add esp, 0x10
lea eax, [ebp - 0x710]
push eax
call fcn.00406ded
add esp, 4
push 1
call fcn.00407067
mov ecx, dword [0x41ca5c]
push ecx
push 0x41b1bc
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4046f7
mov eax, dword [ebp + 0xc]
push eax
push str.select__from__s_where__
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x408]
push edx
call fcn.00406c30
add esp, 4
cmp eax, 0x400
jb 0x404721
push 0x42
push str..._src_bcpgetsf.c
push str.sizeof_szCmd____strlen_szCmd_
call fcn.004077c6
add esp, 0xc
push 0xfffffffffffffffd
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.ODBC32.dll_SQLPrepare
movsx eax, ax
cmp eax, 0xffffffff
jne 0x404743
xor ax, ax
jmp 0x40485d
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.ODBC32.dll_SQLNumResultCols
movsx eax, ax
cmp eax, 0xffffffff
jne 0x404760
xor ax, ax
jmp 0x40485d
mov word [ebp - 0x40c], 1
jmp 0x404789
mov cx, word [ebp - 0x40c]
add cx, 1
mov word [ebp - 0x40c], cx
mov edx, dword [ebp + 0x14]
add edx, 0x9f
mov dword [ebp + 0x14], edx
movzx eax, word [ebp - 0x40c]
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
cmp eax, edx
jg 0x404859
push 0
push 0
push 0x81
mov eax, dword [ebp + 0x14]
push eax
push 1
mov cx, word [ebp - 0x40c]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.ODBC32.dll_SQLColAttributes
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push 0
push 0x4b0
mov cx, word [ebp - 0x40c]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.ODBC32.dll_SQLColAttributes
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x410]
mov dword [eax + 0x82], ecx
lea edx, [ebp - 0x410]
push edx
push 0
push 0
push 0
push 0x4ba
mov ax, word [ebp - 0x40c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.ODBC32.dll_SQLColAttributes
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x410]
mov dword [edx + 0x86], eax
lea ecx, [ebp - 0x410]
push ecx
push 0
push 0
push 0
push 0x4b4
mov dx, word [ebp - 0x40c]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.ODBC32.dll_SQLColAttributes
mov ecx, dword [ebp + 0x14]
mov dl, byte [ebp - 0x410]
mov byte [ecx + 0x8a], dl
jmp 0x40476b
mov ax, 1
mov ecx, dword [ebp - 4]
call fcn.004073a0
mov esp, ebp
pop ebp
ret