joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c652e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x5c6550
cmp dword [edi + 0x3c], 0
jne 0x5c6550
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005db9e6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.005c657d
pop edi
pop esi
pop ebx
ret 8

Function at 0x5c65cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.005db9e6
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5c65fc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.005c660f
pop edi
pop esi
pop ebx
ret 8

Function at 0x5c7c25
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5c7c5d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005c558b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005c5563
jmp 0x5c7c69
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5c97c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5c9803
call fcn.005db9e6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5c9803
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5c97fa
xor eax, eax
jmp 0x5c980b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005c9811
pop edi
pop esi
pop ebx
ret 4

Function at 0x5da1a2
Capabilities:
Create http request

Disassembly:
mov eax, 0x602ae4
call fcn.004b16e8
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x5da1da
call fcn.005db9e6
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x5da1ff
push eax
push dword [esi + 4]
call fcn.005db031
jmp 0x5da20b
push esi
push eax
mov ecx, 0x1a73e08
call fcn.005da21c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x5da518
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x602b57
call fcn.004b16e8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.005cc166
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x1a14e58]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.005c526d
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.005c526d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x5dbf15
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5dbf43
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5dbf61
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005dbe7b
jmp 0x5dbf61
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5dbf61
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005dbe7b
test edi, edi
mov eax, edi
jne 0x5dbf4b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4035bc
Capabilities:
Terminate process

Disassembly:
jmp 0x45c239
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45c24a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405899
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4036e8
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a5a5c
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a5a6d
pop esi
ret
push ebx
push edi
push esi
call fcn.004a5943
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f9e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a5a95
push ebx
push esi
push edi
call fcn.00405691
add esp, 0xc
push 0
call fcn.004061db
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40574f
Capabilities:
Parse pe header

Disassembly:
jmp 0x44b445
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44b484
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44b484
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44b484
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44b484
cmp dword [ecx + 0x74], 0xe
jbe 0x44b484
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x448d9b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0040374c
mov eax, dword [eax + 0x14]
test eax, eax
je 0x448dde
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x448dde
sub eax, 1
je 0x448dd9
sub eax, 1
je 0x448dd5
xor eax, eax
leave
ret
push 3
jmp 0x448de0
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x49f928
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d75
mov eax, dword [0x4da040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405df8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49f96a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49fac6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f47
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4dd988]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403260
mov ecx, dword [esi*4 + 0x4dd988]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49fabf
cmp eax, dword [edi + ecx + 0x24]
jne 0x49fabf
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49fabf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403260
add esp, 0x14
test edx, edx
jl 0x49fabf
jg 0x49fa35
test eax, eax
jb 0x49fabf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49fabf
jl 0x49fa4f
cmp dword [ebp - 0x1008], eax
ja 0x49fabf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49fa6d
test ebx, ebx
je 0x49faa6
cmp ecx, edi
jae 0x49faa6
mov al, byte [ecx]
cmp al, 0xd
jne 0x49fa87
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49fa93
cmp byte [ecx + 1], 0xa
jne 0x49fa93
inc ecx
jmp 0x49fa93
movzx eax, al
movsx eax, byte [eax + 0x4da3b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49fa6d
cmp edx, ebx
jne 0x49fa6d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49fac4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403044
leave
ret
Function at 0x4a0205
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4dd988]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a0245
cmp byte [ebx], 0xa
jne 0x4a0245
or byte [eax + edi + 0x28], 4
jmp 0x4a024a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a0348
mov al, byte [edx]
cmp al, 0x1a
je 0x4a032a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a0279
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a029e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a02a8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a025b
jmp 0x4a0348
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a0325
cmp dword [ebp - 0xc], 0
je 0x4a0325
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4dd988]
test byte [eax + edi + 0x28], 0x48
je 0x4a02ff
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a02ea
mov byte [esi], dl
jmp 0x4a02fb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4dd988]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a0348
cmp byte [ebp - 1], 0xa
jne 0x4a030e
cmp esi, ebx
jne 0x4a030e
mov byte [esi], 0xa
jmp 0x4a0347
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401915
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a0348
mov byte [esi], 0xd
jmp 0x4a0347
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4dd988]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a0344
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a0348
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a03a4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4dd988]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a03e7
cmp word [esi], dx
jne 0x4a03e7
or byte [edi + eax + 0x28], 4
jmp 0x4a03ec
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a053f
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a051f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a042e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a0464
cmp eax, edx
jae 0x4a0470
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a0406
jmp 0x4a053f
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 0x4a051b
cmp dword [ebp - 0x14], 0
je 0x4a051b
mov eax, dword [ebx*4 + 0x4dd988]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a04f3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a04bc
mov word [esi], cx
jmp 0x4a04ef
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4dd988]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4dd988]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4dd988]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a053f
pop ebx
cmp word [ebp - 4], bx
jne 0x4a0504
cmp esi, dword [ebp + 0xc]
jne 0x4a0504
mov word [esi], bx
jmp 0x4a053c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401915
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a053f
push 0xd
jmp 0x4a0538
mov ecx, dword [ebx*4 + 0x4dd988]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a0536
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a053f
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a3ffb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4da040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a4046
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a44bd
test al, al
jne 0x4a4040
sub edx, 2
cmp edx, edi
jne 0x4a4026
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a4068
lea eax, [edi + 2]
cmp edx, eax
je 0x4a4068
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a3bf4
add esp, 0x10
jmp 0x4a4162
push esi
lea ecx, [ebp - 0x255]
call fcn.004a44bd
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a40ab
push dword [ebp - 0x25c]
jmp 0x4a4058
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a40e8
cmp word [ebp - 0x226], 0
je 0x4a4109
cmp word [ebp - 0x226], ax
jne 0x4a40e8
cmp word [ebp - 0x224], 0
je 0x4a4109
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a3bf4
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a4155
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a40c2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a413d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a4162
push 0x4a35dc
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054f7
add esp, 0x10
jmp 0x4a4132
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403044
leave
ret
Function at 0x66cea0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00566540
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00566540
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x4019df
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x407]
push ebx
push eax
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x408], bl
call fcn.005306b0
add esp, 0xc
mov edx, edi
call fcn.004ccc0d
test eax, eax
je 0x401a33
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
push ebx
push 1
push str.nuim808
push str.notes_user
push str.account_notes
push ecx
push ebx
call fcn.004934c9
pop ecx
pop ecx
push eax
call fcn.0047f8a9
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x40c], eax
je 0x401a23
push edi
push str.SELECT_installed_params.installedid__installed_params.bHasPaid_FROM_locations__installed_params_WHERE_locations.storeid_s_AND_locations.locationidinstalled_params.locationid
push eax
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x410], ebx
call fcn.00480b29
add esp, 0xc
test eax, eax
je 0x401b06
push 2
push 9
push esi
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x418], ebx
call fcn.00480c24
add esp, 0x14
mov esi, 0x54fb24
push esi
lea eax, [ebp - 0x418]
lea ecx, [ebp - 0x408]
call fcn.004ce974
cmp eax, ebx
pop ecx
je 0x401ade
push 0xa
lea ecx, [ebp - 0x420]
push ecx
push eax
call fcn.005305cb
add esp, 0xc
mov dword [ebp - 0x410], eax
push esi
lea eax, [ebp - 0x418]
xor ecx, ecx
call fcn.004ce974
cmp eax, ebx
pop ecx
je 0x401afe
push eax
call fcn.005317e2
pop ecx
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x410], ebx
jne 0x401b19
push dword [ebp - 0x40c]
call fcn.0048073c
pop ecx
mov eax, ebx
jmp 0x401a25
cmp dword [ebp - 0x414], ebx
jne 0x401b42
push dword [ebp - 0x410]
push 1
push str.UPDATE_installed_params_SET_bHasPaid_d_WHERE_installedid_d
push dword [ebp - 0x40c]
call fcn.00480b29
add esp, 0x10
mov dword [ebp - 0x41c], eax
mov ebx, dword [ebp - 0x41c]
jmp 0x401b06
Function at 0x401e46
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
mov esi, 0x1ff
push esi
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.005306b0
add esp, 0xc
test edi, edi
je 0x401f79
mov edx, dword [ebp - 0x210]
call fcn.004ccc0d
test eax, eax
jne 0x401f79
test ebx, ebx
jle 0x401f79
and dword [ebp - 0x214], eax
push ebx
push str.SELECT_owner_FROM_locations_WHERE_locationid_d
push edi
call fcn.00480b29
add esp, 0xc
test eax, eax
je 0x401f71
push 1
push 9
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00480c24
add esp, 0x14
test eax, eax
je 0x401f71
lea edx, [ebp - 0x20c]
call fcn.004ccc0d
test eax, eax
jne 0x401f05
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.005318fe
test eax, eax
pop ecx
pop ecx
jne 0x401f5b
push dword [ebp - 0x210]
mov ecx, 0x200
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 1
call fcn.004ccc3f
pop ecx
push esi
call fcn.004d02f3
pop ecx
push ebx
lea eax, [ebp - 0x20c]
push eax
push str.UPDATE_locations_SET_owner_s_WHERE_locationid_d
push edi
call fcn.00480b29
add esp, 0x10
test eax, eax
push ebx
push dword [ebp - 0x210]
jne 0x401f64
push str.:5:SetOwnerName__s___d__FAILED:_ExecuteODBCFormat___FAILED.
call fcn.0042bd38
add esp, 0xc
and dword [ebp - 0x214], 0
jmp 0x401f71
push str.:0:FYI_SetOwnerName__s___d__successfully_added_an_employee_name.
call fcn.0042bd38
add esp, 0xc
mov eax, dword [ebp - 0x214]
jmp 0x401f7b
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.005317e7
leave
ret
Function at 0x4048c9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x3f
lea eax, [ebp - 0x47]
push ebx
push eax
mov byte [ebp - 0x48], bl
call fcn.005306b0
add esp, 0xc
cmp edi, ebx
je 0x4049bc
mov eax, dword [edi]
cmp eax, ebx
jl 0x4049bc
cmp eax, dword [0x607ce4]
jge 0x4049bc
inc eax
mov dword [edi], eax
mov esi, dword [eax*4 + 0x607ce8]
push 0x5510f8
call fcn.004cd54a
push eax
call fcn.005318fe
test eax, eax
pop ecx
pop ecx
je 0x40499d
mov eax, dword [edi]
mov esi, dword [eax*4 + 0x607ce8]
push 0x5510fc
call fcn.004cd54a
push eax
call fcn.005318fe
test eax, eax
pop ecx
pop ecx
je 0x40499d
mov eax, dword [edi]
mov ecx, dword [eax*4 + 0x607ce8]
push 1
lea eax, [ebp - 0x48]
push eax
push ecx
call fcn.00404a71
add esp, 0xc
jmp 0x404995
push str._n_nEnter_Password:
call fcn.00419451
pop ecx
push 0x20
push 0x3f
lea eax, [ebp - 0x48]
call fcn.0043cb02
mov eax, dword [edi]
mov ecx, dword [eax*4 + 0x607ce8]
push 1
lea eax, [ebp - 0x48]
push eax
push ecx
call fcn.00404a71
add esp, 0x14
cmp eax, ebx
jl 0x404966
mov ebx, eax
jmp 0x4049ad
mov eax, dword [edi]
mov ecx, dword [eax*4 + 0x607ce8]
push ecx
call fcn.00522550
pop ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
jmp 0x4049be
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret