joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401730
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
mov ebx, 0xffffffff
push ecx
sub esp, 0x10
mov eax, dword [ecx]
lock xadd dword [eax + 8], ebx
dec ebx
je 0x401760
lea esp, [ebp - 8]
mov eax, ebx
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4

Function at 0x401940
Capabilities:
Enumerate files on windows
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x26c
cmp word [eax], 0
je 0x401961
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401958
sub eax, ebx
mov ecx, 0x2a
sar eax, 1
mov edx, eax
mov eax, 0x418894
jmp 0x40197c
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401978
sub eax, 0x418894
mov dword [esp + 4], 0
sar eax, 1
lea eax, [edx + eax + 1]
add eax, eax
mov dword [esp + 8], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x401a6c
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x4019c8
mov dword [esp + 4], 0x418894
mov dword [esp], esi
call sym._lstrcatW_8
lea eax, [ebp - 0x268]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
mov edi, eax
cmp eax, 0xffffffff
je 0x401a48
lea esi, [esi]
nop
mov ecx, 0xffffffff
lea edx, [ebp - 0x23c]
mov eax, ebx
call sym._add_launcher
lea eax, [ebp - 0x268]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x401a10
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408410
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
cmp dword [eax + 0x3b0], 3
ja 0x4084b0
mov edx, dword [eax + 0x18]
mov esi, edi
test byte [0x412114], 8
jne 0x408480
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendNotifyMessageW]
sub esp, 0x10
mov esi, eax
test eax, eax
jne 0x40846b
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x578
je 0x4084e8
lea esp, [ebp - 0xc]
mov esi, 1
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.relaying_0x_x_n
mov dword [esp + 8], str.notify_owner
mov dword [esp + 4], 0x412114
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0_4
mov edx, dword [ebp - 0x1c]
jmp 0x408438
lea eax, [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [0x412664]
mov dword [esp], eax
call dword [sym.imp.user32.dll_ClientToScreen]
mov eax, dword [ebp + 0xc]
movzx edx, word [ebp + 8]
mov esi, dword [ebx + 0x18]
sub esp, 8
shl eax, 0x10
or edx, eax
shl esi, 0x10
movzx eax, di
or esi, eax
jmp 0x40842f
test byte [0x412114], 4
jne 0x408548
mov eax, ebx
call sym._hide_icon.isra.0
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DestroyIcon]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], str.application_window_was_destroyed__removing_icon__u_n
mov dword [esp + 8], str.notify_owner
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x412114
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x4084f1
Function at 0x409d20
Capabilities:
Enumerate pe sections

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], ebx
mov edi, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ecx + 0x18]
mov dword [ebp - 0x34], esi
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0x1c]
test byte [0x4120c4], 8
jne 0x409dd0
lea edx, [ebp - 0x1c]
xor eax, eax
call sym._get_typeinfo
mov edx, eax
test eax, eax
js 0x409dbe
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [edx]
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x30]
mov dword [esp], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x18], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x14], ebx
mov dword [esp + 4], eax
call dword [ecx + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x2c]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x24
movzx ecx, word [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x409ec0
mov ecx, eax
mov dword [ebp - 0x40], edx
shr ecx, 0x10
je 0x409ea8
movzx ecx, byte [eax + 0xf]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [eax + 0xe]
mov dword [esp + 0x28], ecx
movzx ecx, byte [eax + 0xd]
mov dword [esp + 0x24], ecx
movzx ecx, byte [eax + 0xc]
mov dword [esp + 0x20], ecx
movzx ecx, byte [eax + 0xb]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [eax + 0xa]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax + 9]
mov dword [esp + 0x14], ecx
movzx ecx, byte [eax + 8]
mov dword [esp + 0x10], ecx
movzx ecx, word [eax + 6]
mov dword [esp + 0xc], ecx
movzx ecx, word [eax + 4]
mov dword [esp + 8], ecx
mov eax, dword [eax]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._ld__s__ld__08x__p__p__p__p_n
mov dword [esp + 8], str.shellwindows_Invoke
mov dword [esp + 4], 0x4120c4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x409d63
movzx eax, ax
mov dword [esp], str._guid_0x_04hx_
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, dword [ebp - 0x40]
jmp 0x409e52
mov eax, 0x41326c
jmp 0x409e52
Function at 0x40e5e0
Capabilities:
Enumerate pe sections

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x34], ebx
mov edi, dword [ecx + 0x20]
mov dword [ebp - 0x30], eax
mov ebx, dword [ecx + 0x18]
mov dword [ebp - 0x38], esi
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0x1c]
test byte [0x4120c4], 8
jne 0x40e698
lea edx, [ebp - 0x1c]
mov eax, 1
call sym._get_typeinfo
mov edx, eax
test eax, eax
js 0x40e681
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx]
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x34]
mov dword [esp], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 4], eax
call dword [ecx + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x2c]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x24
movzx ecx, word [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x40e790
mov ecx, eax
mov dword [ebp - 0x40], edx
shr ecx, 0x10
je 0x40e778
movzx ecx, byte [eax + 0xf]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [eax + 0xe]
mov dword [esp + 0x28], ecx
movzx ecx, byte [eax + 0xd]
mov dword [esp + 0x24], ecx
movzx ecx, byte [eax + 0xc]
mov dword [esp + 0x20], ecx
movzx ecx, byte [eax + 0xb]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [eax + 0xa]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax + 9]
mov dword [esp + 0x14], ecx
movzx ecx, byte [eax + 8]
mov dword [esp + 0x10], ecx
movzx ecx, word [eax + 6]
mov dword [esp + 0xc], ecx
movzx ecx, word [eax + 4]
mov dword [esp + 8], ecx
mov eax, dword [eax]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__p_____ld__s__ld__08x__p__p__p__p__n
mov dword [esp + 8], str.webbrowser_Invoke
mov dword [esp + 4], 0x4120c4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40e623
movzx eax, ax
mov dword [esp], str._guid_0x_04hx_
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, dword [ebp - 0x40]
jmp 0x40e71a
mov eax, 0x41326c
jmp 0x40e71a
Function at 0x411540
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x4115db
cmp ax, 9
je 0x4115c8
cmp ax, 0x20
je 0x4115c8
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x411630
cmp ax, 0x22
je 0x411640
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x4115db
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x411580
test edi, 1
jne 0x411580
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x4115c8
cmp ax, 0x20
je 0x4115c8
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x411658
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
inc dword [ebp - 0x6c]
jmp 0x41159b
and dword [ebp - 0x6c], 1
jne 0x411594
xor edi, 1
jmp 0x41159b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x4115f4

