joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f0f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x439f70]
push edi
push 6
call fcn.00408a8d
xor ebp, ebp
cmp eax, ebp
je 0x405f3a
push 0x447000
call eax
movzx eax, ax
cdq
push edx
push eax
call fcn.00404d49
jmp 0x405f94
mov edi, 0x431808
push ebp
push edi
push ebp
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov word [0x447000], 0x30
mov word [0x447002], 0x78
mov word [0x447004], bp
call fcn.004084b3
cmp word [0x431808], bp
jne 0x405f89
push ebp
push edi
push 0x40a4dc
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.004084b3
push edi
push 0x447000
call sub.KERNEL32.dll_lstrcatW
call fcn.0040616f
mov eax, dword [0x439f78]
mov ebx, 0x445800
and eax, 0x20
push ebx
mov dword [0x439fc0], eax
mov dword [0x439fdc], 0x10000
call fcn.00408111
test eax, eax
jne 0x40604f
mov ecx, dword [esi + 0x40]
cmp ecx, ebp
je 0x40604f
mov edx, dword [esi + 0x44]
mov eax, dword [0x439f98]
mov edi, 0x436ee0
push ebp
lea edx, [eax + edx*2]
push edi
lea eax, [eax + ecx*2]
push edx
push eax
push dword [esi + 0x3c]
call fcn.004084b3
mov ax, word [0x436ee0]
cmp ax, bp
je 0x40604f
cmp ax, 0x22
jne 0x40600e
mov edi, 0x436ee2
push 0x22
push edi
call fcn.00408036
mov word [eax], bp
push edi
call sub.KERNEL32.dll_lstrlenW
lea eax, [edi + eax*2 - 8]
cmp eax, edi
jbe 0x406042
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406042
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40603c
test al, 0x10
jne 0x406042
push edi
call fcn.00408055
push edi
call fcn.00408009
push eax
push ebx
call fcn.0040852d
push ebx
call fcn.00408111
test eax, eax
jne 0x406065
push dword [esi + 0x104]
push ebx
call fcn.0040854f
test byte [0x439f78], 0x10
je 0x406085
cmp dword [0x439f7c], ebp
jne 0x406085
call fcn.00405eee
mov dword [0x436ec0], 1
push 0x8040
push ebp
push ebp
push 1
push 0x67
push dword [0x439f60]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x438f28], eax
call fcn.00405e2e
push ebp
call fcn.004012fc
test eax, eax
je 0x4060b8
push 2
pop eax
jmp 0x40616a
call fcn.0040616f
cmp dword [0x439fe0], ebp
jne 0x40613f
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RichEd20
call esi
test eax, eax
jne 0x4060dd
push str.RichEd32
call esi
mov edi, dword [sym.imp.USER32.dll_GetClassInfoW]
mov esi, 0x438ee0
mov ebx, str.RichEdit20A
push esi
push ebx
push ebp
call edi
test eax, eax
jne 0x40610c
push esi
push str.RichEdit
push ebp
call edi
push esi
mov dword [0x438f04], ebx
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x438f20]
push ebp
add eax, 0x69
push 0x406231
movzx eax, ax
push ebp
push eax
push dword [0x439f60]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 5
mov esi, eax
call fcn.004012fc
push 1
call fcn.00404a58
mov eax, esi
jmp 0x40616a
push ebp
call fcn.004078e4
test eax, eax
je 0x406161
cmp dword [0x438f0c], ebp
jne 0x4060b0
push 2
call fcn.004012fc
jmp 0x4060b0
push 1
call fcn.004012fc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407d14
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x434c10], 0x44
push eax
xor eax, eax
push 0x434c10
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407d4f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x408111
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x434010
push esi
call fcn.0040852d
push esi
call fcn.004080b4
mov edi, eax
test edi, edi
jne 0x408132
xor eax, eax
jmp 0x40818a
push edi
call fcn.004087cd
test byte [0x439f78], 0x80
je 0x40814f
mov ax, word [edi]
test ax, ax
je 0x40812e
cmp ax, 0x5c
je 0x40812e
sub edi, esi
sar edi, 1
jmp 0x408169
call fcn.00408a66
test eax, eax
je 0x408163
test byte [eax], 0x10
je 0x40812e
push esi
call fcn.00408055
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x408155
call fcn.00408009
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40822f
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x408232
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x408261
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40d468]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40d46c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4082b1
test edi, edi
jne 0x40826e
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4082ab
Function at 0x4082b5
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x4356a8
push 0x40d47c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
mov esi, 0x400
je 0x408303
push 1
push ebp
push edi
call fcn.00408232
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40847a
cmp eax, esi
jg 0x40847a
mov edi, 0x435ea8
push esi
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40847a
cmp eax, esi
jg 0x40847a
push ebp
push ebp
push esi
push 0x4352a8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x40847a
push ebp
push ebp
push esi
mov esi, 0x434810
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x40847a
push esi
push 0x4352a8
push str._s_s_r_n
push 0x434ea8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x439f70]
add esp, 0x10
push dword [eax + 0x114]
push edi
call fcn.0040854f
push 4
push 0xc0000000
push edi
call fcn.00408232
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40847a
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x408470
lea eax, [esp + 0x10]
push ebp
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408470
cmp edi, dword [esp + 0x10]
jne 0x408470
push str._Rename__r_n
push esi
call fcn.0040818f
cmp eax, ebp
jne 0x408407
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x408438
add eax, 0xa
push 0x40d470
push eax
call fcn.0040818f
mov ebp, eax
test ebp, ebp
je 0x408436
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x408429
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x408423
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x40843a
xor ebp, ebp
mov eax, edi
push ebx
add eax, esi
push 0x434ea8
push eax
call fcn.004081e5
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push ebp
add edi, ebx
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4084b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408527
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408514
cmp dword [ebp + 0x14], 1
je 0x408517
cmp dword [ebp + 0x14], 2
je 0x408517
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x40887c
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x4088a7
mov eax, dword [0x40d140]
cmp eax, 0xffffffff
je 0x40889b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40d140], 0xffffffff
jmp 0x40894c
cmp dword [0x436ec0], ebx
je 0x40894c
cmp word [0x4366c0], bx
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x40891c
cmp dword [0x40d140], 0xffffffff
jne 0x408925
mov esi, 0x4366c0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00408232
cmp eax, 0xffffffff
mov dword [0x40d140], eax
je 0x40894c
cmp dword [ebp + 8], 0xffffffff
jne 0x408911
lea ecx, [ebp - 4]
push ebx
push ecx
lea ecx, [ebp + 8]
push 2
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40d140]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40d140], 0xffffffff
je 0x40894c
mov esi, 0x437ee0
push 0x40d498
push esi
call sub.KERNEL32.dll_lstrcatW
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenW
add eax, eax
push eax
push esi
push dword [0x40d140]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40a700
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4263d4]
jne 0x40a70a
repz ret
jmp fcn.004108fc

Function at 0x4165ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4263d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d59f
and dword [ebp - 0x14], 0
cmp dword [0x46844c], 0
mov dword [ebp - 0x18], eax
jne 0x41665f
push 0x403804
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x416707
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4037f8
push ebx
call edi
test eax, eax
je 0x416707
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4037e8
push ebx
mov dword [0x46844c], eax
call edi
push eax
call esi
push 0x4037d4
push ebx
mov dword [0x468450], eax
call edi
push eax
call esi
push 0x4037b8
push ebx
mov dword [0x468454], eax
call edi
push eax
call esi
mov dword [0x46845c], eax
test eax, eax
je 0x41665f
push 0x4037a0
push ebx
call edi
push eax
call esi
mov dword [0x468458], eax
mov eax, dword [0x468458]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4166b8
cmp dword [0x46845c], ecx
je 0x4166b8
push eax
call esi
push dword [0x46845c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4166b8
test ebx, ebx
je 0x4166b8
call edi
test eax, eax
je 0x4166af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4166af
test byte [ebp - 8], 1
jne 0x4166b8
or dword [ebp + 0x10], 0x200000
jmp 0x4166eb
mov eax, dword [0x468450]
cmp eax, dword [ebp - 0x18]
je 0x4166eb
push eax
call esi
test eax, eax
je 0x4166eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4166eb
mov eax, dword [0x468454]
cmp eax, dword [ebp - 0x18]
je 0x4166eb
push eax
call esi
test eax, eax
je 0x4166eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46844c]
call esi
test eax, eax
je 0x416707
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x416709
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a700
leave
ret
Function at 0x41e8a0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.0041da80
cmp dword [0x8091d0], 0x37
jne 0x41e931
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x404410
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x404430
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x8091d4]
mov edx, dword [0x805640]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x4069cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069ef
xor eax, eax
test eax, eax
je 0x406a02
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a02
xor ecx, ecx
jmp 0x406a05
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b28
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a662c], 0
push esi
jne 0x406b5f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b39
mov dword [ecx*4 + 0x7a6628], eax
inc ecx
cmp ecx, 0x100
jl 0x406b34
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b90
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a6628]
xor eax, esi
inc ecx
dec edx
jne 0x406b72
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x407ef8
nop
mov ecx, 0x394b29d7
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section._RDATA
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x16d82da7
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x100176a0
Capabilities:
Enumerate pe sections
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0xc], edx
xor eax, eax
mov word [ebp - 4], ax
jmp 0x10017707
mov cx, word [ebp - 4]
add cx, 1
mov word [ebp - 4], cx
movzx edx, word [ebp - 4]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 6]
cmp edx, ecx
jge 0x1001775a
movzx edx, word [ebp - 4]
imul eax, edx, 0x28
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
mov ecx, dword [ebp - 0xc]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x20]
sub edx, 1
and edx, dword [ebp - 0x10]
jne 0x10017741
mov dword [ebp - 0x14], 1
jmp 0x10017748
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10017758
jmp 0x1001777e
jmp 0x100176fb
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov edx, dword [ebp + 8]
and ecx, dword [edx + 0x34]
jne 0x10017771
mov dword [ebp - 0x18], 1
jmp 0x10017778
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x100191e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
call fcn.10017580
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1001920a
mov dword [ebp - 8], 0
jmp 0x10019276
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x10], ecx
xor edx, edx
mov word [ebp - 4], dx
jmp 0x1001922f
mov ax, word [ebp - 4]
add ax, 1
mov word [ebp - 4], ax
movzx ecx, word [ebp - 4]
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 6]
cmp ecx, eax
jge 0x10019267
movzx ecx, word [ebp - 4]
imul edx, ecx, 0x28
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx + 0xc]
push ecx
call fcn.10018d60
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10019265
jmp 0x10019276
jmp 0x10019223
mov edx, dword [ebp + 8]
push edx
call fcn.10018d60
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x10061594
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x100615b5
jl 0x100615ac
test edi, edi
jne 0x100615b5
xor eax, eax
xor edx, edx
jmp 0x10061676
cmp dword [ebx + 0x38], 0
je 0x100615ca
push eax
push edi
push dword [ebp + 8]
call fcn.10022ee0
jmp 0x10061676
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10061611
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10061611
cmp eax, edi
jb 0x100615eb
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10064c00
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x10061617
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1006166b
mov ecx, ebx
call fcn.10060eff
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x10061656
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10072053
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1006166b
jmp 0x10061629
test edx, edx
je 0x1006166b
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10072053
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x1007438d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100743cc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100743cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100743cc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100743cc
cmp dword [ecx + 0x74], 0xe
jbe 0x100743cc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1007a7a6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100948e8
push 0x100948e0
push str.FlsAlloc
push 0x1f
call fcn.1007a611
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007a7da
push dword [ebp + 8]
mov ecx, esi
call dword [0x10090168]
call esi
jmp 0x1007a7e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1007a824
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100948f8
push 0x100948f0
push str.FlsGetValue
push 0x21
call fcn.1007a611
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007a85b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10090168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1007a863
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10094900
push 0x100948f8
push str.FlsSetValue
push 0x22
call fcn.1007a611
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007a89d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10090168]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1007bf79
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100633b0
mov eax, dword [0x100b0040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10078853
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1007bfbb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1007c117
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10086f30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100b29a0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1007cf76
mov ecx, dword [esi*4 + 0x100b29a0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1007c110
cmp eax, dword [ecx + edi + 0x24]
jne 0x1007c110
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1007c110
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1007cf76
add esp, 0x14
test edx, edx
jl 0x1007c110
jg 0x1007c086
test eax, eax
jb 0x1007c110
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1007c110
jl 0x1007c0a0
cmp dword [ebp - 0x1008], eax
ja 0x1007c110
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1007c0be
test ebx, ebx
je 0x1007c0f7
cmp ecx, edi
jae 0x1007c0f7
mov al, byte [ecx]
cmp al, 0xd
jne 0x1007c0d8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1007c0e4
cmp byte [ecx + 1], 0xa
jne 0x1007c0e4
inc ecx
jmp 0x1007c0e4
movzx eax, al
movsx eax, byte [eax + 0x100b04b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1007c0be
cmp edx, ebx
jne 0x1007c0be
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1007c115
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1006222d
leave
ret