joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 0x14], edi
jge 0x4014c4
mov eax, 1
pop edi
pop ebp
ret
push esi
push dword [ebp + 8]
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
jne 0x4014df
lea eax, [esi + 1]
pop esi
pop edi
pop ebp
ret
push ebx
push edi
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x401503
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 1]
pop ebx
pop esi
pop edi
pop ebp
ret
push edi
push ebx
push dword [ebp + 0x10]
call fcn.00418e40
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
xor eax, eax
pop edi
pop ebp
ret

Function at 0x401530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x40155c
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, 0xe
mov eax, ecx
cdq
idiv ebx
mov al, byte [edx + str.avrth5ycdgxtfs]
xor byte [ecx + edi], al
inc ecx
cmp ecx, esi
jl 0x401547
pop edi
pop ebx
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401584
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x401584
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402970
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4394c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402990
sub esi, edx
cmp esi, 1
jl 0x4029b6
cmp byte [ecx], 0x5b
jne 0x4029b6
cmp byte [ecx + esi - 1], 0x5d
jne 0x4029b6
inc ecx
mov dword [edi], 2
add esi, 0xfffffffe
jmp 0x4029bc
mov dword [edi], 1
cmp esi, 0x80
jle 0x4029d6
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417bc2
mov esp, ebp
pop ebp
ret
push esi
push ecx
lea eax, [ebp - 0x88]
push eax
call fcn.00418e40
add esp, 0xc
cmp esi, 0x81
jae 0x402abe
mov eax, dword [edi]
xorps xmm0, xmm0
mov byte [ebp + esi - 0x88], 0
movups xmmword [ebp - 0xac], xmm0
movups xmmword [ebp - 0x9c], xmm0
sub eax, 1
je 0x402a24
sub eax, 1
jne 0x402a2e
mov dword [ebp - 0xa8], 0x17
jmp 0x402a2e
mov dword [ebp - 0xa8], 2
cmp dword [ebp + 0x10], 0
je 0x402a3b
or dword [ebp - 0xac], 4
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xac]
push eax
push 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4029c4
mov eax, dword [edi]
mov ecx, dword [ebp - 0x8c]
sub eax, 1
je 0x402a99
sub eax, 1
jne 0x402aa2
mov eax, dword [ecx + 0x18]
push ecx
movups xmm0, xmmword [eax + 8]
movups xmmword [edi + 4], xmm0
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417bc2
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x18]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00417bc2
mov esp, ebp
pop ebp
ret
call fcn.00417ae6
int3

Function at 0x405ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x42e250
push dword [ebp + 8]
call fcn.0041b7e5
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x405b9b
mov edi, 0x80
xor esi, esi
push edi
call fcn.0041d6da
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405b90
cmp esi, edi
jne 0x405b3a
or eax, 0xffffffff
xor edx, edx
div edi
cmp eax, 2
jb 0x405b87
add edi, edi
push edi
push ebx
call fcn.0041d6e5
add esp, 8
test eax, eax
je 0x405b87
mov ebx, eax
push dword [ebp - 4]
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push 1
push eax
call fcn.0041b9c8
add esp, 0x10
test eax, eax
je 0x405b58
add esi, eax
jmp 0x405b18
mov edi, dword [ebp - 4]
push edi
call fcn.0041b6f9
add esp, 4
test eax, eax
je 0x405b87
push edi
call fcn.0041b679
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0041d6d5
add esp, 4
push dword [ebp - 4]
call fcn.0041b679
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407970
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4394c4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4079ba
push str.WSAStartup_failed
push 1
push 0x5b
call fcn.0042b900
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417bc2
mov esp, ebp
pop ebp
ret
mov eax, 0x202
cmp word [ebp - 0x194], ax
je 0x4079ef
push str.WSAStartup_returned_wrong_version
push 1
push 0x5b
call fcn.0042b900
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417bc2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
mov dword [0x439ef0], 1
call fcn.00417bc2
mov esp, ebp
pop ebp
ret

Function at 0x408010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 0xe
jl 0x4080b9
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
lea ebx, [eax + 0x6c]
push ebx
push 0
push esi
push dword [ebp + 0xc]
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408074
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x408074
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile_failed___u_
push 1
push 0x4e
call fcn.0042b900
add esp, 0x10
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
push ebx
call fcn.00406760
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x4080a2
push str.write_operation_failed
push 1
push 0x4e
call fcn.0042b900
add esp, 0xc
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], esi
jae 0x4080b8
push str.write_operation_didnt_write_everything
push 1
push 0x4e
call fcn.0042b900
add esp, 0xc
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420f37
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420db6

Function at 0x423cb9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00423979
Function at 0x44f404
Capabilities:
Terminate process

Disassembly:
jmp 0x47d1a0
jmp fcn.00499550
cmp ecx, dword [0x50dbf0]
jne 0x47d1aa
repz ret
jmp 0x44f968

Function at 0x467bc0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e84a0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xd8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xe8]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x50dbf0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 8], 0
jne 0x467c31
push str.szFilename
push 0
mov eax, dword [0x50d998]
add eax, 1
push eax
push str.d:workingprojectsgaiacodecheckfilescheckfilescrc32sum.cpp
push 2
call fcn.0044d5a5
add esp, 0x14
cmp eax, 1
jne 0x467c31
int3
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, esp
call fcn.0044e5ea
test eax, eax
jne 0x467c6e
push str.lstrlen_szFilename_
push 0
mov ecx, dword [0x50d998]
add ecx, 2
push ecx
push str.d:workingprojectsgaiacodecheckfilescheckfilescrc32sum.cpp
push 2
call fcn.0044d5a5
add esp, 0x14
cmp eax, 1
jne 0x467c6e
int3
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0
je 0x467c9e
mov esi, esp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.0044e5ea
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], 0xffffffff
mov dword [ebp - 4], 0
mov esi, esp
push 0
push 0x8000027
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.0044e5ea
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0xffffffff
jne 0x467cf7
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0044e5ea
mov dword [ebp - 0x24], eax
jmp 0x467d23
mov esi, esp
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.0044e5ea
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x467d23
mov dword [ebp - 0x24], 0x17
jmp 0x467d39
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xe8
cmp ebp, esp
call fcn.0044e5ea
mov esp, ebp
pop ebp
ret 8
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x8310895
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x31803e37
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10003e7e
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword fs:[0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
je 0x10003ee4
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
call fcn.10003e1e
shl eax, 1
mov ecx, 0x8a0
cmp ecx, eax
jne 0x10003eda
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x10], eax
jmp 0x10003eeb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x10003eaa
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add esp, 0x18
pop ebp
ret

Function at 0x10003f9e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0xc]
add eax, dword [ecx + edx*8 + 0x78]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx + 0x18]
jae 0x10004047
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
add eax, dword [ecx + edx*4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
call fcn.10003f3e
cmp eax, dword [ebp - 0x2c]
jne 0x1000403a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
movzx edx, word [edx + esi*2]
add eax, dword [ecx + edx*4]
mov dword [ebp - 0x14], eax
jmp 0x1000404e
jmp 0x1000403c
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x10003ff8
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x785420f9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x7854210e
xor eax, eax
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x7854210b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x78542140
cmp eax, 0x20b
jne 0x7854210b
xor eax, eax
cmp dword [ecx + 0x84], 0xe
jbe 0x78542151
cmp dword [ecx + 0xf8], eax
jmp 0x7854214e
xor eax, eax
cmp dword [ecx + 0x74], 0xe
jbe 0x78542151
cmp dword [ecx + 0xe8], eax
setne al
ret
Function at 0x78542b94
Capabilities:
Accept command line arguments
Get thread local storage value

Disassembly:
push 8
push 0x785ac840
call fcn.7858cf00
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x78542c6b
push ebx
call fcn.78583a2f
pop ecx
test eax, eax
jne 0x78542bc0
xor eax, eax
jmp 0x78542d35
call fcn.78543a99
test eax, eax
jne 0x78542bd0
call fcn.78583aa0
jmp 0x78542bb9
call fcn.7858695d
test eax, eax
jge 0x78542be0
call fcn.78543711
jmp 0x78542bc9
call fcn.7858ef34
mov dword [0x785bba30], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [sym.MSVCR90.dll__acmdln], eax
call sub.KERNEL32.dll_GetCommandLineW
mov dword [sym.MSVCR90.dll__wcmdln], eax
call fcn.78562b86
call fcn.78543184
test eax, eax
jl 0x78542c56
xor edi, edi
push edi
call fcn.785422bc
pop ecx
test eax, eax
jne 0x78542c56
mov ecx, dword [ebp + 8]
call fcn.785427e0
test eax, eax
jne 0x78542c60
mov dword [ebp - 4], edi
push 0x22
call fcn.78542506
pop ecx
jmp 0x78542c4f
mov dword [ebp - 4], 0xfffffffe
call fcn.78586bb6
jmp 0x78542bd9
inc dword [0x785bba24]
jmp 0x78542d33
xor edi, edi
cmp eax, edi
jne 0x78542cb2
cmp dword [0x785bba24], edi
jle 0x78542bb9
dec dword [0x785bba24]
cmp dword [0x785bb708], edi
jne 0x78542c90
call sym.MSVCR90.dll__cexit
call fcn.7854242e
cmp dword [ebp + 0x10], edi
jne 0x78542d33
call fcn.78586bb6
call fcn.78543711
call fcn.78583aa0
jmp 0x78542d33
cmp eax, 2
jne 0x78542d27
call sym.MSVCR90.dll___set_flsgetvalue
push dword [0x785b71e0]
push dword [0x785b71e4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
test eax, eax
jne 0x78542d33
push 0x214
push ebx
call sym.MSVCR90.dll__calloc_crt
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x78542bb9
push esi
push dword [0x785b71e0]
push dword [0x785bbca0]
call sym.MSVCR90.dll__decode_pointer
pop ecx
call eax
test eax, eax
je 0x78542d1b
push edi
push esi
call sym.MSVCR90.dll__initptd
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
jmp 0x78542d33
push esi
call sym.MSVCR90.dll_free
pop ecx
jmp 0x78542bb9
cmp eax, 3
jne 0x78542d33
push edi
call fcn.78543a10
pop ecx
mov eax, ebx
call fcn.7858cf45
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x785482e1
call sym.MSVCR90.dll___doserrno
mov dword [eax], esi
call sym.MSVCR90.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR90.dll__invalid_parameter
add esp, 0x14
push 0x16
pop eax
jmp 0x78548336
test dword [ebp + 0xc], 0xfffffff9
jne 0x785482bd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x7854830e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR90.dll__dosmaperr
pop ecx
call sym.MSVCR90.dll__errno
mov eax, dword [eax]
jmp 0x78548336
test al, 0x10
jne 0x78548334
test al, 1
je 0x78548334
test byte [ebp + 0xc], 2
je 0x78548334
call sym.MSVCR90.dll___doserrno
mov dword [eax], 5
call sym.MSVCR90.dll__errno
mov dword [eax], 0xd
jmp 0x78548305
xor eax, eax
pop esi
pop ebp
ret
Function at 0x7854835b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x7854838c
call sym.MSVCR90.dll___doserrno
mov dword [eax], esi
call sym.MSVCR90.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR90.dll__invalid_parameter
add esp, 0x14
or eax, 0xffffffff
jmp 0x785483c7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x785483a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR90.dll__dosmaperr
pop ecx
jmp 0x78548387
test byte [ebp + 0xc], 0x80
je 0x785483b4
and eax, 0xfffffffe
jmp 0x785483b7
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x7854839a
xor eax, eax
pop esi
pop ebp
ret
Function at 0x78549e78
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x78549ea9
call sym.MSVCR90.dll___doserrno
mov dword [eax], esi
call sym.MSVCR90.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR90.dll__invalid_parameter
add esp, 0x14
push 0x16
pop eax
jmp 0x78549efe
test dword [ebp + 0xc], 0xfffffff9
jne 0x78549e85
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78549ed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR90.dll__dosmaperr
pop ecx
call sym.MSVCR90.dll__errno
mov eax, dword [eax]
jmp 0x78549efe
test al, 0x10
jne 0x78549efc
test al, 1
je 0x78549efc
test byte [ebp + 0xc], 2
je 0x78549efc
call sym.MSVCR90.dll___doserrno
mov dword [eax], 5
call sym.MSVCR90.dll__errno
mov dword [eax], 0xd
jmp 0x78549ecd
xor eax, eax
pop esi
pop ebp
ret

Function at 0x7854a060
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x7854a091
call sym.MSVCR90.dll___doserrno
mov dword [eax], esi
call sym.MSVCR90.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR90.dll__invalid_parameter
add esp, 0x14
or eax, 0xffffffff
jmp 0x7854a0cc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x7854a0ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR90.dll__dosmaperr
pop ecx
jmp 0x7854a08c
test byte [ebp + 0xc], 0x80
je 0x7854a0b9
and eax, 0xfffffffe
jmp 0x7854a0bc
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x7854a09f
xor eax, eax
pop esi
pop ebp
ret
Function at 0x78572479
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x785724b4
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x7857249b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x785724ac
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x785724b6
inc edi
add eax, 0x28
cmp edi, esi
jb 0x78572491
xor eax, eax
pop edi
pop esi
ret

Function at 0x785838d7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
xor ebx, ebx
push ebx
push ebx
mov edi, 0x785229f4
push edi
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x78583a22
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x78583a22
push dword [ebp - 8]
push eax
push edi
call esi
test eax, eax
jbe 0x78583a14
cmp eax, dword [ebp - 8]
ja 0x78583a14
mov edi, dword [ebp - 4]
cmp byte [edi], 0
mov ecx, edi
je 0x78583950
mov al, byte [ecx]
cmp al, 0x61
jl 0x7858394a
cmp al, 0x7a
jg 0x7858394a
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x7858393c
push 0x16
push edi
push 0x785229dc
call sym.MSVCR90.dll_strncmp
add esp, 0xc
test eax, eax
je 0x785839bb
push 0x105
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x78583a14
push 3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [esi], 0
mov ecx, esi
je 0x785839a4
mov al, byte [ecx]
cmp al, 0x61
jl 0x7858399e
cmp al, 0x7a
jg 0x7858399e
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x78583990
push esi
push edi
call sym.MSVCR90.dll_strstr
pop ecx
pop ecx
push esi
push 0
mov edi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x78583a14
push 0x2c
push edi
call sym.MSVCR90.dll_strchr
pop ecx
pop ecx
test eax, eax
je 0x78583a14
inc eax
cmp byte [eax], 0x20
je 0x785839cd
mov cl, byte [eax]
xor esi, esi
cmp cl, 0x30
jl 0x78583a14
cmp cl, 0x39
jg 0x785839f3
imul esi, esi, 0xa
movsx ecx, cl
inc eax
lea esi, [esi + ecx - 0x30]
mov cl, byte [eax]
cmp cl, 0x30
jge 0x785839dc
cmp esi, 2
je 0x78583a02
cmp esi, 3
je 0x78583a02
cmp esi, 1
jne 0x78583a14
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x78583a25
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret