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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x477568]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x44cb4f
push 0xa
pop esi
cmp word [ebx], si
jne 0x44cb4f
or byte [eax + edi + 0x28], 4
jmp 0x44cb54
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x44ccbf
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x44cc97
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x44cba1
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x44cbcb
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x44cbea
push 0xa
pop ebx
cmp word [edx], bx
jne 0x44cbb8
push ebx
add eax, 4
pop edx
jmp 0x44cbc0
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x44cb66
jmp 0x44ccbf
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44cc92
cmp dword [ebp - 0x14], 0
je 0x44cc92
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x477568]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x44cc6e
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x44cc36
mov word [esi], ax
jmp 0x44ccbc
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x477568]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x477568]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x477568]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x44ccbc
cmp word [ebp - 4], ax
jne 0x44cc78
cmp esi, ebx
je 0x44cc2e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044d54a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44ccbf
push 0xd
pop eax
jmp 0x44cc2e
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x477568]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x44ccb9
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x44ccbf
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44e7f9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x44e896
push ebx
push esi
call fcn.0044e7c2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0044a493
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44e843
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44e895
push edi
push eax
call fcn.00447cf0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44e863
call fcn.00446f20
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44e894
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044a493
add esp, 0x20
test eax, eax
jne 0x44e882
push edi
call fcn.00446f20
jmp 0x44e88a
push ebx
call fcn.00446f20
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4516b2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00446c88
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x451721
cmp esi, dword [ebp - 4]
je 0x45171c
cmp dword [ebp + 0xc], 0
je 0x45171c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4516f9
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00451207
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x451723
xor eax, eax
inc eax
jmp 0x451723
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45178e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x473140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00446c88
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00446c88
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x451805
cmp word [ecx], dx
je 0x451805
mov eax, dword [0x468564]
push edi
dec eax
push eax
push 0x468450
call fcn.00451727
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x451878
cmp word [eax], dx
je 0x451878
mov eax, dword [edi]
test eax, eax
je 0x451829
cmp word [eax], dx
je 0x451829
lea eax, [ebp - 0x10]
push eax
call fcn.0045110d
jmp 0x451832
lea eax, [ebp - 0x10]
push eax
call fcn.004511a8
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4518a2
mov eax, dword [0x46844c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x468140
call fcn.00451727
add esp, 0xc
test al, al
je 0x4518a2
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x45186d
cmp word [eax], di
je 0x45186d
lea eax, [ebp - 0x10]
push eax
call fcn.0045110d
pop ecx
jmp 0x4518a4
lea eax, [ebp - 0x10]
push eax
call fcn.004511a8
jmp 0x45186a
mov eax, dword [edi]
test eax, eax
je 0x45188f
cmp word [eax], dx
je 0x45188f
lea eax, [ebp - 0x10]
push eax
call fcn.004510c2
pop ecx
jmp 0x4518a2
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x45196d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004515ac
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x45196d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x45196d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x45196d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4518fa
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004499a4
test ebx, ebx
je 0x451968
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004499a4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45196d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45196d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00455e89
add esp, 0x10
xor eax, eax
inc eax
jmp 0x45196f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bd5e
leave
ret
Function at 0x456fa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x456fcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x456fcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a055
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov dword [0x456b0c], 1
cmp dword [0x456b08], 0
je 0x40a085
mov eax, dword [0x456b08]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40a11b
call fcn.00409f7c
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [0x456b04]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x454a24]
add esp, 8
mov dword [0x456b08], eax
lea ecx, [ebp - 0x874]
call fcn.0040bae0
lea eax, [ebp - 0x5f8]
push eax
call fcn.0041afca
add esp, 4
and eax, 0xff
test eax, eax
je 0x40a100
lea ecx, [ebp - 0x874]
push ecx
push 0
push 0x12dd
mov edx, dword [0x456b08]
push edx
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
cmp dword [0x456b08], 0
je 0x40a11b
mov eax, dword [0x456b08]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a3ab
add esp, 8
cmp dword [0x456b10], 0
je 0x40a135
mov edx, dword [0x456b10]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40a155
mov eax, dword [0x4562a8]
push eax
push 0x52000000
push 0x67
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004036e1
add esp, 0x14
mov dword [0x456b10], eax
cmp dword [0x454ad8], 0
jne 0x40a17b
push 0
mov edx, dword [0x456b10]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov eax, dword [0x456b08]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x456b24], 0
je 0x40a19c
mov ecx, dword [0x454ad8]
push ecx
push 0xff1
mov ecx, dword [0x456b24]
call dword [sym.imp.SEMSFC.dll_public:_int___thiscall_SToolBarCtrl::CheckButton_int__int_]
cmp dword [0x454ad8], 0
jne 0x40a1c2
mov edx, dword [0x456b18]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a1c2
mov eax, dword [0x456b18]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor ecx, ecx
cmp dword [0x454ad8], 0
sete cl
mov dword [0x454ad8], ecx
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.SEMSFC.dll_public:_void___thiscall_SRect::constructor_int__int__int__int_]
lea edx, [ebp - 0x10]
push edx
mov eax, dword [0x456298]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [ebp - 0x10]
call dword [sym.imp.SEMSFC.dll_public:_int___thiscall_SRect::Height_void_const]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.SEMSFC.dll_public:_int___thiscall_SRect::Width_void_const]
push eax
mov ecx, dword [0x456298]
push ecx
call fcn.00409155
add esp, 0xc
xor eax, eax
cmp dword [0x456b08], 0
setne al
mov esp, ebp
pop ebp
ret
Function at 0x40c6c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4579fc], 0
je 0x40c6da
xor eax, eax
cmp dword [0x457a00], 0
setne al
jmp 0x40c751
push str.HHCTRL.OCX
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4579fc], eax
cmp dword [0x4579fc], 0
je 0x40c712
push str.HtmlHelpA
mov eax, dword [0x4579fc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x457a00], eax
cmp dword [0x457a00], 0
jne 0x40c716
xor eax, eax
jmp 0x40c751
push 0x104
push 0
push 0x457a04
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0x457a04
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.HELP_
push 0x457a04
call sub.MSVCRT.dll_strcat
add esp, 8
mov eax, 1
pop ebp
ret
Function at 0x40ee90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40eea9
cmp dword [ebp + 0xc], 0
jne 0x40eead
xor eax, eax
jmp 0x40ef04
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ef02
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x40ef02
mov eax, dword [ebp + 8]
jmp 0x40ef04
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40ef10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40ef29
cmp dword [ebp + 0xc], 0
jne 0x40ef2d
xor eax, eax
jmp 0x40ef86
mov eax, dword [ebp + 8]
mov word [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ef84
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x40ef84
mov eax, dword [ebp + 8]
jmp 0x40ef86
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x422390
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0x26
je 0x4223a5
cmp dword [ebp + 8], 0x28
jne 0x4223f5
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.SEMSFC.dll_public:_class_SWnd____thiscall_SWnd::GetParent_void_]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0xd
mov ecx, dword [ebp - 0x10]
call fcn.0042211b
cmp dword [ebp - 8], 0
je 0x4223f0
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff
mov edx, dword [ebp + 0x10]
and edx, 0xffff
shl edx, 0x10
or ecx, edx
push ecx
mov eax, dword [ebp + 8]
push eax
push pe_nt_image_headers32
mov ecx, dword [ebp - 8]
call fcn.00426d40
jmp 0x422485
mov byte [ebp - 4], 0
cmp dword [ebp + 8], 9
jne 0x42241b
mov byte [ebp - 4], 1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x422419
mov dword [ebp + 8], 8
jmp 0x42242f
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0042211b
mov edx, dword [ebp - 4]
and edx, 0xff
test edx, edx
je 0x422485
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.SEMSFC.dll_public:_class_SWnd____thiscall_SWnd::GetParent_void_]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0xd
mov ecx, dword [ebp - 0x10]
call fcn.0042211b
cmp dword [ebp - 0xc], 0
je 0x422477
push 0x3b00
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.SEMSFC.dll_public:_class_SWnd____thiscall_SWnd::GetParent_void_]
mov ecx, eax
call dword [sym.imp.SEMSFC.dll_public:_class_SWnd____thiscall_SWnd::GetDlgItem_unsigned_int_]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x422485
mov ecx, dword [ebp - 0xc]
call fcn.00402690
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42eb72
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x1c], ecx
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x17f8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42ec10
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x1800], 0
je 0x42ebb5
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1800]
call fcn.00435b05
mov dword [ebp - 0xc], eax
push 1
mov ecx, dword [ebp - 0x1c]
call fcn.0043181c
cmp dword [ebp - 0xc], 0
jne 0x42ec10
mov ecx, dword [ebp - 0x1c]
add ecx, 0x78
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLIsConnDead]
add esp, 4
test eax, eax
jne 0x42ec10
mov ecx, dword [ebp - 0x1c]
call fcn.004318cf
and eax, 0xff
test eax, eax
jne 0x42ec10
push 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x17f8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42ec10
mov ecx, dword [ebp - 0x1c]
add ecx, 0x78
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLCancel]
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x17f8], 0
je 0x42ec8d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x88]
push ecx
push SysReAllocString
call fcn.0042f669
add esp, 8
push 0xa
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x17f8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42ec56
jmp 0x42ec8d
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebp - 8], 0x3e8
jle 0x42ec8b
mov byte [ebp - 4], 1
push 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x17f8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.0043160d
jmp 0x42ec8d
jmp 0x42ec1b
mov ecx, dword [ebp - 0x1c]
call fcn.0043537c
mov ecx, dword [ebp - 4]
and ecx, 0xff
test ecx, ecx
jne 0x42ecb2
mov edx, dword [ebp - 0x1c]
add edx, 0x78
push edx
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
mov eax, dword [ebp - 0x1c]
add eax, 0xc38
push eax
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dl, byte [ecx + 0x17fd]
test edx, edx
je 0x42ed25
mov ecx, dword [ebp - 0x1c]
call fcn.00431128
mov byte [ebp - 0x10], al
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x1800], 0
je 0x42ed25
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1800]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42ed11
push 1
mov ecx, dword [ebp - 0x14]
call fcn.00437200
mov dword [ebp - 0x20], eax
jmp 0x42ed18
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1800], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x435c7c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x20], 0
je 0x435c95
xor eax, eax
jmp 0x435d2f
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
push 0x435503
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x20], eax
mov dword [ebp - 8], 0
push 0xa
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x435cda
jmp 0x435d0b
push 0xa
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x435cef
jmp 0x435d0b
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebp - 8], 0x3e8
jle 0x435d09
mov eax, 0x80004005
jmp 0x435d2f
jmp 0x435cc5
mov ecx, dword [ebp - 0xc]
call fcn.00435b89
and eax, 0xff
test eax, eax
je 0x435d2d
push 0
mov ecx, dword [ebp - 0xc]
call fcn.00435b5d
mov eax, 0x80004005
jmp 0x435d2f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x435d33
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x28], 0
je 0x435d55
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x20], 0
jne 0x435d5a
mov eax, dword [ebp - 4]
jmp 0x435d9e
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x2710
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x435d93
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 4], 0x80004005
mov ecx, dword [ebp - 8]
call fcn.00436a27
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x435e21
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00435d33
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x435e52
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x10]
call fcn.00436a27
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x24], 0
je 0x435e72
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x28], 0
je 0x435e92
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x2c], 0
je 0x435eb2
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 4], 0
je 0x435ee2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
call fcn.0042a3f9
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x16c], 0
je 0x435f2b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x16c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x435f17
push 1
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
call dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x435f1e
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x16c], 0
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x66e91ec1
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x4e186a94
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219