joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f0f0
Capabilities:
Encode data using xor
Encrypt data using xxtea

Disassembly:
sub esp, 0xc
test ecx, ecx
push edi
mov edi, dword [esp + 0x14]
je 0x40f302
cmp dword [esp + 0x18], 0
je 0x40f302
push ebx
push ebp
xor ebx, ebx
cmp edi, 1
push esi
mov esi, dword [ecx]
jle 0x40f20b
mov eax, 0x34
cdq
idiv edi
mov esi, dword [ecx + edi*4 - 4]
add eax, 6
test eax, eax
jle 0x40f1ff
sub eax, 1
mov dword [esp + 0x18], eax
sub ebx, 0x61c88647
mov eax, ebx
shr eax, 2
and eax, 3
mov dword [esp + 0x10], eax
lea eax, [edi - 1]
xor edx, edx
test eax, eax
mov dword [esp + 0x14], ebx
jle 0x40f1b3
jmp 0x40f160
mov edi, dword [ecx + edx*4 + 4]
mov eax, esi
shr eax, 5
lea ebx, [edi*4]
xor eax, ebx
mov ebp, esi
mov ebx, edi
shr ebx, 3
shl ebp, 4
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add eax, ebx
mov ebx, edx
and ebx, 3
xor ebx, dword [esp + 0x10]
add edx, 1
mov ebx, dword [ebp + ebx*4]
xor ebx, esi
mov esi, dword [esp + 0x14]
xor esi, edi
mov edi, dword [esp + 0x20]
add ebx, esi
xor eax, ebx
add dword [ecx + edx*4 - 4], eax
mov esi, dword [ecx + edx*4 - 4]
lea eax, [edi - 1]
cmp edx, eax
jl 0x40f160
mov eax, dword [ecx]
lea ebx, [eax*4]
mov ebp, esi
shr ebp, 5
xor ebp, ebx
shr eax, 3
mov ebx, esi
shl ebx, 4
xor eax, ebx
mov ebx, dword [esp + 0x14]
and edx, 3
xor edx, dword [esp + 0x10]
add ebp, eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax + edx*4]
mov eax, ebx
xor eax, dword [ecx]
xor edx, esi
add edx, eax
mov eax, dword [esp + 0x18]
xor ebp, edx
add dword [ecx + edi*4 - 4], ebp
test eax, eax
mov esi, dword [ecx + edi*4 - 4]
jg 0x40f132
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0xc
ret 8
cmp edi, 0xffffffff
jge 0x40f2f3
mov eax, 0x34
cdq
neg edi
idiv edi
mov dword [esp + 0x20], edi
add eax, 6
imul eax, eax, 0x9e3779b9
test eax, eax
mov dword [esp + 0x14], eax
je 0x40f1ff
mov edx, eax
shr edx, 2
and edx, 3
mov dword [esp + 0x10], edx
lea edx, [edi - 1]
test edx, edx
jle 0x40f298
mov edi, dword [ecx + edx*4 - 4]
mov ebx, edi
shr ebx, 5
lea eax, [esi*4]
xor ebx, eax
mov ebp, edi
shl ebp, 4
mov eax, esi
shr eax, 3
xor eax, ebp
mov ebp, dword [esp + 0x24]
add ebx, eax
mov eax, edx
and eax, 3
xor eax, dword [esp + 0x10]
sub edx, 1
mov ebp, dword [ebp + eax*4]
mov eax, dword [esp + 0x14]
xor ebp, edi
mov edi, eax
xor edi, esi
add ebp, edi
xor ebx, ebp
sub dword [ecx + edx*4 + 4], ebx
test edx, edx
mov esi, dword [ecx + edx*4 + 4]
jg 0x40f246
mov edi, dword [esp + 0x20]
mov edi, dword [ecx + edi*4 - 4]
mov ebx, edi
shr ebx, 5
lea ebp, [esi*4]
xor ebx, ebp
and edx, 3
xor edx, dword [esp + 0x10]
mov ebp, esi
shr ebp, 3
shl edi, 4
xor ebp, edi
mov edi, dword [esp + 0x24]
mov edx, dword [edi + edx*4]
mov edi, dword [esp + 0x20]
xor edx, dword [ecx + edi*4 - 4]
add ebx, ebp
mov ebp, eax
xor ebp, esi
add edx, ebp
xor ebx, edx
sub dword [ecx], ebx
mov esi, dword [ecx]
add eax, 0x61c88647
mov dword [esp + 0x14], eax
jne 0x40f233
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0xc
ret 8
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0xc
ret 8
or eax, 0xffffffff
pop edi
add esp, 0xc
ret 8
Function at 0x40fca0
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cd38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4bfdd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push 0
mov byte [ebp - 4], 1
call fcn.004851ff
mov dword [ebp - 0x1c], eax
add esp, 4
lea eax, [ebp - 0x1c]
push eax
mov esi, 0x4a872c
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], edx
call fcn.00404e60
mov eax, dword [eax]
push eax
call fcn.00483c96
mov ebx, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
push ecx
mov esi, 0x4a8730
lea edi, [ebp - 0x14]
call fcn.00404e60
mov eax, dword [eax]
push eax
call fcn.00483c96
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fd60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 1
jne 0x40fd8c
cmp esi, 8
jne 0x40fd8c
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov esi, eax
test esi, esi
je 0x40fd8c
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fdb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414bb0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cb06
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4bfdd0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push 0x4a6221
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x134], ebx
call fcn.004051c0
push 0x4a6221
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], ebx
call fcn.004051c0
push 0xff
lea eax, [ebp - 0x11b]
push ebx
mov byte [ebp - 4], 2
push eax
mov byte [ebp - 0x11c], bl
call fcn.00487460
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, ebx
je 0x414c73
push 0x4a6221
mov ecx, esi
call fcn.004051c0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x414d9b
cmp dword [ebp + 8], ebx
lea ecx, [ebp - 0x11c]
push ecx
jne 0x414ca7
lea edx, [ebp - 0x130]
push 0x4a6224
push edx
call fcn.004051a0
mov eax, dword [ebp - 0x130]
add esp, 0xc
add eax, 0xfffffff0
push eax
call fcn.00404650
jmp 0x414d7a
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
je 0x414c49
xor esi, esi
mov ecx, dword [edi + 0xc]
cmp dword [ecx + esi*4], ebx
lea eax, [ecx + esi*4]
je 0x414d5e
movsx edx, word [edi + 0xa]
mov eax, dword [eax]
push edx
push eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.0048cfd0
mov edx, dword [ebp - 0x128]
add esp, 0xc
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x134]
push 0x4a6224
push eax
call fcn.004051a0
xor eax, eax
add esp, 0xc
cmp eax, ebx
je 0x414d4c
cmp esi, ebx
jle 0x414d32
push 0x4a84f0
lea ecx, [ebp - 0x130]
call fcn.0040f310
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0040ede0
add esi, 1
jmp 0x414cb5
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x130]
call fcn.004044b0
add esi, 1
jmp 0x414cb5
lea edx, [ebp - 0x134]
push edx
lea ecx, [ebp - 0x130]
call fcn.004044b0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
push eax
call fcn.00404650
mov esi, dword [ebp - 0x138]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414da7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414dd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00483c76
mov esp, ebp
pop ebp
ret 4
Function at 0x416600
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4bfdd0]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 2
mov dword [esi], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
mov eax, esi
jne 0x416638
mov dword [esi], 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00483c76
mov esp, ebp
pop ebp
ret

Function at 0x416730
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c3a4
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x4bfdd0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1ac], esi
call fcn.00470974
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x416785
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 4], eax
mov dword [ebp - 4], edi
call fcn.00470974
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4167b1
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x34], eax
mov byte [ebp - 4], 1
call fcn.00470974
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4167de
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [ebp - 4], 2
call fcn.00470974
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41680b
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x3c], eax
mov byte [ebp - 4], 3
lea ebx, [esi + 0x40]
call fcn.00470974
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41683b
push 0x80004005
call fcn.00404970
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1a8]
push ecx
push 2
mov word [esi + 2], 1
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x44], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, edi
je 0x416891
push 0x4a881c
push ebx
call fcn.004051a0
add esp, 8
mov dword [esi + 0x2c], edi
jmp 0x4168a5
push edi
push 0x4a6221
mov ecx, ebx
call fcn.00404530
mov dword [esi + 0x2c], 1
push edi
push 0x4a6221
lea ecx, [esi + 4]
call fcn.00404530
push edi
push 0x4a6221
lea ecx, [esi + 0x34]
call fcn.00404530
push edi
push 0x4a6221
lea ecx, [esi + 0x3c]
call fcn.00404530
mov word [esi], 1
jmp 0x4168f9
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00483c76
mov esp, ebp
pop ebp
ret
Function at 0x416c90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49d81d
mov eax, dword fs:[0]
push eax
sub esp, 0x748
mov eax, dword [0x4bfdd0]
xor eax, esp
mov dword [esp + 0x740], eax
push esi
mov eax, dword [0x4bfdd0]
xor eax, esp
push eax
lea eax, [esp + 0x750]
mov dword fs:[0], eax
push str.RunOnlyOneXSvrMag
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi + 0xa4], eax
je 0x416d74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x416d74
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00471009
push 0
call fcn.0047200b
add esp, 4
push 0x4a85d8
mov ecx, esi
call fcn.00472580
lea ecx, [esp + 0x14]
push ecx
call fcn.00416f10
lea edx, [esp + 0x14]
mov dword [esp + 0x758], 0
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.0046dbcc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x75c], 0xffffffff
call fcn.00416db0
jmp 0x416d81
mov ecx, dword [esi + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x750]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x740]
xor ecx, esp
call fcn.00483c76
mov esp, ebp
pop ebp
ret
Function at 0x417460
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e340
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4bfdd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0xff00ff
push 1
push 0x10
lea edi, [esi + 0x620]
push 0xcc
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0046cf10
test edi, edi
je 0x4174b6
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x650]
push edi
push 0
push 0x1109
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.0046cdd1
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 1
push 0
push 0x4a8b60
lea edi, [esi + 0x630]
push 0x23
mov ecx, edi
call fcn.0046c907
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.0046c8b9
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 1
push 0
push 0x4a8b6c
push 0x23
mov ecx, edi
call fcn.0046c907
push 0xfffffffffffffffe
push 0
push 0
push 0
push 0
push 0
mov ebx, eax
push 4
push ebx
mov ecx, edi
call fcn.0046c8b9
push esi
call fcn.004177c0
test eax, eax
je 0x41758a
push 0xffffffffffffffff
push ebx
push esi
call fcn.004180c0
mov ecx, dword [esi + 0x650]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 2
push 0x1102
push ecx
call edi
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x650]
push edx
push 9
push 0x110b
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0x80
lea edi, [esi + 0x3f8]
push 0x4a8b78
mov dword [edi], 0x1f8
mov dword [esi + 0x3fc], ecx
mov dword [esi + 0x400], 0x7d0
mov dword [esi + 0x404], 7
mov dword [esi + 0x408], 0x8378
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x4a8b84
lea edx, [esi + 0x410]
push 0x80
push edx
mov dword [esi + 0x40c], eax
call fcn.00486bc0
add esp, 0xc
push edi
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
test eax, eax
je 0x41760a
mov dword [esi + 0x5f8], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fea0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ecx
push esi
push edi
mov esi, eax
mov dword [esp + 8], 0
call fcn.0041fc20
test eax, eax
push esi
je 0x41fec3
call fcn.0041fc80
add esp, 4
mov edi, eax
jmp 0x41fee2
call fcn.0041fc80
mov esi, eax
add esp, 4
test esi, esi
je 0x41fee6
push esi
call fcn.0041fe10
push esi
mov edi, eax
call fcn.00485420
add esp, 8
test edi, edi
jne 0x41feef
pop edi
mov eax, 7
pop esi
pop ecx
ret
push ebx
push ebp
call fcn.0041fc20
test eax, eax
push edi
je 0x41ff3d
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
mov esi, eax
test esi, esi
jne 0x41ff7c
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ff7c
mov eax, dword [esp + 0x10]
mov ecx, eax
add eax, 1
cmp ecx, 3
mov dword [esp + 0x10], eax
jge 0x41ff7c
push 0x64
call ebp
push edi
call ebx
mov esi, eax
test esi, esi
je 0x41ff10
jmp 0x41ff7c
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call ebx
mov esi, eax
test esi, esi
jne 0x41ff7c
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41ff7c
mov eax, dword [esp + 0x10]
mov edx, eax
add eax, 1
cmp edx, 3
mov dword [esp + 0x10], eax
jge 0x41ff7c
push 0x64
call ebp
push edi
call ebx
mov esi, eax
test esi, esi
je 0x41ff51
push edi
call fcn.00485420
add esp, 4
mov eax, esi
neg eax
pop ebp
sbb eax, eax
pop ebx
and eax, 0xfffffff6
pop edi
add eax, 0xa
pop esi
pop ecx
ret

Function at 0x41ffa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
mov esi, eax
call fcn.0041fc20
test eax, eax
push esi
je 0x41ffba
call fcn.0041fc80
add esp, 4
mov esi, eax
jmp 0x41ffd9
call fcn.0041fc80
mov edi, eax
add esp, 4
test edi, edi
je 0x41ffdd
push edi
call fcn.0041fe10
push edi
mov esi, eax
call fcn.00485420
add esp, 8
test esi, esi
jne 0x41ffe5
pop edi
mov eax, 7
pop esi
ret
call fcn.0041fc20
test eax, eax
push esi
je 0x42000d
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push esi
mov edi, ecx
call fcn.00485420
add esp, 4
mov eax, edi
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
push esi
mov edi, edx
call fcn.00485420
add esp, 4
mov eax, edi
pop edi
pop esi
ret
Function at 0x420320
Capabilities:
Get common file path

Disassembly:
sub esp, 0x3b0
mov eax, dword [0x4bfdd0]
xor eax, esp
mov dword [esp + 0x3ac], eax
mov eax, dword [0x4c4808]
test eax, eax
push ebx
push ebp
push esi
je 0x420360
push 0x118
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00485f20
add esp, 0xc
mov byte [esp + 0x124], 0
jmp 0x42040c
call fcn.0041fc20
test eax, eax
je 0x4203ab
lea ecx, [esp + 0x144]
push ecx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [esp + 0x144]
call fcn.0041fd00
mov esi, eax
test esi, esi
jne 0x4203e8
mov eax, 7
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3ac]
xor ecx, esp
call fcn.00483c76
add esp, 0x3b0
ret
lea eax, [esp + 0x144]
push eax
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x144]
push ecx
call fcn.0041fd80
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42038e
call fcn.0041fd00
push ebx
mov esi, eax
call fcn.00485420
add esp, 4
test esi, esi
je 0x42038e
push 0x118
lea edx, [esp + 0x10]
push esi
push edx
call fcn.00485f20
add esp, 0xc
push esi
mov byte [esp + 0x128], 0
call fcn.00485420
add esp, 4
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x420413
sub eax, edx
test eax, eax
jle 0x42043d
lea ecx, [esp + 0xc]
sub ecx, 1
lea esp, [esp]
cmp byte [ecx + eax], 0x5c
jne 0x42043d
sub eax, 1
test eax, eax
jg 0x420430
mov byte [esp + eax + 0xc], 0
lea eax, [esp + 0xc]
push eax
push str._setilqs_
push edi
push 0x136
call fcn.0041de50
mov esi, edi
add esp, 0x10
lea ecx, [esi + 1]
nop
mov al, byte [esi]
add esi, 1
test al, al
jne 0x420460
sub esi, ecx
mov ebx, 0xf
lea ebp, [edi + esi]
call fcn.00420d80
sub ebx, 1
call fcn.0041de80
mov byte [ebp], al
add ebp, 1
test ebx, ebx
jne 0x420478
sub dword [0x4c47f0], 1
push 0x4c47d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebx + 3]
nop
movzx eax, byte [edi + esi]
xor edx, edx
mov ebx, 0x3e
div ebx
movzx eax, byte [edi + esi + 1]
add esi, 5
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 5], dl
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 4], al
movzx eax, byte [edi + esi - 3]
xor edx, edx
div ebx
movzx eax, byte [edi + esi - 2]
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 3], dl
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 2], al
movzx eax, byte [edi + esi - 1]
xor edx, edx
div ebx
sub ecx, 1
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], dl
jne 0x4204a0
mov eax, edi
mov byte [edi + esi], cl
call fcn.0041ffa0
test eax, eax
jne 0x420442
mov ecx, dword [esp + 0x3b8]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00483c76
add esp, 0x3b0
ret
Function at 0x420850
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, eax
test esi, esi
jne 0x42085b
xor eax, eax
pop esi
ret
call fcn.0041fc20
test eax, eax
jne 0x420882
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x420870
sub eax, edx
cmp eax, 0x104
ja 0x420857
push edi
call fcn.0041fc20
test eax, eax
push esi
je 0x420899
call fcn.0041fc80
add esp, 4
mov esi, eax
jmp 0x4208b8
call fcn.0041fc80
mov edi, eax
add esp, 4
test edi, edi
je 0x4208bc
push edi
call fcn.0041fe10
push edi
mov esi, eax
call fcn.00485420
add esp, 8
test esi, esi
jne 0x4208c4
pop edi
mov eax, 7
pop esi
ret
push ebx
call fcn.0041fc20
test eax, eax
push esi
je 0x4208d7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4208dd
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov ebx, eax
call fcn.00485420
add esp, 4
xor eax, eax
cmp ebx, 0xffffffff
je 0x4208f8
and bl, 0x10
cmp bl, 0x10
sete al
pop ebx
pop edi
pop esi
ret

Function at 0x420e70
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4c47fc], 0
push esi
mov esi, eax
jne 0x420ecc
call fcn.00420d80
cmp dword [0x4c47fc], 0
jne 0x420eba
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4c46c4], eax
jne 0x420eb0
sub dword [0x4c47f0], 1
push 0x4c47d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop esi
ret
mov dword [0x4c47fc], 1
sub dword [0x4c47f0], 1
push 0x4c47d0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4c46c4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test esi, esi
mov edi, eax
jle 0x420f27
test edi, edi
jne 0x420fd9
push 0xc
call fcn.00486093
mov edi, eax
add esp, 4
test edi, edi
je 0x420fd9
mov ecx, dword [0x4aa144]
mov dword [edi], ecx
mov edx, dword [0x4aa148]
mov ecx, dword [0x4c46c4]
mov dword [edi + 4], edx
mov eax, dword [0x4aa14c]
push edi
push ecx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
pop edi
pop esi
ret
test edi, edi
je 0x420fd9
test esi, esi
jge 0x420fd9
mov eax, 0xc
mov ecx, 0x4aa144
mov edx, edi
push ebp
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x420f5c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x420f44
test eax, eax
je 0x420fb9
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x420fab
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x420fb9
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x420fab
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x420fb9
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x420fab
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x420fb9
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x420fb9
test esi, esi
mov eax, 1
jg 0x420fbb
or eax, 0xffffffff
jmp 0x420fbb
xor eax, eax
test eax, eax
pop ebp
jne 0x420fd9
push edi
call fcn.00485420
mov eax, dword [0x4c46c4]
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor edi, edi
mov eax, edi
pop edi
pop esi
ret