joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6e10
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x18c]
mov ebx, dword [ecx + edx*4 + 0x168]
add esi, eax
mov eax, dword [ecx + 0x2b8]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x4c6ebe
cmp dword [ecx + edx*4 + 0x17c], 0x4c69c0
jne 0x4c6ebe
cmp dword [esi], 0
je 0x4c6e57
test edi, edi
je 0x4c6ebe
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004c6000
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c6ebe
test al, 1
je 0x4c6ebe
cmp dword [esi], 0
jne 0x4c6ea7
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x5a9360]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4c6ea7
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4c6ebe
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4c6ed0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x4c6ef9
push dword [esi + 0x15c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x4c6f32
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x56e014
push 2
push eax
call fcn.00526619
push dword [esi + 0x158]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00526619
add esp, 0x20
xor eax, eax
pop esi
ret

Function at 0x4c70f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5a0]
test esi, esi
je 0x4c7146
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x4c710f
cmp dword [edi + 0x40], eax
je 0x4c7146
mov dword [esp + 8], esi
mov byte [esp + 0xc], 0
test eax, eax
jne 0x4c711f
mov eax, dword [edi + 0x40]
push 0x4c7f80
lea ecx, [esp + 0xc]
add eax, 0x68
push ecx
push eax
call fcn.004d2300
add esp, 0xc
cmp byte [esp + 0xc], 0
jne 0x4c714f
mov dword [edi + 0x5a0], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c7159
mov dword [eax], esi
cmp byte [esi + 0x1ac], 0
mov edi, dword [esi + 0x168]
je 0x4c717e
push esi
call fcn.0040c280
add esp, 4
test eax, eax
jne 0x4c7197
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
cmp edi, 0xffffffff
je 0x4c7197
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4c7146
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x4d4620
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4d463a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x572874
push esi
call fcn.00535670
add esp, 8
test eax, eax
je 0x4d4682
test ebp, ebp
je 0x4d4673
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4d46a8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d46a8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4d475f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d46c5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x5a9360]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d4755
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4d4755
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d46f7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d4710
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4d4720
test ebp, ebp
je 0x4d474c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x5a9364]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x5a9364]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4e6800
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5a9464]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00535c43
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4e6865
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4e6865
lea eax, [esp]
push eax
call dword [0x5a936c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00508d84
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.00508d84
add esp, 0x108
ret
Function at 0x4ea310
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4ea33b
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4ea32a
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x4ea370
cmp dword [esi + 8], 0
jne 0x4ea35e
push 0x591044
push dword [eax + 8]
call fcn.0052673d
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4ea35e
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.0052a10e
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4ea392
mov eax, dword [esi + 8]
test eax, eax
je 0x4ea38c
push eax
call fcn.00526811
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x4ee690
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ee6a0
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x5a9360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4ee6c7
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x4ee6e0
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x4ee6d0
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4ee75a
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4ee74e
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x5a9364]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4f4170
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x5a9360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4f4197
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4f41df
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x4f41e3
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4f4245
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4f4204
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4f4277
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x5790c8
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5790c9
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4f4250
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x50d457
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x53fd4b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053fbca

Function at 0x546b59
Capabilities:
Set environment variable

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

Disassembly:
cmp ecx, dword [0x1011fa50]
jne 0x1000a362
repz ret
jmp fcn.1000a685

Function at 0x1000d719
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.1000a45c
and dword [ebp - 4], 0
cmp dword [0x10121da0], 0
mov ebx, eax
jne 0x1000d7ca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000d87b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000d87b
push eax
call fcn.1000a3ea
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10121da0], eax
call esi
push eax
call fcn.1000a3ea
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10121da4], eax
call esi
push eax
call fcn.1000a3ea
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10121da8], eax
call esi
push eax
call fcn.1000a3ea
pop ecx
mov dword [0x10121db0], eax
test eax, eax
je 0x1000d7ca
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000a3ea
pop ecx
mov dword [0x10121dac], eax
mov eax, dword [0x10121dac]
cmp eax, ebx
je 0x1000d822
cmp dword [0x10121db0], ebx
je 0x1000d822
push eax
call fcn.1000a465
push dword [0x10121db0]
mov esi, eax
call fcn.1000a465
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000d822
test edi, edi
je 0x1000d822
call esi
test eax, eax
je 0x1000d819
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000d819
test byte [ebp - 0xc], 1
jne 0x1000d822
or dword [ebp + 0x10], 0x200000
jmp 0x1000d85b
mov eax, dword [0x10121da4]
cmp eax, ebx
je 0x1000d85b
push eax
call fcn.1000a465
pop ecx
test eax, eax
je 0x1000d85b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000d85b
mov eax, dword [0x10121da8]
cmp eax, ebx
je 0x1000d85b
push eax
call fcn.1000a465
pop ecx
test eax, eax
je 0x1000d85b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10121da0]
call fcn.1000a465
pop ecx
test eax, eax
je 0x1000d87b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000d87d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000f3b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [fcn.1000f3b0]
mov dword [0x1011f8bc], 0x2ba
mov dword [ebp - 8], eax
mov eax, dword [0x1011f8bc]
sub eax, 0x19bc
mov dword [0x1011f8c0], eax
jmp 0x1000f3ee
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax], 0x4550
je 0x1000f3fd
jmp 0x1000f405
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1000f3da
jmp 0x1000f407
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1000f450
jmp 0x1000f407
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov eax, dword [0x1011f8c0]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 0x9fc
mov dword [0x1011f8bc], eax
mov al, 1
test al, 1
jne 0x1000f3ee
jmp 0x1000f434
mov eax, dword [0x1011f8bc]
add eax, 0x31f
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [0x1011f8c0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add esp, 0x14
pop ebp
ret
Function at 0x1000fdd0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [0x1011f8bc], 0x9d2
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [0x1011f8bc], 0x2420
mov dword [ebp - 0x10], 0
jmp 0x1000fe9d
mov dword [0x1011f8bc], 0x23ba
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shl ecx, 1
add eax, ecx
add eax, 0xffffffea
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
cmp ecx, 0x61
je 0x1000fe5a
jmp 0x1000fe55
mov dword [0x1011f8c0], 0x18b8
mov dword [ebp - 4], 0
jmp 0x1000fe8c
jmp 0x1000ff71
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
je 0x1000ff02
jmp 0x1000ff6c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
je 0x1000fe15
jmp 0x1000ff71
mov eax, dword [ebp - 4]
add esp, 0x18
pop ebp
ret
jmp 0x1000ff6c
jmp 0x1000fe94
jmp 0x1000fedd
cmp dword [ebp - 0x10], 0x104
jge 0x1000fedd
mov dword [0x1011f8bc], 0x433
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
je 0x1000fe9b
mov eax, dword [0x1011f8bc]
sub eax, 0x20d9
mov dword [0x1011f8c0], eax
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x1000fe9d
mov dword [0x1011f8bc], 0x568
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x1000fe75
jmp 0x1000fe42
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2 - 0x12]
cmp eax, 0x64
jne 0x1000fe94
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
jne 0x1000fe99
mov eax, dword [0x1011f8c0]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 0x1815
mov dword [0x1011f8c0], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x1000ff67
mov dword [0x1011f8bc], 0x263b
mov dword [ebp - 4], 1
jmp 0x1000fe8c
jmp 0x1000fe99
jmp 0x1000fe55
jmp 0x1000fe42
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x49c054], 1
mov dword [0x49c050], 1
mov dword [0x49c04c], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x49c00c], eax
mov eax, dword [0x49c060]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x49c074]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x49c05c]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x455ad4], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x405350
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4053b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x49c068]
test esi, esi
jle 0x4054d0
mov eax, dword [0x49c06c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4053e4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x405467
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4053d0
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4054f7
mov eax, dword [0x49c06c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x49c06c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4054d7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x405460
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x405470
add dword [0x49c068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x49c06c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x405460
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4053ee
mov eax, dword [0x49c06c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop
Function at 0x405a10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x49c084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x49c07c]
sub esp, 4
test ebx, ebx
je 0x405a65
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x405a5e
test esi, esi
je 0x405a5e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x405a40
mov dword [esp], 0x49c084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x405da0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x405dc5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x405dd0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x405dc5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x405e18
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x405e0e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x405e1a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x405e00
xor eax, eax
pop ebx
pop esi
ret
Function at 0x645d6517
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsf ax, cx
jbe 0x645d6545
cmc
bts dx, bx
sub esp, 0x1a
jmp 0x645d6521
mov edx, 0xc1a1b1d5
jmp 0x645d6501
sub esp, 0x1a
call 0x645d6562
mov edx, 0xef728127
bswap eax
ror edx, 0xf
jle 0x645d654c
jg 0x645d654c
jp fcn.645d6517
jno 0x645d6548
jecxz 0x645d658d
mov esp, 0x22d7b022
pushfd
jecxz 0x645d655c
jne 0x645d65a8
xchg edi, eax
cmc
bts dx, bx
jmp 0x645d651e
stosd dword es:[edi], eax
invalid
mov al, bl
jmp 0x645d6590
push 0xac5d228b
mov edi, 0x224648d
sub bl, cl
mov eax, dword [esp]
jmp 0x645d6526
invalid
in al, 0x6b
sti
sahf
insd dword es:[edi], dx
fisttp dword [esi]

Function at 0x645d6606
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dx, 0x452d
mov dx, word [esp]
bswap edx
mov dl, byte [esp]
xchg dword [esp], ecx
jmp 0x645d6937
xor dx, dx
setae dh
mov dh, 0x71
shr edx, cl
call fcn.645d683f

Function at 0x64608ca0
Capabilities:
Encode data using base64

Disassembly:
jbe 0x645c83d5
ja 0x645c83eb
dec ebp
invalid
mov dword [esp + 0xd], ecx
lea esp, [esp + 0x24]
jmp 0x64608c83

Function at 0x64608cd8
Capabilities:
Encode data using base64

Disassembly:
je 0x645c83d5
push ebp
mov word [esp], ax
push dword [esp + 2]
jmp 0x64608ce4
cmp dl, 0x2f
jmp 0x64608caa
lea esp, [esp + 4]
je 0x645c83d5
jne 0x64608cc0
lea esp, [esp + 8]
cmp dl, 0x3d
pushfd
pushfd
jmp 0x64608d26
lea esp, [esp + 8]
jne 0x645c8303
je 0x645c83d5