joyce8/EMBER2024-capa huggingface dataset:
Function at 0x523690
Capabilities:
Get hostname
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [0x6227c0]
test eax, eax
je 0x523890
mov dword [esp + 4], str.UuidCreate
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x5236eb
lea edx, [esp + 0x70]
mov dword [esp], edx
call eax
sub esp, 4
test eax, eax
sete cl
cmp eax, 0x720
sete dl
or cl, dl
jne 0x523800
cmp eax, 0x6cb
je 0x523800
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll_time]
mov ebx, eax
mov dword [esp + 0x68], eax
call sub.msvcrt.dll_rand
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x68]
mov dword [esp + 0x6c], 0x10
mov dword [esp + 4], eax
lea eax, [esp + 0x80]
movzx esi, ch
mov edi, ecx
mov ebp, ecx
mov dword [esp + 0x58], ecx
mov dword [esp], eax
shr edi, 0x10
shr ebp, 0x18
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
sub esp, 8
movzx eax, byte [esp + 0x83]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], str._02X_02X_02X_02X__02X_02X__02X_02X__02X_02X__02X_02X_02X_02X_02X_02X
mov dword [esp], 0x620be0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x44], eax
movzx eax, byte [esp + 0x82]
movzx ecx, cl
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], eax
movzx eax, byte [esp + 0x81]
mov dword [esp + 0x3c], eax
movzx eax, byte [esp + 0x80]
mov dword [esp + 0x38], eax
mov eax, edi
movzx edi, al
mov eax, esi
movzx esi, al
mov eax, edx
mov dword [esp + 0x30], edi
shr eax, 0x18
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
mov eax, edx
sar eax, 0x10
movzx eax, al
mov dword [esp + 0x20], eax
movzx eax, dh
movzx edx, dl
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x18], edx
shr eax, 0x18
mov dword [esp + 0x14], eax
mov eax, ebx
sar eax, 0x10
movzx eax, al
mov dword [esp + 0x10], eax
movzx eax, bh
movzx ebx, bl
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_sprintf
add esp, 0x9c
mov eax, 0x620be0
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [esp + 0x7f]
mov dword [esp + 4], str._08lX__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
mov dword [esp], 0x620be0
mov dword [esp + 0x30], eax
movzx eax, byte [esp + 0x7e]
mov dword [esp + 0x2c], eax
movzx eax, byte [esp + 0x7d]
mov dword [esp + 0x28], eax
movzx eax, byte [esp + 0x7c]
mov dword [esp + 0x24], eax
movzx eax, byte [esp + 0x7b]
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x7a]
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x79]
mov dword [esp + 0x18], eax
movzx eax, byte [esp + 0x78]
mov dword [esp + 0x14], eax
movzx eax, word [esp + 0x76]
mov dword [esp + 0x10], eax
movzx eax, word [esp + 0x74]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
call sub.msvcrt.dll_sprintf
add esp, 0x9c
mov eax, 0x620be0
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.Rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
sub esp, 4
test eax, eax
mov dword [0x6227c0], eax
je 0x5236eb
jmp 0x5236a7
Function at 0x53ca70
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x44]
test eax, eax
je 0x53cb40
cmp byte [eax + 0x6330a0], 0
jne 0x53cb40
mov dword [esp], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
sub esp, 4
test eax, eax
je 0x53cbd4
mov dword [esp], 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
sub esp, 4
test eax, eax
mov esi, eax
je 0x53cc20
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
mov ebp, eax
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
lea edi, [eax*4]
mov dword [esp + 0x1c], eax
lea eax, [edi + 1]
mov dword [esp], eax
call fcn.00606c50
mov edx, dword [esp + 0x1c]
mov ebx, eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0xc], edx
call fcn.0060a560
mov byte [ebx + eax], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [ebx + 1]
sub esp, 4
mov ecx, ebx
jmp 0x53cb28
mov byte [ecx], al
add ecx, 1
add edx, 1
movzx eax, byte [edx - 1]
test al, al
je 0x53cbdc
cmp al, 0xd
jne 0x53cb20
cmp byte [edx], 0xa
jne 0x53cb20
jmp 0x53cb25
mov ebx, dword [eax*4 + 0x6330fc]
test ebx, ebx
je 0x53cbca
mov eax, dword [eax*4 + 0x63310c]
add eax, 1
mov dword [esp], eax
call fcn.00606c50
lea edx, [ebx + 1]
mov esi, eax
mov ecx, eax
jmp 0x53cb78
mov byte [ecx], al
add ecx, 1
add edx, 1
movzx eax, byte [edx - 1]
test al, al
je 0x53cb90
cmp al, 0xd
jne 0x53cb70
cmp byte [edx], 0xa
jne 0x53cb70
jmp 0x53cb75
mov eax, dword [esp + 0x40]
mov byte [ecx], 0
sub ecx, esi
mov dword [0x621188], ecx
mov dword [0x62115c], esi
mov dword [0x62112c], 0x664cf9
mov ecx, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp], 0x11
call dword [eax + 0xc]
sub esp, 4
mov dword [esp], esi
call fcn.00606c30
mov dword [0x62115c], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x40]
mov byte [ecx], 0
sub ecx, ebx
mov dword [0x621188], ecx
mov dword [0x62115c], ebx
mov dword [0x62112c], 0x664cf9
mov ecx, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp], 0x11
call dword [eax + 0xc]
sub esp, 4
mov dword [esp], ebx
call fcn.00606c30
mov dword [0x62115c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x53cbd4
Function at 0x53e010
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x53e165
mov dword [esp + 4], str.none
mov dword [esp], ebx
call fcn.00608650
test eax, eax
jne 0x53e0b0
mov eax, dword [0x621178]
xor ebx, ebx
test eax, eax
je 0x53e110
mov dword [esp], eax
call fcn.004defc0
test ebx, ebx
mov dword [0x621178], ebx
mov dword [0x632ba0], 0x4b544c46
mov dword [0x632ba4], 0x4843535f
mov dword [0x632ba8], 0x3d454d45
mov byte [0x632bac], 0
je 0x53e092
mov dword [esp + 8], 0x400
mov dword [esp + 4], ebx
mov dword [esp], 0x632ba0
call fcn.00609a50
mov dword [esp], 0x632ba0
call dword [sym.imp.msvcrt.dll__putenv]
add esp, 0x18
pop ebx
jmp fcn.00539f70
mov dword [esp + 4], str.base
mov dword [esp], ebx
call fcn.00608650
test eax, eax
je 0x53e034
cmp byte [ebx], 0
je 0x53e034
mov dword [esp + 4], 0x666959
mov dword [esp], ebx
call fcn.00608650
test eax, eax
jne 0x53e140
mov dword [esp], 0x666959
call dword [sym.imp.msvcrt.dll__strdup]
mov ebx, eax
mov eax, dword [0x621178]
test eax, eax
je 0x53e04b
jmp 0x53e043
mov dword [0x632ba0], 0x4b544c46
mov dword [0x632ba4], 0x4843535f
mov dword [0x632ba8], 0x3d454d45
mov byte [0x632bac], 0
jmp 0x53e092
mov dword [esp + 4], 0x66693a
mov dword [esp], ebx
call fcn.00608650
test eax, eax
jne 0x53e180
mov dword [esp], 0x66693a
call dword [sym.imp.msvcrt.dll__strdup]
mov ebx, eax
jmp 0x53e0f4
mov dword [esp], str.FLTK_SCHEME
call sub.msvcrt.dll_getenv
test eax, eax
mov ebx, eax
je 0x53e034
jmp 0x53e020
mov dword [esp + 4], 0x66695e
mov dword [esp], ebx
call fcn.00608650
test eax, eax
jne 0x53e034
mov dword [esp], 0x66695e
call dword [sym.imp.msvcrt.dll__strdup]
mov ebx, eax
jmp 0x53e0f4
Function at 0x540510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x50
mov eax, dword [ecx + 8]
lea ecx, [esp + 0x4c]
mov esi, dword [esp + 0x60]
movzx edx, byte [eax + 0x94]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x7c]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x84]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x80]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], edx
lea edx, [esp + 0x44]
mov dword [esp + 8], edx
lea edx, [esp + 0x40]
mov dword [esp + 4], edx
lea edx, [esp + 0x3c]
mov dword [esp], edx
lea edx, [esp + 0x48]
call fcn.004f0f70
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea ecx, [edx + ecx*2]
mov edx, dword [ebx + 8]
add eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov edi, dword [edx + 0x78]
add edi, eax
mov dword [esi + 0x18], edi
mov edx, dword [ebx + 8]
mov edi, dword [edx + 0x7c]
add edi, ecx
mov dword [esi + 0x1c], edi
mov edx, dword [ebx + 8]
mov edi, dword [edx + 0x80]
test edi, edi
je 0x5405d0
add edi, eax
mov dword [esi + 0x20], edi
mov edx, dword [ebx + 8]
add eax, dword [edx + 0x80]
mov dword [esi + 8], eax
mov edx, dword [ebx + 8]
mov eax, dword [edx + 0x84]
test eax, eax
je 0x5405eb
add eax, ecx
mov dword [esi + 0x24], eax
mov eax, dword [ebx + 8]
add ecx, dword [eax + 0x84]
mov dword [esi + 0xc], ecx
add esp, 0x50
pop ebx
pop esi
pop edi
ret 4
Function at 0x555780
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x10
mov eax, dword [ecx + 4]
mov esi, dword [ebp + 8]
test eax, eax
je 0x5557bb
cmp esi, 0xf
je 0x5557d0
cmp esi, 0x10
jne 0x5557bb
mov eax, dword [ecx + 0x68]
test eax, eax
je 0x555814
mov dword [esp + 4], 9
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 8
mov dword [ebp + 8], esi
lea esp, [ebp - 8]
mov ecx, ebx
pop ebx
pop esi
pop ebp
jmp fcn.00543880
mov edx, dword [ecx + 0x68]
test edx, edx
je 0x5557bb
test byte [ecx + 0x40], 2
je 0x555806
mov dword [esp + 4], 0
mov eax, dword [edx]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp + 8], esi
sub esp, 8
lea esp, [ebp - 8]
mov ecx, ebx
pop ebx
pop esi
pop ebp
jmp fcn.00543880
mov eax, dword [eax + 4]
test byte [eax + 0x40], 2
je 0x555803
cmp byte [eax + 0x4c], 0xef
jbe 0x5557dd
jmp 0x5557bb
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
cmp eax, fcn.00554fa0
jne 0x55587d
mov eax, dword [0x621100]
test eax, eax
mov dword [ecx + 0x24], eax
je 0x555897
mov dword [ecx + 0x38], 0x50
xor eax, eax
mov byte [ebx + 0x3c], al
mov dword [esp], ebx
call dword [0x61fe08]
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x55589e
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_IsIconic]
sub esp, 4
test eax, eax
jne 0x555884
mov eax, dword [0x633070]
test eax, eax
jne 0x5557bb
mov eax, dword [ebx + 0x68]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
sub esp, 4
jmp 0x5557bb
call eax
jmp 0x5557bb
mov eax, dword [ebx + 0x68]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_OpenIcon]
sub esp, 4
jmp 0x55585a
ret
mov eax, 1
jmp 0x555835
mov dword [esp], ebx
call fcn.00540990
jmp 0x5557bb
Function at 0x5a64e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
lea esi, [esp + 0x1c]
lea edi, [esp + 0x60]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], 0x607c20
mov dword [esp + 0x38], 0x60fecc
mov dword [esp], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0x5a660a
mov dword [esp + 0x44], esp
mov dword [esp + 0x18], esi
call fcn.004cf190
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x5f]
mov dword [eax + 4], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 0x20], 0xffffffff
call fcn.005a8000
sub esp, 8
cmp byte [esp + 0x5f], 0
je 0x5a6582
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
mov ecx, dword [ebx + eax + 0x78]
mov edx, dword [ecx + 8]
cmp dword [ecx + 0xc], edx
jbe 0x5a65e0
movzx eax, byte [edx]
add edx, 1
mov dword [ecx + 8], edx
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x80]
mov dword [ebx + 4], 1
mov byte [edx], al
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
test eax, eax
je 0x5a65b0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004cf200
mov eax, dword [esp + 0x14]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, 4
mov edi, dword [esp + 0x14]
mov edx, dword [edi]
mov ecx, dword [edx - 0xc]
add ecx, edi
or eax, dword [ecx + 0x14]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call fcn.005fbb80
sub esp, 4
jmp 0x5a658d
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x20], 1
call eax
cmp eax, 0xffffffff
jne 0x5a656e
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 4]
test edx, edx
jne 0x5a662a
mov eax, 6
jmp 0x5a65b5
mov eax, 2
jmp 0x5a65b5
Function at 0x608dd0
Capabilities:
Create directory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0060aa20
lea esi, [eax + 1]
lea eax, [esi + esi]
mov dword [esp + 4], eax
mov eax, dword [0x61e6a0]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
xor esi, esi
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [0x61e6a0], eax
call fcn.0060aa20
mov edx, dword [0x61e6a0]
mov word [edx + eax*2], si
mov dword [esp], edx
mov dword [esp + 4], 0
call dword [sym.imp.msvcrt.dll__waccess]
test eax, eax
mov edx, 1
je 0x608f19
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call sub.msvcrt.dll_strrchr
xor edx, edx
test eax, eax
je 0x608f19
sub eax, ebx
mov esi, eax
lea eax, [eax + 1]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 8], esi
mov edi, eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov byte [edi + esi], 0
mov dword [esp], edi
call fcn.00608dd0
mov dword [esp], edi
call fcn.004defc0
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0060aa20
lea esi, [eax + 1]
lea eax, [esi + esi]
mov dword [esp + 4], eax
mov eax, dword [0x61e6a0]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [0x61e6a0], eax
call fcn.0060aa20
mov edx, dword [0x61e6a0]
xor ecx, ecx
mov word [edx + eax*2], cx
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll__wmkdir]
mov edx, 1
add esp, 0x10
mov eax, edx
pop ebx
pop esi
pop edi
ret
Function at 0x608f30
Capabilities:
Create directory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov edi, dword [esp + 0x20]
mov dword [esp + 4], 0x2f
mov dword [esp], edi
call sub.msvcrt.dll_strrchr
test eax, eax
je 0x609110
sub eax, edi
mov esi, eax
lea eax, [eax + 1]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 8], esi
mov ebx, eax
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov byte [ebx + esi], 0
mov esi, ebx
mov edx, dword [esi]
add esi, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x608f79
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
shr edx, 0x10
test eax, 0x8080
mov dword [esp], ebx
cmove eax, edx
lea edx, [esi + 2]
mov ecx, eax
cmove esi, edx
add cl, al
sbb esi, 3
sub esi, ebx
mov dword [esp + 4], esi
call fcn.0060aa20
lea edi, [eax + 1]
lea eax, [edi + edi]
mov dword [esp + 4], eax
mov eax, dword [0x61e6a0]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [esp + 4], esi
mov dword [esp + 0xc], edi
xor esi, esi
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [0x61e6a0], eax
call fcn.0060aa20
mov edx, dword [0x61e6a0]
mov word [edx + eax*2], si
mov dword [esp + 4], 0
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll__waccess]
test eax, eax
je 0x6090fe
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call sub.msvcrt.dll_strrchr
test eax, eax
je 0x6090fe
sub eax, ebx
mov esi, eax
lea eax, [eax + 1]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 8], esi
mov edi, eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov byte [edi + esi], 0
mov dword [esp], edi
mov esi, ebx
call fcn.00608dd0
mov dword [esp], edi
call fcn.004defc0
mov edx, dword [esi]
add esi, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x60906b
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
shr edx, 0x10
test eax, 0x8080
mov dword [esp], ebx
cmove eax, edx
lea edx, [esi + 2]
mov ecx, eax
cmove esi, edx
add cl, al
sbb esi, 3
sub esi, ebx
mov dword [esp + 4], esi
call fcn.0060aa20
lea edi, [eax + 1]
lea eax, [edi + edi]
mov dword [esp + 4], eax
mov eax, dword [0x61e6a0]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [0x61e6a0], eax
call fcn.0060aa20
mov edx, dword [0x61e6a0]
xor ecx, ecx
mov word [edx + eax*2], cx
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll__wmkdir]
mov dword [esp + 0x20], ebx
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.004defc0
add esp, 0x10
pop ebx
pop esi
pop edi
ret
Function at 0x46c63b
Capabilities:
Parse pe header

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

Function at 0x470ce2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0047da20
mov eax, dword [0x485080]
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.0047455f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x470d24
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x470e80
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047d970
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 + 0x485f78]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00473a18
mov ecx, dword [esi*4 + 0x485f78]
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 0x470e79
cmp eax, dword [ecx + edi + 0x24]
jne 0x470e79
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 0x470e79
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00473a18
add esp, 0x14
test edx, edx
jl 0x470e79
jg 0x470def
test eax, eax
jb 0x470e79
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x470e79
jl 0x470e09
cmp dword [ebp - 0x1008], eax
ja 0x470e79
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x470e27
test ebx, ebx
je 0x470e60
cmp ecx, edi
jae 0x470e60
mov al, byte [ecx]
cmp al, 0xd
jne 0x470e41
lea eax, [edi - 1]
cmp ecx, eax
jae 0x470e4d
cmp byte [ecx + 1], 0xa
jne 0x470e4d
inc ecx
jmp 0x470e4d
movzx eax, al
movsx eax, byte [eax + 0x4852c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x470e27
cmp edx, ebx
jne 0x470e27
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x470e7e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046bd70
leave
ret
Function at 0x474586
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 + 0x485f78]
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 0x4745c6
cmp byte [ebx], 0xa
jne 0x4745c6
or byte [edi + eax + 0x28], 4
jmp 0x4745cb
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 0x4746ca
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4746ad
inc eax
cmp dl, 0xd
je 0x4745f7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x47461d
cmp eax, ecx
jae 0x47462b
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 0x4745df
jmp 0x4746ca
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 0x4746a8
cmp dword [ebp - 0x10], 0
je 0x4746a8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x485f78]
test byte [eax + edi + 0x28], 0x48
je 0x474682
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47466d
mov byte [esi], dl
jmp 0x47467e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x485f78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4746ca
cmp byte [ebp - 1], 0xa
jne 0x474691
cmp esi, ebx
jne 0x474691
mov byte [esi], 0xa
jmp 0x4746c9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00473a36
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4746ca
mov byte [esi], 0xd
jmp 0x4746c9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x485f78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4746c7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4746ca
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4746d3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x485f78]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x474719
cmp word [ebx], dx
jne 0x474719
or byte [eax + edi + 0x28], 4
jmp 0x47471e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x474881
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x474861
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x47475f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x474795
cmp eax, edx
jae 0x4747a3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x47473a
jmp 0x474881
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47485c
cmp dword [ebp - 0x18], 0
je 0x47485c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x485f78]
test byte [eax + edi + 0x28], 0x48
je 0x474832
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4747f6
mov word [esi], cx
jmp 0x47482d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x485f78]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x485f78]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x485f78]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x474881
pop eax
cmp word [ebp - 4], ax
jne 0x474842
cmp esi, ebx
jne 0x474842
mov word [esi], ax
jmp 0x47487e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00473a36
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x474881
push 0xd
pop eax
jmp 0x47483d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x485f78]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x47487b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x474881
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret