joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008d3af
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 0x1008d44c
push ebx
push esi
call fcn.1008d36b
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.1008d2a8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1008d3f9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008d44b
push edi
push eax
call fcn.10082ab8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1008d419
call fcn.10082a7e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008d44a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1008d2a8
add esp, 0x20
test eax, eax
jne 0x1008d438
push edi
call fcn.10082a7e
jmp 0x1008d440
push ebx
call fcn.10082a7e
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 0x1008d44f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1008d460
pop esi
ret
push ebx
push edi
push esi
call fcn.1008d36b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10082ab8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1008d488
push ebx
push esi
push edi
call fcn.100578a0
add esp, 0xc
push 0
call fcn.10082a7e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1008dd36
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008d6fd

Function at 0x10094102
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10085655
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 0x10094171
cmp esi, dword [ebp - 4]
je 0x1009416c
cmp dword [ebp + 0xc], 0
je 0x1009416c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10094149
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10093c54
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10094173
xor eax, eax
inc eax
jmp 0x10094173
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100941d8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100c5008]
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.10085655
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.10085655
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 0x1009424f
cmp word [ecx], dx
je 0x1009424f
mov eax, dword [0x100a748c]
push edi
dec eax
push eax
push 0x100a7378
call fcn.10094177
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100942c2
cmp word [eax], dx
je 0x100942c2
mov eax, dword [edi]
test eax, eax
je 0x10094273
cmp word [eax], dx
je 0x10094273
lea eax, [ebp - 0x10]
push eax
call fcn.10093b5a
jmp 0x1009427c
lea eax, [ebp - 0x10]
push eax
call fcn.10093bf5
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100942ec
mov eax, dword [0x100a7374]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100a7068
call fcn.10094177
add esp, 0xc
test al, al
je 0x100942ec
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100942b7
cmp word [eax], di
je 0x100942b7
lea eax, [ebp - 0x10]
push eax
call fcn.10093b5a
pop ecx
jmp 0x100942ee
lea eax, [ebp - 0x10]
push eax
call fcn.10093bf5
jmp 0x100942b4
mov eax, dword [edi]
test eax, eax
je 0x100942d9
cmp word [eax], dx
je 0x100942d9
lea eax, [ebp - 0x10]
push eax
call fcn.10093af1
pop ecx
jmp 0x100942ec
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 0x100943b7
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10093ffc
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100943b7
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100943b7
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100943b7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10094344
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1008aaab
test ebx, ebx
je 0x100943b2
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1008aaab
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100943b7
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 0x100943b7
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1007f651
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100943b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004db21
leave
ret
Function at 0x1009831c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x100c7dc0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1009835c
cmp byte [ebx], 0xa
jne 0x1009835c
or byte [edi + eax + 0x28], 4
jmp 0x10098361
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10098460
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10098443
inc eax
cmp dl, 0xd
je 0x1009838d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100983b3
cmp eax, ecx
jae 0x100983c1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10098375
jmp 0x10098460
push 0
lea eax, [ebp - 0x10]
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 0x1009843e
cmp dword [ebp - 0x10], 0
je 0x1009843e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100c7dc0]
test byte [eax + edi + 0x28], 0x48
je 0x10098418
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10098403
mov byte [esi], dl
jmp 0x10098414
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c7dc0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10098460
cmp byte [ebp - 1], 0xa
jne 0x10098427
cmp esi, ebx
jne 0x10098427
mov byte [esi], 0xa
jmp 0x1009845f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10097a6f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10098460
mov byte [esi], 0xd
jmp 0x1009845f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100c7dc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1009845d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10098460
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10098469
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100c7dc0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100984af
cmp word [ebx], dx
jne 0x100984af
or byte [eax + edi + 0x28], 4
jmp 0x100984b4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10098617
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100985f7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100984f5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1009852b
cmp eax, edx
jae 0x10098539
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100984d0
jmp 0x10098617
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100985f2
cmp dword [ebp - 0x18], 0
je 0x100985f2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100c7dc0]
test byte [eax + edi + 0x28], 0x48
je 0x100985c8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1009858c
mov word [esi], cx
jmp 0x100985c3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100c7dc0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100c7dc0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100c7dc0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10098617
pop eax
cmp word [ebp - 4], ax
jne 0x100985d8
cmp esi, ebx
jne 0x100985d8
mov word [esi], ax
jmp 0x10098614
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10097a6f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10098617
push 0xd
pop eax
jmp 0x100985d3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100c7dc0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10098611
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10098617
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401037
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x42a378]
mov dword [ebp - 0x30], eax
mov eax, dword [0x42a37c]
push edi
xor edi, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], edi
call fcn.00401030
mov eax, dword [0x42a380]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x42a384]
add ebx, 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1a241a4], 0xc
mov dword [ebp - 4], eax
jne 0x4010bc
push edi
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x434]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x1a241a4]
cmp eax, 0xfa9
jne 0x4010d8
mov dword [0x1a241a0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ec
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x1a240f4], edi
mov eax, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a2419c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x1a241a4], 0xb03
jne 0x401174
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push str.ruyenemilimusibubigukexem
push edi
push edi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add ebx, 0x61c88647
dec dword [ebp - 0x20]
jne 0x40108b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 4
Function at 0x404c41
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4296d0]
jne 0x404c4b
repz ret
jmp fcn.00408c8f

Function at 0x409eed
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404d3c
and dword [ebp - 4], 0
cmp dword [0x43c9d8], 0
mov ebx, eax
jne 0x409f9e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a04f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a04f
push eax
call fcn.00404cca
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43c9d8], eax
call esi
push eax
call fcn.00404cca
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43c9dc], eax
call esi
push eax
call fcn.00404cca
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43c9e0], eax
call esi
push eax
call fcn.00404cca
pop ecx
mov dword [0x43c9e8], eax
test eax, eax
je 0x409f9e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404cca
pop ecx
mov dword [0x43c9e4], eax
mov eax, dword [0x43c9e4]
cmp eax, ebx
je 0x409ff6
cmp dword [0x43c9e8], ebx
je 0x409ff6
push eax
call fcn.00404d45
push dword [0x43c9e8]
mov esi, eax
call fcn.00404d45
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409ff6
test edi, edi
je 0x409ff6
call esi
test eax, eax
je 0x409fed
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409fed
test byte [ebp - 0xc], 1
jne 0x409ff6
or dword [ebp + 0x10], 0x200000
jmp 0x40a02f
mov eax, dword [0x43c9dc]
cmp eax, ebx
je 0x40a02f
push eax
call fcn.00404d45
pop ecx
test eax, eax
je 0x40a02f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a02f
mov eax, dword [0x43c9e0]
cmp eax, ebx
je 0x40a02f
push eax
call fcn.00404d45
pop ecx
test eax, eax
je 0x40a02f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43c9d8]
call fcn.00404d45
pop ecx
test eax, eax
je 0x40a04f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a051
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov ecx, dword [0x40b094]
mov edx, dword [0x40b05c]
push edi
mov edi, dword [esp + 0x34]
add edx, ecx
mov ecx, dword [0x40b090]
push 0x3fdcd43d
mov eax, dword [edi + 0x3c]
push 0x4339a87b
push 0x3fc9f584
push 0xed33eb0a
mov ebp, dword [eax + edi + 0x78]
mov eax, dword [0x40b07c]
add ebp, edi
mov dword [0x40b08c], edx
and eax, ecx
mov esi, dword [ebp + 0x20]
mov dword [0x40b088], eax
add esi, edi
call fcn.00401550
add esp, 0x10
fstp st(0)
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [0x40b078]
mov edx, dword [0x40b05c]
mov eax, dword [ebp + 0x1c]
and ecx, edx
push 0
lea edx, [esp + 0x24]
add eax, edi
push 0
push edx
mov dword [esp + 0x28], eax
mov dword [0x40b058], ecx
call fcn.004017e0
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x4016b6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4016ad
cmp al, 0xff
je 0x4016ad
dec al
mov byte [ecx], al
jmp 0x4016b6
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0x40c774
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov eax, dword [ebp + 0x24]
mov ecx, dword [0x40b094]
add eax, edi
mov edx, dword [0x40b050]
mov dword [esp + 0x18], eax
mov eax, dword [0x40b064]
add eax, ecx
mov dword [esp + 0x34], 0
mov dword [0x40b05c], eax
mov eax, dword [0x40b070]
add edx, eax
mov dword [0x40b074], edx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jbe 0x401789
mov ecx, dword [0x40b058]
mov edx, dword [0x40b090]
mov ebx, dword [0x40b060]
and ecx, edx
imul ebx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov edx, esi
jmp 0x401731
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx]
mov eax, edi
add eax, esi
mov dword [0x40b098], ecx
mov ecx, dword [esp + 0x38]
mov dword [0x40b0a4], ebx
mov esi, eax
mov bl, byte [ecx]
mov al, bl
cmp bl, byte [esi]
jne 0x40176d
test al, al
je 0x401769
mov bl, byte [ecx + 1]
mov al, bl
cmp bl, byte [esi + 1]
jne 0x40176d
add ecx, 2
add esi, 2
test al, al
jne 0x401749
xor eax, eax
jmp 0x401772
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401793
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x18]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x34], eax
jb 0x401729
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
xor eax, eax
mov ax, word [ecx + edx*2]
mov edx, dword [0x40b09c]
imul edx, dword [0x40b0a8]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x40b084]
mov dword [0x40b0a4], edx
mov edx, dword [0x40b094]
sub ecx, edx
add eax, edi
pop edi
pop esi
pop ebp
mov dword [0x40b068], ecx
pop ebx
add esp, 0x20
ret
Function at 0x401e90
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x407769
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
lea eax, [esp + 0x20]
mov esi, ecx
push eax
mov dword [esp + 0x10], esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp eax, ebx
jne 0x401ec9
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x401ef5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x401eec
cmp al, 0xff
je 0x401eec
dec al
mov byte [ecx], al
jmp 0x401ef5
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov cl, byte [esp + 0xb]
push ebp
push edi
mov byte [esp + 0x18], cl
mov edi, 0x40c774
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ebx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x401f55
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, 0x40c774
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [esp + 0x14]
mov al, byte [esi + 0x48]
add esi, 4
test al, 1
mov dword [esp + 0x40], ebx
je 0x401f71
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [esi + 0x44]
mov eax, dword [esp + 0x1c]
and edi, 0xfffffffe
cmp eax, ebx
mov dword [esi + 0x44], edi
mov ecx, edi
pop edi
mov dword [esi + 0x3c], ebx
pop ebp
jne 0x401f8e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::_Init_char_const___unsigned_int__int_]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x401fd1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x401fc8
cmp al, 0xff
je 0x401fc8
dec al
pop esi
mov byte [ecx], al
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret