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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x4e22e4]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x2d]
mov esi, ecx
mov ebx, edx
push 0
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x34], 0
call fcn.00401f80
xor eax, eax
mov word [esp + 0x24], ax
lea edi, [esp + 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
test esi, esi
jne 0x43d416
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x43d422
lea eax, [esp + 0x18]
mov dword [esp + 0x10], eax
and dword [esp + 0xc], 0
mov esi, 0x15e
lea ebx, [esi - 0x64]
push 0x6a6
push str.ServerPAULA.c
mov edx, 0x4ae668
lea ecx, [esp + 0x30]
call fcn.0048d34e
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x43d4c0
lea edi, [esp + 0x28]
call fcn.0048e76e
test eax, eax
je 0x43d4a0
call fcn.0040237f
cdq
mov ecx, esi
idiv ecx
add edx, ebx
js 0x43d48d
call fcn.0040237f
cdq
mov ecx, esi
idiv ecx
add edx, ebx
cmp edx, 0x7fffffff
jge 0x43d48d
call fcn.0040237f
cdq
mov ecx, esi
idiv ecx
add edx, ebx
push edx
jmp 0x43d48f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 3
jl 0x43d42f
lea edi, [esp + 0x28]
call fcn.0048e76e
xor eax, eax
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
inc ebx
push ebx
push 0x10
push esi
mov dword [esp + 0x1c], ebx
call fcn.00402244
add esp, 0x10
cmp eax, ebx
jne 0x43d4f0
push edi
push ebx
push 0x10
push dword [esp + 0x1c]
call fcn.00402244
add esp, 0x10
cmp eax, ebx
je 0x43d4f5
and dword [esp + 0xc], 0
mov ecx, edi
call fcn.0048fc61
push ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041b0b3
add esp, 0x14
test eax, eax
je 0x43d4a9
mov esi, dword [esp + 0x10]
push ebx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041b0b3
add esp, 0x14
test eax, eax
je 0x43d4a9
xor eax, eax
cmp dword [esp + 0xc], eax
setne al
jmp 0x43d4ab
Function at 0x43d53e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x4e22e4]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x2d]
mov ebx, ecx
mov esi, edx
push 0
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
mov byte [esp + 0x34], 0
call fcn.00401f80
xor eax, eax
mov word [esp + 0x24], ax
lea edi, [esp + 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
test ebx, ebx
jne 0x43d5ae
test esi, esi
jne 0x43d5a0
xor eax, eax
inc eax
jmp 0x43d67d
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
xor edx, edx
mov ecx, eax
jmp 0x43d5c0
test esi, esi
jne 0x43d5cd
lea eax, [esp + 0x18]
mov dword [esp + 0x10], eax
mov esi, ebx
mov edx, eax
xor ecx, ecx
lea edi, [esp + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0043d3b8
and dword [esp + 0xc], 0
mov edi, 0x190
lea esi, [edi - 0x64]
push 0x669
push str.ServerPAULA.c
mov edx, 0x4ae7a4
lea ecx, [esp + 0x30]
call fcn.0048d34e
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x43d642
call fcn.0040237f
cdq
mov ecx, edi
idiv ecx
add edx, esi
js 0x43d62b
call fcn.0040237f
cdq
mov ecx, edi
idiv ecx
add edx, esi
cmp edx, 0x7fffffff
jge 0x43d62b
call fcn.0040237f
cdq
mov ecx, edi
idiv ecx
add edx, esi
push edx
jmp 0x43d62d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 3
jl 0x43d5da
xor eax, eax
jmp 0x43d67d
xor esi, esi
push ebx
inc esi
push esi
push 0x10
push dword [esp + 0x20]
call fcn.0040257f
add esp, 0x10
cmp eax, esi
jne 0x43d66d
push ebx
push esi
push 0x10
push dword [esp + 0x1c]
call fcn.0040257f
add esp, 0x10
cmp eax, esi
je 0x43d66f
xor esi, esi
mov ecx, ebx
call fcn.0048fc61
xor eax, eax
test esi, esi
setne al
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
Function at 0x441800
Capabilities:
Write file on windows

Disassembly:
push 0x10
push 0x4df910
call fcn.004085a0
or dword [ebp - 0x1c], 0xffffffff
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x4418b8
push 1
mov esi, 0xfffc
push esi
call fcn.00401a3a
mov edi, eax
push 1
push esi
call fcn.00401a3a
mov esi, eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffdc
push edi
call fcn.00402ce8
add esp, 0x24
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea eax, [edi + ecx]
mov dl, byte [eax]
cmp dl, 0xd
je 0x4418ab
cmp dl, 0xa
je 0x4418ab
add ecx, esi
mov word [ecx], 0x1d1c
mov word [ecx + 2], 0x1f1e
add ecx, 4
push ecx
call fcn.0044158e
pop ecx
push dword [ebp + 8]
push esi
call fcn.00401a80
pop ecx
push eax
push 1
push esi
call fcn.0040257f
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, 4
jle 0x44189b
sub dword [ebp - 0x1c], 4
push edi
call fcn.00401a00
push esi
call fcn.00401a00
pop ecx
pop ecx
jmp 0x4418b8
mov byte [esi + ecx], dl
inc ecx
jmp 0x441850
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.004085e5
ret

Function at 0x441a4b
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ebx, eax
test esi, esi
jns 0x441a5d
call fcn.00494ec5
mov esi, eax
test ebx, ebx
jns 0x441a68
call fcn.00494f5a
mov ebx, eax
test esi, esi
jle 0x441aaf
test ebx, ebx
jle 0x441aaf
push 1
push 0x1f8
call fcn.00401a3a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x441aaf
mov dword [edi], esi
imul esi, ebx
mov eax, esi
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + esi + 0x14]
push eax
push 4
mov dword [edi + 4], ebx
call fcn.00401a3a
pop ecx
pop ecx
mov dword [edi + 0x14], eax
test eax, eax
jne 0x441ab5
push edi
call fcn.00401a00
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor eax, eax
test esi, esi
jle 0x441ad2
mov ecx, dword [edi + 0x14]
mov byte [ecx + eax*4], 0x20
mov ecx, dword [edi + 0x14]
push 7
pop edx
mov word [ecx + eax*4 + 2], dx
inc eax
cmp eax, esi
jl 0x441abb
mov eax, dword [0x5e3e1c]
test eax, eax
jne 0x441afa
call fcn.00444592
mov dword [0x5e3e1c], eax
test eax, eax
jne 0x441afa
push dword [edi + 0x14]
call fcn.00401a00
push edi
call fcn.00401a00
pop ecx
jmp 0x441aae
mov ecx, dword [edi + 0x14]
lea ecx, [ecx + esi*4 + 4]
push 5
mov dword [edi + 0x24], ecx
add esi, 2
pop ecx
mov dword [edi + 0x20], esi
cmp esi, ecx
jge 0x441b14
mov dword [edi + 0x20], ecx
push edi
mov ebx, eax
mov dword [edi + 0x10], 7
mov word [edi + 0x1c], 0x709
call fcn.00444541
lea ebx, [edi + 0x38]
mov dword [esp], str.ScreenBuffer.c
push ebx
call fcn.0048a998
pop ecx
pop ecx
mov esi, str.A_ScreenBuffer_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.0048a823
mov eax, 0x7d0
mov ecx, ebx
call fcn.0048a810
mov eax, edi
call fcn.00441a28
mov eax, edi
jmp 0x441ab1
Function at 0x44904e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push edi
xor edi, edi
push 0x3e
lea eax, [ebp - 0x54]
push edi
push eax
mov dword [ebp - 0x58], edi
call fcn.00401f80
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 4], edi
call fcn.00439e45
test eax, eax
jne 0x4491f8
mov ecx, dword [ebp + 8]
push 0x15b9
push str.Printer.c
mov edx, 0x4ae7a4
call fcn.0048d34e
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 8], ebx
cmp ebx, edi
jne 0x4490b3
push dword [ebp + 8]
push str.PrinterSaveConfig___FAILED:_Could_not_open_the_given_file___s__for_writing.
call fcn.00492ffb
pop ecx
pop ecx
jmp 0x4491f8
push 0x15c0
push esi
call fcn.00448265
pop ecx
pop ecx
test eax, eax
je 0x4491f1
mov edx, esi
call fcn.00447721
test eax, eax
je 0x4491f1
push 0x42
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00401330
add esp, 0xc
push ebx
push 0x42
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.0040257f
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
add esp, 0x10
cmp dword [ebp - 0x50], edi
je 0x449170
push dword [esi + 0xc]
call ebx
push dword [esi + 0xc]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x449161
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 4], eax
cmp eax, edi
jle 0x449146
push dword [ebp - 8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call fcn.0040257f
push dword [ebp - 8]
push dword [ebp - 4]
push 1
push dword [ebp - 0xc]
call fcn.0040257f
add esp, 0x20
jmp 0x449156
push eax
push str.PrinterSaveConfig___encountered_a_problem:_GlobalSize___returned__ld_for_hDevMode:__GetLastError_
call fcn.00492ffb
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x449170
push str.PrinterSaveConfig___encountered_a_problem:_Could_not_GlobalLock___hDevMode_during_save___ld_:__GetLastError_
call fcn.00492ffb
pop ecx
pop ecx
mov dword [ebp - 0x50], edi
cmp dword [ebp - 0x4c], edi
je 0x4491dd
push dword [esi + 0x10]
call ebx
push dword [esi + 0x10]
mov ebx, eax
cmp ebx, edi
je 0x4491ce
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 4], eax
cmp eax, edi
jle 0x4491b3
push dword [ebp - 8]
lea eax, [ebp - 4]
push 4
push 1
push eax
call fcn.0040257f
push dword [ebp - 8]
push dword [ebp - 4]
push 1
push ebx
call fcn.0040257f
add esp, 0x20
jmp 0x4491c3
push eax
push str.PrinterSaveConfig___encountered_a_problem:_GlobalSize___returned__ld_for_hDevNames:__GetLastError_
call fcn.00492ffb
pop ecx
pop ecx
mov dword [ebp - 0x4c], edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x4491dd
push str.PrinterSaveConfig___encountered_a_problem:_Could_not_GlobalLock___hDevNames_during_save___ld_:__GetLastError_
call fcn.00492ffb
pop ecx
pop ecx
mov dword [ebp - 0x4c], edi
mov eax, esi
call fcn.00447714
mov ecx, dword [ebp - 8]
call fcn.0048fc61
xor eax, eax
inc eax
jmp 0x4491fa
mov ecx, ebx
call fcn.0048fc61
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x455191
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x4551ae
cmp dword [ebp + 0xc], 0
je 0x4551ae
cmp dword [ebp + 0xc], 0xffffffff
je 0x4551ae
call fcn.0045513f
mov dword [ebp + 8], eax
push ebx
push esi
mov esi, 0x5df228
push edi
mov edx, esi
call fcn.00439e45
mov edi, 0x104
test eax, eax
je 0x4551fe
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
push esi
push str.APPDATA
call ebx
test eax, eax
jne 0x4551f7
push edi
push esi
push str.SystemDrive
call ebx
test eax, eax
jne 0x4551fe
push 0x4c8764
mov ecx, edi
mov eax, esi
call fcn.00438c78
pop ecx
jmp 0x4551fe
mov byte [0x5df22a], 0
push esi
mov esi, 0x5df330
mov ecx, edi
mov eax, esi
call fcn.00438c78
mov ebx, dword [ebp + 8]
pop ecx
test ebx, ebx
je 0x455253
push esi
push ebx
call fcn.00401ba0
push esi
call fcn.00401a80
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x455251
cmp dword [ebp + 0xc], 0xffffffff
je 0x455251
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
sub edi, eax
add eax, ebx
push edi
push eax
call fcn.00402db4
add esp, 0x10
test eax, eax
jns 0x455251
mov byte [ebx + 0x103], 0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x455496
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10c], eax
cmp eax, ebx
jne 0x4554d1
cmp dword [ebp + 0xc], ebx
je 0x4554d1
cmp dword [ebp + 0xc], 0xffffffff
je 0x4554d1
call fcn.0045513f
mov dword [ebp - 0x10c], eax
mov eax, fcn.00455398
mov esi, 0x5df960
mov edi, 0x104
mov edx, esi
cmp eax, fcn.00455496
je 0x45552e
call fcn.00439e45
test eax, eax
jne 0x4554fe
cmp dword [0x5df220], ebx
je 0x4555d8
push edi
push ebx
push esi
call fcn.00401f80
push ebx
push ebx
mov dword [0x5df220], ebx
call fcn.00455398
push eax
push str._sPAULA_
push edi
push esi
call fcn.004394bf
push esi
call fcn.00401a80
add esp, 0x28
jmp 0x4555d3
call fcn.00439e45
test eax, eax
jne 0x455543
cmp dword [0x5df220], ebx
je 0x4555d8
push edi
push ebx
push esi
call fcn.00401f80
add esp, 0xc
push edi
lea eax, [ebp - 0x108]
push eax
mov dword [0x5df220], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.APPDATA
call ebx
test eax, eax
jne 0x4555a6
push edi
lea eax, [ebp - 0x108]
push eax
push str.USERPROFILE
call ebx
test eax, eax
jne 0x4555a6
push edi
lea eax, [ebp - 0x108]
push eax
push str.ProgramData
call ebx
test eax, eax
jne 0x4555a6
push str.C:ProgramData
mov ecx, edi
lea eax, [ebp - 0x108]
call fcn.00438c78
pop ecx
lea eax, [ebp - 0x108]
push 0x4b1e00
push eax
call fcn.00401bb0
lea eax, [ebp - 0x108]
push eax
push str._sPAULA_
push edi
push esi
call fcn.004394bf
push esi
call fcn.00401a80
add esp, 0x1c
mov dword [0x5df434], eax
mov ebx, 0x5dfa68
push esi
mov ecx, edi
mov eax, ebx
call fcn.00438c78
mov ecx, dword [0x5df434]
push esi
mov esi, 0x5dfb70
mov eax, esi
call fcn.00438c78
cmp dword [ebp - 0x10c], 0
pop ecx
pop ecx
jne 0x45560f
cmp dword [ebp + 0xc], 0xffffffff
je 0x455673
mov eax, ebx
jmp 0x455673
cmp dword [ebp + 0xc], 0xffffffff
jne 0x45562c
push esi
push dword [ebp - 0x10c]
call fcn.00401ba0
push esi
call fcn.00401a80
add esp, 0xc
jmp 0x45566d
push ebx
push dword [ebp - 0x10c]
call fcn.00401ba0
push ebx
call fcn.00401a80
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x45566d
mov esi, dword [ebp - 0x10c]
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
sub edi, eax
add eax, esi
push edi
push eax
call fcn.00402db4
add esp, 0x10
test eax, eax
jns 0x45566d
mov byte [esi + 0x103], 0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x45717d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x457252
cmp dword [esi + 4], ebx
jle 0x457252
push edi
call fcn.00444592
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jle 0x4571ff
lea eax, [esi + 0x40]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movsx ebx, word [eax]
mov edi, dword [ebp - 8]
call fcn.00444724
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x4571d3
movsx eax, word [edi]
mov ebx, dword [ebp - 8]
push eax
call fcn.00444541
pop ecx
cmp word [edi + 6], 0
jle 0x4571e9
movsx ebx, word [edi]
push 1
push dword [ebp - 8]
call fcn.004446c6
pop ecx
pop ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x90
mov dword [ebp - 0xc], edi
cmp eax, dword [esi + 4]
jl 0x4571b1
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jle 0x457244
lea eax, [esi + 0x63]
mov dword [ebp - 0xc], eax
jmp 0x457217
mov eax, dword [ebp - 0xc]
xor ebx, ebx
mov edi, dword [ebp - 8]
mov byte [eax], bl
movsx ebx, word [eax - 0x23]
call fcn.0044466f
test eax, eax
je 0x457232
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0x10]
mov byte [eax], 1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp - 0xc], 0x90
cmp eax, dword [esi + 4]
jl 0x457212
mov esi, dword [ebp - 8]
call fcn.00444555
mov eax, dword [ebp - 0x10]
pop edi
jmp 0x457255
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x462017
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, 0xff
push esi
xor ebx, ebx
lea eax, [ebp - 0x10b]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x114], edi
mov byte [ebp - 0x10c], 0
call fcn.00401f80
add esp, 0xc
cmp edi, ebx
je 0x46205f
mov eax, edi
call fcn.00438cf2
push ebx
call fcn.00461c64
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x462073
xor eax, eax
jmp 0x46215b
push str.SELECT_STORE_PROFILE.STORE_NUM__COMPANY.NAME_FROM_STORE_PROFILE__COMPANY_WHERE_STORE_PROFILE.COMPANY_IDCOMPANY.ID
push edi
mov dword [ebp - 0x110], ebx
call fcn.00460efd
pop ecx
pop ecx
test eax, eax
je 0x462148
push 2
push 9
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 0x118], ebx
call fcn.00460afc
add esp, 0x14
test eax, eax
je 0x46214e
mov ebx, 0x4b0644
cmp dword [ebp - 0x118], 0xde
jge 0x46214e
cmp dword [ebp - 0x110], 0
jne 0x462123
lea eax, [ebp - 0x10c]
push eax
call fcn.00403351
cmp dword [ebp - 0x114], 0
pop ecx
mov dword [ebp - 0x110], eax
je 0x462123
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.00401b10
pop ecx
pop ecx
test eax, eax
je 0x462123
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.00401b10
mov ecx, dword [ebp + 8]
inc eax
push eax
mov eax, dword [ebp - 0x114]
call fcn.00438c78
add esp, 0xc
call fcn.00439a2a
inc dword [ebp - 0x118]
push 2
push 9
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
call fcn.00460afc
add esp, 0x14
test eax, eax
jne 0x4620b6
jmp 0x46214e
mov dword [ebp - 0x110], ebx
push edi
call fcn.00460de8
mov eax, dword [ebp - 0x110]
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
Function at 0x462216
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
lea eax, [ebp - 0x47]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x50], esi
mov byte [ebp - 0x48], 0
call fcn.00401f80
add esp, 0xc
call fcn.0041a958
cmp esi, ebx
je 0x46224e
mov dword [esi], ebx
push ebx
call fcn.00461c64
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4622f4
mov ecx, edi
mov dword [ebp - 0x4c], ebx
call fcn.0046216a
push eax
push str.SELECT_TENDER_TYPE_ACCEPTED_FROM_TENDER_TYPE_PROFILE_WHERE_LOC_d
push edi
call fcn.00460efd
add esp, 0xc
test eax, eax
je 0x4622ca
push 1
push 9
push 0x3f
lea eax, [ebp - 0x48]
push eax
push edi
call fcn.00460afc
jmp 0x4622c0
cmp ebx, 0xde
jge 0x4622c7
lea esi, [ebp - 0x48]
call fcn.00439ed7
test eax, eax
je 0x4622ac
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
or dword [ebp - 0x4c], eax
push 1
push 9
push 0x3f
lea eax, [ebp - 0x48]
push eax
push edi
inc ebx
call fcn.00460afc
mov esi, dword [ebp - 0x50]
add esp, 0x14
test eax, eax
jne 0x46228e
mov ebx, dword [ebp - 0x4c]
push edi
call fcn.00460de8
pop ecx
test esi, esi
je 0x4622d7
mov dword [esi], ebx
test bl, 1
je 0x4622f4
test bl, 2
je 0x4622f4
test bl, 8
je 0x4622f0
test bl, 0x10
je 0x4622f0
test bl, 4
jne 0x4622f4
xor eax, eax
jmp 0x4622f7
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret

Function at 0x46602e
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
xor eax, eax
push 0x18e
push eax
mov word [ebp - 0x19c], ax
lea eax, [ebp - 0x19a]
push eax
call fcn.00401f80
add esp, 0xc
test esi, esi
je 0x4660a8
cmp dword [ebp + 8], 0
jle 0x4660a8
lea eax, [ebp - 0x19c]
push eax
push 0x101
mov byte [esi], 0
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x4660a4
push dword [ebp + 8]
push esi
call dword [sym.imp.WSOCK32.dll_gethostname]
mov edi, eax
call dword [sym.imp.WSOCK32.dll_WSACleanup]
test edi, edi
jne 0x4660a4
push esi
call fcn.00401a80
pop ecx
test eax, eax
jne 0x4660a8
xor eax, eax
jmp 0x4660aa
mov eax, esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop edi
call fcn.00401317
leave
ret
Function at 0x4660b7
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
xor edi, edi
call esi
cmp eax, 0x7a
jne 0x4660f6
push 1
push dword [ebp - 4]
call fcn.00401a3a
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x4660ee
xor eax, eax
jmp 0x466145
push ebx
lea eax, [ebp - 4]
push eax
push edi
call esi
cmp eax, ebx
je 0x466107
cmp edi, ebx
je 0x4660ea
push edi
call fcn.00401a00
pop ecx
jmp 0x4660ea
mov edx, dword [edi]
xor eax, eax
cmp edx, ebx
jle 0x46613c
lea ecx, [edi + 4]
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x46611f
cmp dword [ecx + 0x10], esi
jne 0x46612b
mov esi, dword [ecx]
cmp esi, dword [ebp + 8]
jne 0x46612b
cmp dword [ecx + 0xc], ebx
jne 0x466135
inc eax
add ecx, 0x38
cmp eax, edx
jl 0x466112
jmp 0x46613c
imul eax, eax, 0x38
mov ebx, dword [eax + edi + 0x10]
push edi
call fcn.00401a00
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x467303
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x2c], bl
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
stosw word es:[edi], ax
mov edx, esi
mov dword [ebp - 0x38], esi
stosb byte es:[edi], al
call fcn.00439e45
test eax, eax
jne 0x46740c
mov al, byte [esi]
cmp al, bl
je 0x467365
mov ecx, esi
cmp al, 0x2e
je 0x467365
cmp al, 0x3f
je 0x467405
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x467352
mov eax, esi
call fcn.004667e7
test eax, eax
je 0x46740c
mov eax, str._._._._
call fcn.004667e7
test eax, eax
je 0x46740c
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
mov dword [ebp - 0x34], ebx
call edi
cmp eax, 0x7a
jne 0x46740c
push 1
push dword [ebp - 0x34]
call fcn.00401a3a
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x46740c
push ebx
lea eax, [ebp - 0x34]
push eax
push esi
call edi
mov dword [ebp - 0x30], ebx
cmp dword [esi], ebx
jle 0x46742d
lea edi, [esi + 4]
mov ecx, dword [edi]
lea eax, [ebp - 0x18]
call fcn.00465fd5
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x2c]
call fcn.00465fd5
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x18]
call fcn.00466e6e
test eax, eax
je 0x467425
lea edx, [ebp - 0x2c]
mov ecx, str._._._._
call fcn.00466e6e
test eax, eax
je 0x467425
push edi
call dword [sym.imp.IPHLPAPI.DLL_DeleteIpForwardEntry]
test eax, eax
jne 0x46741e
inc dword [ebp - 0x30]
jmp 0x467425
mov byte [0x4f78e2], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
mov byte [0x4f78e3], 1
inc ebx
add edi, 0x38
cmp ebx, dword [esi]
jl 0x4673c0
push esi
call fcn.00401a00
mov eax, dword [ebp - 0x30]
pop ecx
jmp 0x46740f