joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ebc81
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
or dword [ebp - 0x2c], 0xffffffff
xorps xmm0, xmm0
push ebx
push esi
push edi
push ecx
push 3
xor esi, esi
movlpd qword [ebp - 0x24], xmm0
inc esi
mov dword [ebp - 0x1c], 0x100
push esi
xor ebx, ebx
mov edi, edx
push SysReAllocString
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.00430cc6
test eax, eax
jne 0x5ebce0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5ebd35
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x5ebd3a
push 0x18
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.004e0bc0
add esp, 0xc
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x2c]
push 0x2c
push eax
call fcn.00438764
cmp eax, 0x2c
jne 0x5ebd35
cmp dword [ebp - 0x58], 0x46464952
jne 0x5ebd35
cmp dword [ebp - 0x50], 0x41444443
jne 0x5ebd35
cmp dword [ebp - 0x4c], 0x20746d66
jne 0x5ebd35
cmp dword [ebp - 0x48], 0x18
jne 0x5ebd35
cmp word [ebp - 0x44], si
jne 0x5ebd35
push 6
pop ecx
lea esi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov esi, ebx
jmp 0x5ebd3a
mov esi, 0x80004005
cmp dword [ebp - 0xc], ebx
je 0x5ebd93
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5ebd8e
cmp dword [ebp - 0x10], ebx
je 0x5ebd8e
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x24]
call fcn.00430dab
and eax, edx
cmp eax, 0xffffffff
je 0x5ebd93
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5ebd93
mov eax, dword [ebp - 4]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
adc dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
jmp 0x5ebd96
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5ebdb2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x2c], 0xffffffff
je 0x5ebdc1
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5ebe71
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
push edi
inc ecx
mov eax, dword [ebx]
movzx edx, word [eax + 0x10]
lea edi, [edx + 0x12]
cmp edi, 0x12
jne 0x5ebea5
cmp word [eax], cx
jne 0x5ebea5
push 0x10
test dx, dx
pop eax
cmove edi, eax
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 4]
add eax, 0x14
mov dword [ebp - 0x10], 0x46464952
add eax, edi
mov dword [ebp - 8], 0x45564157
mov dword [ebp - 0xc], eax
mov ecx, esi
xor eax, eax
push eax
push eax
push eax
call fcn.004af723
push 0xc
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004b7c10
mov eax, dword [ebx + 0x1c]
mov ecx, esi
push 1
mov dword [ebp - 0x14], eax
lea eax, [edi + 8]
push 0
push eax
mov dword [ebp - 0x18], 0x61746164
call fcn.004af723
push 8
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004b7c10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret
Function at 0x5ecf1f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.005ed2ff
test eax, eax
je 0x5ecfc4
push ebx
push edi
mov ecx, esi
call fcn.005ed2c8
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [esi + 0x54]
test eax, eax
je 0x5ecf53
call ebx
sub eax, dword [edi]
cmp eax, 0x4e20
jae 0x5ecf7d
mov ecx, esi
call fcn.005ecfc9
push 0
mov ecx, esi
call fcn.005ed363
push ecx
push 0
lea ecx, [esi + 0xc0]
call fcn.0046f241
mov ecx, esi
call fcn.005ecfed
cmp eax, 2
je 0x5ecfc2
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x34]
add eax, 0x34
push eax
call fcn.005ee164
call ebx
sub eax, dword [edi]
cmp eax, 1
jae 0x5ecf9a
xor eax, eax
inc eax
jmp 0x5ecf9e
call ebx
sub eax, dword [edi]
and dword [edi], 0
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.005ecfc9
mov eax, dword [esi + 0x60]
mov dword [esi + 0x20], 1
test eax, eax
je 0x5ecfc2
push dword [esi + 0x5c]
push 0
push 3
call eax
pop edi
pop ebx
pop esi
pop ebp
ret 4

Function at 0x5ed0b0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
xor esi, esi
cmp dword [ebx + 0x64], esi
je 0x5ed0c6
call fcn.005ed098
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x5ed1c4
cmp dword [eax], 0x18
jne 0x5ed1c4
push edi
push dword [eax + 8]
lea ecx, [ebp - 4]
call fcn.0040d2ee
mov eax, dword [ebx + 0x40]
mov edi, dword [ebp - 4]
cmp dword [eax + 4], esi
jne 0x5ed0ff
push 0x10000000
push esi
push esi
push 1
jmp 0x5ed1a2
cmp dword [eax + 4], 1
je 0x5ed19a
cmp dword [edi - 8], esi
je 0x5ed19a
push dword [eax + 0x10]
lea ecx, [ebp - 0xc]
call fcn.0040d2ee
mov eax, dword [ebx + 0x40]
lea ecx, [ebp - 8]
push dword [eax + 0x14]
call fcn.0040d2ee
mov eax, dword [0x668294]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x40]
push dword [eax + 0xc]
lea eax, [ebp - 4]
push edi
push 0x6366ec
push eax
call fcn.0040cefd
mov esi, dword [ebp - 4]
add esp, 0x10
push 0x10000000
push str._local_
push esi
push 3
push 0x636ed0
call dword [sym.imp.WININET.dll_InternetOpenW]
lea ecx, [esi - 0xc]
mov dword [ebx + 0x64], eax
mov esi, 0x668010
cmp ecx, esi
je 0x5ed17a
call fcn.00407965
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x5ed189
call fcn.00407965
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x5ed1b5
call fcn.00407965
jmp 0x5ed1b5
push 0x10000000
push esi
push esi
push esi
push 0x636ed0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, 0x668010
mov dword [ebx + 0x64], eax
lea ecx, [edi - 0xc]
pop edi
cmp ecx, esi
je 0x5ed1da
call fcn.00407965
jmp 0x5ed1da
push 0x10000000
push esi
push esi
push esi
push 0x636ed0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 0x64], eax
cmp dword [ebx + 0x64], 0
je 0x5ed1f8
push 0x5edecb
push dword [ebx + 0x64]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
inc eax
neg eax
sbb eax, eax
and eax, 2
jmp 0x5ed1fa
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x5edd63
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x249c
call fcn.004db570
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004bc4ba
push ecx
push ecx
lea ecx, [ebp - 0x2490]
call fcn.0041d625
mov eax, dword [ebx + 0x80]
push ecx
lea ecx, [ebp - 0x2490]
push dword [eax + 8]
call fcn.0041d674
test eax, eax
je 0x5edeba
xor edi, edi
push edi
push edi
push 3
push dword [ebp - 0x246c]
push dword [ebp - 0x2474]
push dword [ebp - 0x2478]
push dword [ebp - 0x2480]
push dword [ebx + 0x6c]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 0x70], eax
test eax, eax
je 0x5edeba
lea eax, [ebp - 0x2498]
push eax
lea ecx, [ebp - 0x2490]
call fcn.0041d6dd
lea ecx, [ebp - 0x2490]
mov esi, dword [eax]
lea eax, [ebp - 0x2494]
push eax
call fcn.0041d73e
push ebx
push 0x80400200
push edi
push esi
push edi
push dword [eax]
push 0x636720
push dword [ebx + 0x70]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [ebp - 0x2494]
mov esi, 0x668010
add ecx, 0xfffffff4
mov dword [ebx + 0x74], eax
cmp ecx, esi
je 0x5ede39
call fcn.00407965
mov ecx, dword [ebp - 0x2498]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x5ede4b
call fcn.00407965
cmp dword [ebx + 0x74], edi
je 0x5edeba
mov esi, dword [0x668294]
mov dword [ebp - 0x2494], esi
cmp dword [ebx + 0x68], edi
jbe 0x5ede7e
push dword [ebx + 0x68]
lea eax, [ebp - 0x2494]
push str.Range:_bytes_u__r_n
push eax
call fcn.0040cefd
mov esi, dword [ebp - 0x2494]
add esp, 0xc
push edi
push edi
push dword [esi - 8]
push esi
push dword [ebx + 0x74]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x5ede96
push 2
pop edi
jmp 0x5edea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x5edea6
xor edi, edi
inc edi
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x5edeb6
call fcn.00407965
mov eax, edi
jmp 0x5edebc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret

Function at 0x5ee919
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jb 0x5ee92b
xor eax, eax
jmp 0x5ee995
push ebx
push edi
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x14]
jbe 0x5ee941
mov edi, dword [esi + 0x14]
sub edi, ecx
mov eax, dword [esi + 0x18]
add ecx, edi
cmp ecx, dword [eax + 0x6c]
jbe 0x5ee97a
mov ebx, dword [ebp + 0x14]
mov edx, 0xc8
push edx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x5ee99a
lea edx, [eax - 0x3a]
cmp ebx, edx
jb 0x5ee99a
mov eax, dword [esi + 0x18]
sub ebx, edx
mov ecx, dword [esi + 0x10]
add ecx, edi
cmp ecx, dword [eax + 0x6c]
ja 0x5ee953
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
add dword [esi + 0x10], eax
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
jmp 0x5ee993
Function at 0x5ef329
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x675990], 0
push esi
mov esi, edx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x258], esi
je 0x5ef549
mov eax, dword [0x675784]
test eax, eax
je 0x5ef549
call eax
xor edx, edx
mov cx, ax
shr cx, 8
inc edx
cmp cx, dx
je 0x5ef380
mov edx, 0xe8
cmp cx, dx
jne 0x5ef38d
movzx eax, al
mov dword [ebp - 0x268], eax
test eax, eax
jne 0x5ef394
xor eax, eax
jmp 0x5ef54e
and dword [ebp - 0x25c], 0
mov esi, dword [ebp - 0x26c]
push ebx
push edi
xor edi, edi
lea eax, [edi + 0x41]
movzx ebx, ax
lea eax, [ebp - 0x20c]
push ebx
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x5ef3e6
mov eax, esi
or ebx, 0x20
or eax, 0x20
cmp bx, ax
je 0x5ef3ec
inc dword [ebp - 0x25c]
inc edi
cmp edi, 0x1a
jl 0x5ef3a5
and dword [ebp - 0x264], 0
xor ebx, ebx
mov edi, dword [ebp - 0x268]
mov esi, dword [ebp - 0x258]
test edi, edi
je 0x5ef534
push 0x3c
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.004e0bc0
lea eax, [ebp - 0x254]
mov byte [ebp - 0x254], 0
push eax
mov byte [ebp - 0x252], bl
call dword [0x675990]
add esp, 0x10
cmp byte [ebp - 0x253], 1
jne 0x5ef52b
movzx eax, byte [ebp - 0x227]
test eax, eax
push 8
pop ecx
cmove eax, ecx
and dword [ebp - 0x258], 0
mov dword [ebp - 0x270], eax
test eax, eax
je 0x5ef52b
push ecx
pop edi
and dword [ebp - 0x260], 0
push 0xc
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e0bc0
mov eax, dword [ebp - 0x258]
mov byte [ebp - 0x210], al
mov eax, dword [ebp - 0x260]
mov byte [ebp - 0x20f], al
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 0x218], 1
mov byte [ebp - 0x216], bl
call dword [0x675990]
add esp, 0x10
cmp byte [ebp - 0x217], 1
jne 0x5ef4dc
cmp byte [ebp - 0x20e], 5
jne 0x5ef4dc
mov eax, dword [ebp - 0x264]
cmp eax, dword [ebp - 0x25c]
je 0x5ef4ef
inc eax
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x260]
inc eax
mov dword [ebp - 0x260], eax
cmp eax, edi
jl 0x5ef470
jmp 0x5ef50c
mov al, byte [ebp - 0x216]
mov byte [esi + 4], al
mov al, byte [ebp - 0x210]
mov byte [esi + 6], al
mov al, byte [ebp - 0x20f]
mov dword [esi], edi
mov byte [esi + 7], al
mov eax, dword [ebp - 0x258]
inc eax
mov dword [ebp - 0x258], eax
cmp eax, dword [ebp - 0x270]
jl 0x5ef469
mov edi, dword [ebp - 0x268]
inc ebx
cmp ebx, edi
jl 0x5ef409
mov eax, dword [ebp - 0x26c]
or dword [esi + 0xc], 0xffffffff
mov word [esi + 8], ax
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x5ef54e
call fcn.005ef0e6
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004da623
leave
ret
Function at 0x4010b0
Capabilities:
Delete file
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7dc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.RESFILE
push eax
push 0
mov esi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40110a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x414f94
mov ecx, esi
call fcn.00401000
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401778
mov esp, ebp
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov dword [ebp - 0x7dc], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40114f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x414fa4
mov ecx, esi
call fcn.00401000
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401778
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x414fb4
mov edi, eax
mov dword [ebp - 0x7d8], 0
lea eax, [ebp - 0x7d8]
push ebx
push eax
call fcn.004046a6
add esp, 0xc
test eax, eax
je 0x4011ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x414fbc
mov ecx, esi
call fcn.00401000
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401778
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x7d8]
test eax, eax
jne 0x4011f9
push 0x414fcc
push esi
lea eax, [ebp - 0x7d4]
push 0x414f54
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x7d4]
push 0x10
push 0x414f4c
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401778
mov esp, ebp
pop ebp
ret
push eax
push dword [ebp - 0x7dc]
push 1
push edi
call fcn.00404bee
push dword [ebp - 0x7d8]
call fcn.004048f9
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.00401778
mov esp, ebp
pop ebp
ret
Function at 0x4088bb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
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 0x408906
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00408ad8
test al, al
jne 0x408900
sub edx, 2
cmp edx, edi
jne 0x4088e6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x408928
lea eax, [edi + 2]
cmp edx, eax
je 0x408928
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00408807
add esp, 0x10
jmp 0x408a22
push esi
lea ecx, [ebp - 0x255]
call fcn.00408ad8
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 0x40896b
push dword [ebp - 0x25c]
jmp 0x408918
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 0x4089a8
cmp word [ebp - 0x226], 0
je 0x4089c9
cmp word [ebp - 0x226], ax
jne 0x4089a8
cmp word [ebp - 0x224], 0
je 0x4089c9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00408807
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x408a15
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x408982
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4089fd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x408a22
push 0x408637
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040cf70
add esp, 0x10
jmp 0x4089f2
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.00401778
leave
ret

Function at 0x40a8aa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41223c
push 0x412234
push 0x410c24
push 0x1f
call fcn.0040a7e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a8de
push dword [ebp + 8]
mov ecx, esi
call dword [0x410158]
call esi
jmp 0x40a8e4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a928
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41224c
push 0x412244
push 0x410c48
push 0x21
call fcn.0040a7e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a95f
push dword [ebp + 8]
mov ecx, esi
call dword [0x410158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40a967
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412254
push 0x41224c
push 0x410c5c
push 0x22
call fcn.0040a7e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a9a1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x410158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x40c6ad
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 + 0x418160]
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 0x40c6ed
cmp byte [ebx], 0xa
jne 0x40c6ed
or byte [edi + eax + 0x28], 4
jmp 0x40c6f2
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 0x40c7f1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40c7d4
inc eax
cmp dl, 0xd
je 0x40c71e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40c744
cmp eax, ecx
jae 0x40c752
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 0x40c706
jmp 0x40c7f1
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 0x40c7cf
cmp dword [ebp - 0x10], 0
je 0x40c7cf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x418160]
test byte [eax + edi + 0x28], 0x48
je 0x40c7a9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40c794
mov byte [esi], dl
jmp 0x40c7a5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x418160]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40c7f1
cmp byte [ebp - 1], 0xa
jne 0x40c7b8
cmp esi, ebx
jne 0x40c7b8
mov byte [esi], 0xa
jmp 0x40c7f0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040c4a6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40c7f1
mov byte [esi], 0xd
jmp 0x40c7f0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x418160]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40c7ee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40c7f1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4093fc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x409456
inc esi
xor edi, edi
cmp edi, 1
jne 0x409422
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x409430
cmp edi, 1
jle 0x409430
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408ee0
test eax, eax
jne 0x409456
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409456
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409456
inc edi
dec esi
jne 0x409412
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4096e8
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
push ebp
cmp dword [0x40cca4], 0
je 0x409731
mov edi, dword [0x40cde0]
dec edi
test edi, edi
jl 0x409731
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cddc]
mov edx, dword [edx + eax]
mov eax, dword [0x40cca4]
call fcn.00404b90
test eax, eax
jne 0x40972d
mov eax, esi
call fcn.0040969c
jmp 0x4097f6
inc esi
dec edi
jne 0x409703
mov al, byte [0x40cdc4]
sub al, 1
jb 0x40973e
je 0x409747
jmp 0x409750
call fcn.00406f84
mov ebp, eax
jmp 0x409752
call sub.kernel32.dll_GetUserDefaultLangID
mov ebp, eax
jmp 0x409752
xor ebp, ebp
test bp, bp
je 0x4097ef
mov edi, dword [0x40cde0]
dec edi
test edi, edi
jl 0x40979e
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cddc]
lea ebx, [edx + eax]
movzx eax, bp
cmp eax, dword [ebx + 0x28]
jne 0x40979a
cmp dword [ebx + 0x2c], 0
je 0x409791
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x40979a
mov eax, esi
call fcn.0040969c
jmp 0x4097f6
inc esi
dec edi
jne 0x409769
mov edi, dword [0x40cde0]
dec edi
test edi, edi
jl 0x4097ef
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cddc]
lea ebx, [edx + eax]
mov eax, dword [ebx + 0x28]
and eax, 0x3ff
mov edx, ebp
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x4097eb
cmp dword [ebx + 0x2c], 0
je 0x4097e2
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x4097eb
mov eax, esi
call fcn.0040969c
jmp 0x4097f6
inc esi
dec edi
jne 0x4097ac
xor eax, eax
call fcn.0040969c
pop ebp
pop edi
pop esi
pop ebx
ret