Function at 0x411670
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x40db80
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4143d8], 0
jne 0x40dc01
cmp dword [0x4143f8], 0
jne 0x40dbb0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4143f8], eax
test eax, eax
jne 0x40dbb0
push str.GetEnvironmentStrings_failed
call fcn.0040cbf0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4143f8]
jmp 0x40dbc4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dbbc
lea edi, [ebp + 1]
push edi
call fcn.00405c3c
pop ecx
mov ebx, eax
mov dword [0x4143dc], ebx
test ebx, ebx
jne 0x40dbee
xor eax, eax
jmp 0x40dcc4
push edi
mov edx, dword [0x4143f8]
push edx
push ebx
call fcn.004069b8
add esp, 0xc
jmp 0x40dc21
xor esi, esi
mov ebx, dword [0x4143d8]
jmp 0x40dc1b
push eax
call fcn.00406b08
pop ecx
test eax, eax
jne 0x40dc17
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc0b
lea ebx, [esi + 4]
push 4
mov dword [0x4143e0], ebx
inc ebx
push ebx
call fcn.00405a3c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40dc44
xor eax, eax
jmp 0x40dcc4
cmp dword [0x4143d8], 0
jne 0x40dc75
xor esi, esi
mov ebx, dword [0x4143dc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40dc66
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dc5c
jmp 0x40dca6
xor esi, esi
mov ebx, dword [0x4143d8]
mov eax, dword [esp]
mov edi, eax
jmp 0x40dca0
push eax
call fcn.00406b08
pop ecx
test eax, eax
je 0x40dc95
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40dc99
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc84
mov eax, dword [0x4143d8]
test eax, eax
je 0x40dcb6
push eax
call fcn.00405c4c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4143d8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x401738
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x433fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
mov esi, ecx
push edi
push str.RFLogin.exe
lea ecx, [esp + 0x14]
call fcn.00419ad9
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
mov edx, dword [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push edx
mov dword [esp + 0x98], 0
mov dword [esp + 0x4c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4018aa
mov eax, dword [esp + 0x14]
push ebx
push ebp
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x44cf58]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea edi, [esi + 0x90]
push 0xffffffffffffffff
push 0
mov ecx, edi
mov byte [esp + 0x80], 2
call fcn.004172ee
mov ecx, esi
call fcn.00405d50
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.00419ba8
mov ecx, dword [esp + 0x10]
push 0xa
lea ebp, [esi + 0x20]
push 0
push ecx
push ebp
call fcn.00419fe3
mov edx, dword [esp + 0x10]
push 0xa
push 1
lea eax, [esi + 0x24]
push edx
push eax
call fcn.00419fe3
mov ecx, dword [esp + 0x10]
push 0xa
push 2
lea edx, [esp + 0x1c]
push ecx
push edx
mov ebx, 3
call fcn.00419fe3
test eax, eax
je 0x401852
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x401839
mov eax, dword [edi + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.00417437
mov edx, dword [esp + 0x10]
mov eax, ebx
push 0xa
push eax
lea eax, [esp + 0x1c]
push edx
push eax
inc ebx
call fcn.00419fe3
test eax, eax
jne 0x40181e
mov ecx, esi
call fcn.00405d60
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 1
call fcn.00419a6b
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], 0
call fcn.00419a6b
mov ecx, dword [ebp]
xor edx, edx
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x18]
test eax, eax
setne dl
mov esi, edx
call fcn.00419a6b
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x70], 0xffffffff
call fcn.00419a6b
mov ecx, dword [esp + 0x68]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x40ae7d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44dcb0
cmp edx, dword [eax]
je 0x40ae9f
add eax, 8
inc ecx
cmp eax, 0x44dd40
jl 0x40ae90
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44dcb0]
jne 0x40afcd
mov eax, dword [0x45b0a4]
cmp eax, 1
je 0x40afa7
test eax, eax
jne 0x40aed0
cmp dword [0x44d7e4], 1
je 0x40afa7
cmp edx, 0xfc
je 0x40afcd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40af07
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040afd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040b0c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40af4a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040b0c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43b3e8
push edi
call fcn.0040d2e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040afd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040afe0
lea eax, [ebp - 0xa0]
push 0x43b3c8
push eax
call fcn.0040afe0
push dword [esi + 0x44dcb4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040afe0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d257
add esp, 0x2c
pop edi
jmp 0x40afcd
lea eax, [ebp + 8]
lea esi, [esi + 0x44dcb4]
push 0
push eax
push dword [esi]
call fcn.0040b0c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40eea4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa6c
push esi
push edi
push str.IsLoginValid
lea eax, [ebp - 0x26c]
push str.broright.c
push eax
call fcn.0040f00a
push dword [ebp + 0x10]
lea eax, [ebp - 0xa6c]
push 0x45c9e0
push dword [ebp + 0xc]
push str.SELECT_A.MYRIGHTS_FROM_RF30.RFRIGHTS_A_WHERE_A.USERID___s_AND_A.DATASET___s_AND_A.TOOLID___s
push eax
call fcn.00406fa2
lea eax, [ebp - 0xa6c]
push 0xfffffffffffffffd
push eax
push dword [0x45cce8]
call fcn.0040ec9a
add esp, 0x2c
test ax, ax
je 0x40ef1e
push dword [0x45cce8]
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.0040e98e
add esp, 0xc
jmp 0x40efa8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x6c]
push 0x65
push eax
push 1
push 1
push dword [0x45cce8]
call sub.ODBC32.dll_SQLBindCol
push dword [0x45cce8]
call sub.ODBC32.dll_SQLFetch
movsx eax, ax
test eax, eax
je 0x40efcd
cmp eax, 0x64
je 0x40ef67
push dword [0x45cce8]
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x46c]
jmp 0x40ef10
lea eax, [ebp - 0x12e]
push str.You_do_not_have_permission
push eax
mov word [ebp - 0x26c], 0x1e61
call fcn.0040afd0
lea eax, [ebp - 0x10f]
push str._to_access_this_tool.
push eax
call fcn.0040afd0
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x66c]
push eax
call fcn.0040f03a
add esp, 0x18
mov edx, 0x80
mov esi, eax
mov ecx, edx
lea edi, [ebp - 0x46c]
rep movsd dword es:[edi], dword [esi]
cmp word [ebp - 0x46c], 0
mov ecx, edx
je 0x40eff9
lea esi, [ebp - 0x46c]
jmp 0x40efff
xor ecx, ecx
cmp byte [ebp + ecx - 0x6c], 0x35
lea eax, [ebp + ecx - 0x6c]
setge dl
add edx, 0x30
inc ecx
cmp ecx, 0x64
mov byte [eax], dl
jl 0x40efcf
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x14]
call fcn.0040afd0
pop ecx
pop ecx
mov ecx, 0x80
lea esi, [ebp - 0x26c]
mov eax, dword [ebp + 8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
leave
ret
Function at 0x40f427
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
push str.GetDataSet
lea eax, [ebp - 0x200]
push str.brodset.c
push eax
call fcn.0040f00a
mov esi, dword [ebp + 0xc]
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
jne 0x40f4c1
lea eax, [ebp - 0xc2]
push str.data_set_pointer
push eax
mov word [ebp - 0x200], 0x13f8
call fcn.0040afd0
lea eax, [ebp - 0xa3]
push str.NULL
push eax
call fcn.0040afd0
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.0040f03a
mov edx, 0x80
mov esi, eax
mov ecx, edx
lea edi, [ebp - 0x400]
add esp, 0x18
rep movsd dword es:[edi], dword [esi]
cmp word [ebp - 0x400], bx
mov ecx, edx
je 0x40f55a
lea esi, [ebp - 0x400]
jmp 0x40f560
mov edi, 0x105
lea eax, [esi + 0x82]
push edi
push ebx
push eax
call fcn.00407280
push edi
lea eax, [esi + 0x187]
push ebx
push eax
mov word [esi + 0x80], bx
call fcn.00407280
add esp, 0x18
push str.RFU30
push 0x1a
push esi
push 0x458ff4
push str.Data_Set
push str.Data_Set_Section
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
call fcn.0040b0c0
test eax, eax
pop ecx
jne 0x40f52d
mov edi, 0x44e8e8
push edi
push esi
call fcn.0040afd0
lea eax, [esi + 0x1a]
push edi
push eax
call fcn.0040afd0
add esp, 0x10
push esi
push 0x45c9e0
call fcn.0040afd0
pop ecx
pop ecx
call fcn.00411717
xor ecx, ecx
cmp eax, 1
setg cl
mov word [0x45ccc0], cx
mov word [0x45cc6c], bx
mov ecx, 0x80
lea esi, [ebp - 0x200]
mov eax, dword [ebp + 8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret