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

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406205
mov eax, dword [0x40a8f0]
cmp eax, 0xffffffff
je 0x4061fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8f0], 0xffffffff
jmp 0x406278
cmp dword [0x42ff60], ebx
je 0x406278
cmp byte [0x42fb60], bl
je 0x406244
cmp dword [0x40a8f0], 0xffffffff
jne 0x40624d
push 4
push 0x40000000
push 0x42fb60
call fcn.00405bdc
cmp eax, 0xffffffff
mov dword [0x40a8f0], eax
je 0x406278
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8f0], 0xffffffff
je 0x406278
push esi
mov esi, 0x430780
push 0x40aac0
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a8f0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406428
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42e5cc], 0
push esi
jne 0x40645f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406439
mov dword [ecx*4 + 0x42e5c8], eax
inc ecx
cmp ecx, 0x100
jl 0x406434
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406490
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42e5c8]
xor eax, esi
inc ecx
dec edx
jne 0x406472
pop edi
not eax
pop esi
ret 0xc
Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0x14
and dword [eax + 0x77c4f10], 0xffffffc7
inc ebp
adc byte [esi], cl
add dh, dl
fld qword [ebp + 8]
fcomp qword [ebp + 0x401530]
mov esp, esp
sbb byte [ebx + 0x68], dl
pop ebp
and byte [esi + 0x33], dl
not byte [edi - 0x21]
loopne 0x407f44
jne 0x407f18
mov dword [ecx], esi
test ah, 5
mov edi, ebx
jp 0x407f33
mov eax, eax
or al, 0x8b
push ebp
or byte [0x5150ec45], ah
push edx
call [ebx - 3]
rol dword [eax], 0x60
pop ebp
add byte [eax + 0x5d], ah
or ah, bl
inc ebp
in al, dx
fdiv st(2), st(0)
xor dl, al
inc eax
add byte [eax - 0x3c], ch
or al, 0xdf
loopne 0x407f4d
les esp, [ebx + 0x15]
jb 0x407ee9
jae 0x407fae
cmp esi, dword [edi + 0x45ddf176]
invalid
fld qword [ebp + 0x62]
out 0x1d, al
xor dl, al
inc eax
push esi
fbld tbyte [ebx]
test ah, 0x17
dec esi
dec eax
fld qword [ebp - 0x14]
fmul qword [0x1e40c3f9]
lea eax, [ebp - 0x14]
push eax
sub esp, 8
jae 0x407fa0
and al, 0xff
adc eax, 0x3e1c118
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x403108]
les ecx, [esi + ecx*2]
fmul qword [0x40c300]
retf 0x35da
add dl, cl
fidiv dword [0x5d8b7f00]
and byte [ecx - 0x77abd5d0], dh
push cs
mov ecx, dword [ebp - 4]
inc ecx
cmp eax, dword [edx]
mov dword [ebp - 0x13], ecx
ja 0x407f62
cmp esp, dword [ebx]
and eax, 0x6373f33b
mov dh, byte [ebx - 0x78]
xor byte [edi + 0x46], al
cmp esi, eax
lodsb al, byte [esi]
imul bl
push eax
fld qword [ebp + 8]
fsub qword [ebx]
xor dl, al
inc eax
add bh, bl
loopne 0x407ffe
add byte [ecx], ch
in al, dx
add byte [ebp + 0x845dd2a], ch
or eax, 0x624001f8
ljmp 0x80dc
or eax, 0x40c2f8
dec esi
fstp dword [ebx - 0x3dd7e224]
inc eax
add bh, bl
loopne 0x407fa2
xchg edx, eax
add eax, 0x5dc0e77b
mov dword ss:[ebp - 4], esi
jmp 0x40801d
mov eax, dword [ebp + 0x10]
dec esi
jae 0x40803b
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x40802d
add esi, dword [ebp - 4]
mov edi, dword [esi + 0x14]
imul esi, ebx, 0x458b1373
adc byte [edi - 0x68], bl
xchg esp, eax
mov dword [ebp - 0x74ebfc3a], esi
mov ch, 0xc6
add edx, dword [ebx + ecx*4]
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x961008], 0x8088405
inc edx
mov dword [ebx + 0x961008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d330
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d361
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d349
add dl, dl
jne 0x41d36c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d3bd
xor eax, eax
add dl, dl
jne 0x41d379
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d45a
add dl, dl
jne 0x41d388
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d393
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d39e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3a9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d3b3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d358
mov eax, 1
add dl, dl
jne 0x41d3cb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d3d6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3c2
sub eax, ebx
mov ebx, 1
jne 0x41d409
mov ecx, 1
add dl, dl
jne 0x41d3ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3e6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d358
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d420
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d42b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d417
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d358
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d47b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d358
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x944a8e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f5ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f60e
mov ecx, edx
add ecx, ebx
jmp 0x41f60e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f60e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f680
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f669
test esi, esi
jbe 0x41f680
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f65b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f680
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f638
jmp 0x41f680
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f680
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x944a95
ret
Function at 0x4207ec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x945e07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420827
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420840
lea eax, [ebp - 0x10]
mov edx, dword [0x96377c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420853
lea eax, [ebp - 0x10]
mov edx, dword [0x96377c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42085f
adc edx, 0
mov edx, dword [edx*4 + 0x962568]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4209d9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4209cc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4209cc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42096a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42096a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42096a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42096a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4209cc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4209cc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4209cc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4209cc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4209cc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4209f1
inc ebx
cmp ebx, 0x19
jne 0x420819
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x945e0e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4028c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 8]
mov word [eax + 8], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0xa]
mov word [eax + 0xa], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0xc]
mov word [eax + 0xc], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0xe]
mov word [eax + 0xe], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x10]
mov word [eax + 0x10], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x12]
mov word [eax + 0x12], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x20]
mov word [eax + 0x20], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x22]
mov word [eax + 0x22], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x24]
mov word [eax + 0x24], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x26]
mov word [eax + 0x26], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x28]
mov word [eax + 0x28], dx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov eax, dword [ebp + 8]
add eax, 0x34
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call sub.mfc42.dll_CString::CString
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0x38
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.00401185
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0x44
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call sub.mfc42.dll_CString::CString
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x41c6ec
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x403fe0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x40c], 0
push 0x400
push 0
lea eax, [ebp - 0x400]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x408], 0
push 0x14
push 0
lea ecx, [ebp - 0x420]
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x428], 0xfffffffd
mov edx, dword [ebp + 8]
push edx
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0x15
jbe 0x40404e
xor eax, eax
jmp 0x404250
push 0x4211e8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.msvcrt.dll_strstr]
add esp, 8
test eax, eax
je 0x40406b
xor eax, eax
jmp 0x404250
push 0x4211ec
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.msvcrt.dll_strstr]
add esp, 8
test eax, eax
je 0x404088
xor eax, eax
jmp 0x404250
mov edx, dword [ebp + 8]
push edx
push str.SELECT_nServerNo__strServerIP_FROM_CURRENTUSER_WHERE_strAccountID___s
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x40c]
push ecx
mov edx, dword [ebp - 0x42c]
mov eax, dword [edx + 8]
push eax
push 3
call sub.odbc32.dll_SQLAllocHandle
mov word [ebp - 0x404], ax
movsx ecx, word [ebp - 0x404]
test ecx, ecx
je 0x4040d2
xor eax, eax
jmp 0x404250
push 0x400
lea edx, [ebp - 0x400]
push edx
mov eax, dword [ebp - 0x40c]
push eax
call sub.odbc32.dll_SQLExecDirectA
mov word [ebp - 0x404], ax
movsx ecx, word [ebp - 0x404]
test ecx, ecx
je 0x40410c
movsx edx, word [ebp - 0x404]
cmp edx, 1
jne 0x4041af
mov eax, dword [ebp - 0x40c]
push eax
call sub.odbc32.dll_SQLFetch
mov word [ebp - 0x404], ax
movsx ecx, word [ebp - 0x404]
test ecx, ecx
je 0x404136
movsx edx, word [ebp - 0x404]
cmp edx, 1
jne 0x4041a0
lea eax, [ebp - 0x428]
push eax
push 0
lea ecx, [ebp - 0x408]
push ecx
push 0xfffffffffffffff1
push 1
mov edx, dword [ebp - 0x40c]
push edx
call sub.odbc32.dll_SQLGetData
lea eax, [ebp - 0x428]
push eax
push 0x14
lea ecx, [ebp - 0x420]
push ecx
push 1
push 2
mov edx, dword [ebp - 0x40c]
push edx
call sub.odbc32.dll_SQLGetData
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.msvcrt.dll__mbscpy
add esp, 8
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x408]
mov dword [edx], eax
mov dword [ebp - 0x424], 1
jmp 0x4041aa
mov dword [ebp - 0x424], 0
jmp 0x40423c
mov ecx, dword [ebp - 0x40c]
push ecx
call fcn.004045a0
add esp, 4
cmp eax, 0xffffffff
jne 0x404232
mov ecx, dword [ebp - 0x42c]
add ecx, 4
mov edx, dword [ebp - 0x42c]
mov eax, dword [edx + 4]
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x42c]
add ecx, 4
call fcn.004058b0
test eax, eax
jne 0x404232
mov ecx, dword [ebp - 0x42c]
mov edx, dword [ecx + 0x64]
add edx, 0x3a8
push edx
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax + 0x64]
add ecx, 0x388
push ecx
mov edx, dword [ebp - 0x42c]
mov eax, dword [edx + 0x64]
add eax, 0x368
push eax
mov ecx, dword [ebp - 0x42c]
add ecx, 4
push ecx
mov ecx, dword [ebp - 0x42c]
call fcn.00402e1e
xor eax, eax
jmp 0x404250
mov dword [ebp - 0x424], 0
mov edx, dword [ebp - 0x40c]
push edx
push 3
call sub.odbc32.dll_SQLFreeHandle
mov eax, dword [ebp - 0x424]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407df0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov dword [ebp - 0x1ac], ecx
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x1ac]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp + 8]
shl ecx, 2
push ecx
call sub.mfc42.dll_operatornew
add esp, 4
mov dword [ebp - 0x1a0], eax
mov edx, dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x1a0]
mov dword [edx + 0x2c], eax
mov dword [ebp - 0x198], 0
jmp 0x407e56
mov ecx, dword [ebp - 0x198]
add ecx, 1
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x198]
cmp edx, dword [ebp + 8]
jge 0x407e79
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0x198]
mov dword [ecx + edx*4], 0
jmp 0x407e47
mov eax, dword [ebp + 8]
shl eax, 2
push eax
call sub.mfc42.dll_operatornew
add esp, 4
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1a4]
mov dword [ecx + 0x30], edx
mov dword [ebp - 0x198], 0
jmp 0x407eb8
mov eax, dword [ebp - 0x198]
add eax, 1
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x198]
cmp ecx, dword [ebp + 8]
jge 0x407edb
mov edx, dword [ebp - 0x1ac]
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp - 0x198]
mov dword [eax + ecx*4], 0
jmp 0x407ea9
mov edx, dword [ebp + 0xc]
shl edx, 2
push edx
call sub.mfc42.dll_operatornew
add esp, 4
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0x1a8]
mov dword [eax + 0x34], ecx
mov dword [ebp - 0x198], 0
jmp 0x407f1a
mov edx, dword [ebp - 0x198]
add edx, 1
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x198]
cmp eax, dword [ebp + 0xc]
jge 0x407f3d
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp - 0x198]
mov dword [edx + eax*4], 0
jmp 0x407f0b
mov dword [ebp - 0x198], 0
jmp 0x407f58
mov ecx, dword [ebp - 0x198]
add ecx, 1
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x198]
cmp edx, dword [ebp + 8]
jge 0x407f7a
lea eax, [ebp - 0x198]
push eax
mov ecx, dword [ebp - 0x1ac]
add ecx, 0x20
call fcn.004089a0
jmp 0x407f49
push 0x422330
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x1ac]
call fcn.00408443
mov ecx, dword [ebp - 0x1ac]
call fcn.00408524
mov word [ebp - 0x19c], 0x202
lea edx, [ebp - 0x194]
push edx
mov ax, word [ebp - 0x19c]
push eax
call dword [sym.imp.ws2_32.dll_WSAStartup]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408408
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 4
mov ecx, dword [ebp - 8]
push ecx
push 0x407310
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
push 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.kernel32.dll_SetThreadPriority]
mov esp, ebp
pop ebp
ret

Function at 0x408443
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5dec
call fcn.0041a560
mov dword [ebp - 0x5dec], ecx
push 0xf
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
lea eax, [ebp - 0x5de4]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
cmp dword [ebp + 8], 0
jne 0x40848b
mov ecx, dword [ebp - 0x5dd0]
shl ecx, 1
mov edx, dword [ebp - 0x5dec]
mov dword [edx + 0x38], ecx
jmp 0x408497
mov eax, dword [ebp - 0x5dec]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x38], ecx
mov edx, dword [ebp - 0x5dec]
mov eax, dword [ebp - 0x5dd0]
mov dword [edx + 0x3c], eax
push 0xa
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateIoCompletionPort]
mov ecx, dword [ebp - 0x5dec]
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x5de8], 0
jmp 0x4084d8
mov edx, dword [ebp - 0x5de8]
add edx, 1
mov dword [ebp - 0x5de8], edx
mov eax, dword [ebp - 0x5dec]
mov ecx, dword [ebp - 0x5de8]
cmp ecx, dword [eax + 0x38]
jge 0x40851e
mov edx, dword [ebp - 0x5de8]
lea eax, [ebp + edx*4 - 0x2ee0]
push eax
push 0
mov ecx, dword [ebp - 0x5dec]
push ecx
push 0x407662
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov edx, dword [ebp - 0x5de8]
mov dword [ebp + edx*4 - 0x5dc0], eax
jmp 0x4084c9
mov esp, ebp
pop ebp
ret 4

Function at 0x408524
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5dc8
call fcn.0041a560
mov dword [ebp - 0x5dc8], ecx
push 0xa
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateIoCompletionPort]
mov ecx, dword [ebp - 0x5dc8]
mov dword [ecx + 0x10], eax
mov dword [ebp - 0x5dc4], 0
jmp 0x408569
mov edx, dword [ebp - 0x5dc4]
add edx, 1
mov dword [ebp - 0x5dc4], edx
mov eax, dword [ebp - 0x5dc8]
mov ecx, dword [ebp - 0x5dc4]
cmp ecx, dword [eax + 0x3c]
jge 0x4085af
mov edx, dword [ebp - 0x5dc4]
lea eax, [ebp + edx*4 - 0x2ee0]
push eax
push 0
mov ecx, dword [ebp - 0x5dc8]
push ecx
push 0x4078f1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov edx, dword [ebp - 0x5dc4]
mov dword [ebp + edx*4 - 0x5dc0], eax
jmp 0x40855a
mov esp, ebp
pop ebp
ret
Function at 0x409bbd
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ws2_32.dll_accept]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x14], 0xffffffff
jne 0x409c27
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
mov eax, 1
test eax, eax
je 0x409c02
mov dword [ebp - 0x10], 0
jmp 0x409c16
mov ecx, dword [ebp - 8]
push ecx
push str.Socket_Accepting_Fail____d_n
call fcn.00404590
add esp, 8
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.ws2_32.dll_closesocket]
xor eax, eax
jmp 0x409c55
mov word [ebp - 4], 1
mov word [ebp - 2], 0
push 4
lea ecx, [ebp - 4]
push ecx
push 0x80
push 0xffff
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.ws2_32.dll_setsockopt]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41147b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov dword [ebp - 0x164], ecx
mov eax, dword [ebp + 0xc]
push eax
push 0x160
lea ecx, [ebp - 0x160]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.shell32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x15c]
mov esp, ebp
pop ebp
ret 8

Function at 0x411e1f
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov dword [ebp - 0x168], ecx
push 0x4001
push 0x160
lea eax, [ebp - 0x160]
push eax
push 0
push 0x421bd8
call dword [sym.imp.shell32.dll_SHGetFileInfoA]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
je 0x411e79
mov ecx, dword [ebp - 0x164]
push ecx
push 0
push 0x1109
mov edx, dword [ebp - 0x168]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.user32.dll_SendMessageA]
mov esp, ebp
pop ebp
ret