joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10129886
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.1011c42d
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 8], ecx
lea esi, [eax + 0x50]
lea eax, [esi + 0x250]
mov dword [esi + 8], ecx
mov word [eax], cx
lea ebx, [esi + 4]
mov dword [ebp - 4], eax
lea eax, [edi + 0x80]
mov dword [esi], edi
mov dword [ebx], eax
cmp word [eax], cx
je 0x1012975e
push ebx
push 0x16
push 0x10165d48
call fcn.101296a4
add esp, 0xc
xor ecx, ecx
mov eax, dword [esi]
push esi
cmp word [eax], cx
je 0x101297ad
mov eax, dword [ebx]
cmp word [eax], cx
je 0x10129774
call fcn.101290a1
jmp 0x10129779
call fcn.1012913a
xor eax, eax
pop ecx
cmp dword [esi + 8], eax
jne 0x101297b3
push esi
push pe_nt_image_headers32
push 0x10165a38
call fcn.101296a4
add esp, 0xc
test eax, eax
je 0x101297b3
mov eax, dword [ebx]
xor ecx, ecx
push esi
cmp word [eax], cx
je 0x101297a6
call fcn.101290a1
jmp 0x101297b2
call fcn.1012913a
jmp 0x101297b2
call fcn.1012901a
pop ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x10129902
test edi, edi
je 0x101297d8
cmp word [edi], bx
jne 0x101297d8
cmp word [edi + 0x100], bx
jne 0x101297d8
call dword [sym.imp.kERnEl32.dLL_GetACP]
jmp 0x101297ed
lea eax, [edi + 0x100]
neg edi
push esi
sbb edi, edi
and edi, eax
push edi
call fcn.10129567
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x10129902
cmp esi, 0xfde8
je 0x10129902
movzx eax, si
push eax
call dword [sym.imp.kERnEl32.dLL_IsValidCodePage]
test eax, eax
je 0x10129902
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1012981e
mov dword [eax], esi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x101298ed
mov ecx, dword [ebp - 4]
lea ebx, [edi + 0x120]
xor eax, eax
mov word [ebx], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x1012983a
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
push dword [ebp - 4]
push 0x55
push ebx
call fcn.10128fb6
add esp, 0x10
test eax, eax
jne 0x10129909
push pe_nt_image_headers32
push edi
push 0x1001
push ebx
call fcn.1011b7b9
test eax, eax
je 0x10129902
push pe_nt_image_headers32
lea ebx, [edi + 0x80]
push ebx
push 0x1002
lea eax, [edi + 0x120]
push eax
call fcn.1011b7b9
test eax, eax
je 0x10129902
push 0x5f
push ebx
call fcn.1012f117
pop ecx
pop ecx
test eax, eax
jne 0x101298b4
push 0x2e
push ebx
call fcn.1012f117
pop ecx
pop ecx
test eax, eax
je 0x101298c9
push pe_nt_image_headers32
push ebx
push 7
lea eax, [edi + 0x120]
push eax
call fcn.1011b7b9
test eax, eax
je 0x10129902
add edi, 0x100
cmp esi, 0xfde9
jne 0x101298f2
push 5
push str.utf8
push 0x10
push edi
call fcn.10128fb6
add esp, 0x10
test eax, eax
jne 0x10129909
xor eax, eax
inc eax
jmp 0x10129904
push 0xa
push 0x10
push edi
push esi
call fcn.1012d764
add esp, 0x10
jmp 0x101298ed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10109d7c
int3
Function at 0x1012d851
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101a34c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
push edi
test esi, esi
jne 0x1012d7ca
mov esi, 0x101b6e6c
xor edx, edx
xor ebx, ebx
inc edx
test eax, eax
jne 0x1012d7e4
mov eax, edx
mov edi, 0x1016f310
mov dword [ebp + 0x10], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
jmp 0x1012d7f6
mov edi, eax
cmp dword [ebp + 0x10], ebx
jne 0x1012d7f3
push 0xfffffffffffffffe
pop eax
jmp 0x1012d939
mov eax, dword [ebp - 0x18]
cmp word [esi + 6], bx
jne 0x1012d858
mov bl, byte [edi]
inc edi
test bl, bl
js 0x1012d81b
test eax, eax
je 0x1012d80f
mov ecx, dword [ebp - 0x18]
movzx eax, bl
mov dword [ecx], eax
xor eax, eax
test bl, bl
setne al
jmp 0x1012d939
mov al, bl
and al, 0xe0
cmp al, 0xc0
jne 0x1012d827
mov bh, 2
jmp 0x1012d841
mov al, bl
and al, 0xf0
cmp al, 0xe0
jne 0x1012d833
mov bh, 3
jmp 0x1012d841
mov al, bl
and al, 0xf8
cmp al, 0xf0
jne 0x1012d930
mov bh, 4
push 7
movzx eax, bh
pop ecx
sub ecx, eax
mov byte [ebp - 0x11], bh
shl edx, cl
movzx eax, bl
dec edx
and edx, eax
mov bl, bh
jmp 0x1012d880
mov bh, byte [esi + 4]
mov bl, byte [esi + 6]
mov al, bh
mov edx, dword [esi]
sub al, 2
mov byte [ebp - 0x11], bl
cmp al, 2
ja 0x1012d930
cmp bl, 1
jb 0x1012d930
cmp bl, bh
jae 0x1012d930
mov ecx, dword [ebp + 0x10]
movzx eax, bl
mov dword [ebp - 0x24], eax
cmp eax, ecx
jae 0x1012d88f
mov ecx, eax
mov eax, edi
sub eax, dword [ebp - 0x20]
jmp 0x1012d8bb
mov bl, byte [edi]
inc edi
inc eax
mov byte [ebp - 0x12], bl
mov dword [ebp - 0x20], eax
mov ah, bl
mov bl, byte [ebp - 0x11]
mov al, ah
and al, 0xc0
cmp al, 0x80
jne 0x1012d8dd
movzx eax, ah
and eax, 0x3f
shl edx, 6
or edx, eax
mov eax, dword [ebp - 0x20]
cmp eax, ecx
jb 0x1012d896
mov edi, dword [ebp - 0x24]
cmp ecx, edi
jae 0x1012d8e2
movzx eax, bh
sub bl, cl
mov word [esi + 4], ax
movzx eax, bl
mov dword [esi], edx
mov word [esi + 6], ax
jmp 0x1012d7eb
push dword [ebp - 0x1c]
jmp 0x1012d931
cmp edx, 0xd800
jb 0x1012d8f2
cmp edx, 0xdfff
jbe 0x1012d8dd
cmp edx, 0x10ffff
ja 0x1012d8dd
movzx eax, bh
mov dword [ebp - 0x10], 0x80
mov dword [ebp - 0xc], 0x800
mov dword [ebp - 8], 0x10000
cmp edx, dword [ebp + eax*4 - 0x18]
jb 0x1012d8dd
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1012d921
mov dword [ecx], edx
neg edx
push esi
sbb edx, edx
and edx, edi
push edx
call fcn.1012dded
jmp 0x1012d937
push ecx
push esi
call fcn.1012de01
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100fc8a1
leave
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x4011f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40414d], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.trast
push str.bask
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401238
xor eax, eax
jmp 0x401253
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4025a0
Capabilities:
Terminate process

Disassembly:
mov ecx, 0x404240
push ecx
jmp fcn.004025ab
Function at 0x407fea
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4016b8
call fcn.004082b0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x40803d
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x40803d
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x408055
cmp ecx, 0x20b
je 0x408042
mov dword [ebp - 0x60], ebx
jmp 0x408069
cmp dword [eax + 0x84], 0xe
jbe 0x40803d
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x408063
cmp dword [eax + 0x74], 0xe
jbe 0x40803d
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x40aa94], edi
mov dword [0x40aa98], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x40aa88]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x40aa84]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40aa90], eax
call fcn.004082ac
cmp dword [0x40a040], ebx
jne 0x4080c6
push fcn.004082ac
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040829a
push 0x40a018
push 0x40a014
call sub.msvcrt.dll__initterm
mov eax, dword [0x40aa80]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push dword [0x40aa7c]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x74], eax
push 0x40a010
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
cmp byte [eax], 0x22
jne 0x408151
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x408131
cmp cl, 0x22
jne 0x408122
cmp byte [eax], 0x22
jne 0x40813a
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x408145
cmp cl, 0x20
jbe 0x408136
test byte [ebp - 0x30], 1
je 0x40815c
movzx ecx, word [ebp - 0x2c]
jmp 0x40815f
cmp byte [eax], 0x20
jbe 0x40813a
inc eax
mov dword [ebp - 0x78], eax
jmp 0x408151
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00407a92
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x60], ebx
jne 0x40817d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x4081b9
mov eax, esi
jmp 0x4081cd
call fcn.004082eb
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp int.00401219
Function at 0x4017c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404004]
jne 0x4017ce
repz ret
jmp fcn.00401b99

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5fcb63a4
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x6b20053
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10001720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10007074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100051c8
push str.eE3myMsQE5fMQEaGfWHcwmTjYnsA1RTfNJe
lea eax, [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [0x10007108], eax
mov eax, dword [0x10007108]
add eax, 1
push eax
call fcn.100031f2
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x10007104], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
add esp, 4
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x10007108]
push ecx
push 1
mov edx, dword [0x10007104]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [0x10007108]
push ecx
mov edx, dword [0x10007104]
push edx
call fcn.10001530
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100031fb
mov esp, ebp
pop ebp
ret
Function at 0x10001bf0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x10001c2f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x10001d4b
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x10001cbc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x10001cb7
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x34]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001c90
xor eax, eax
jmp 0x10001d50
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x10001c1d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10001bd0
add esp, 8
test eax, eax
jne 0x10001cdd
xor eax, eax
jmp 0x10001d50
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x34]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001d14
xor eax, eax
jmp 0x10001d50
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x10001c1d
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402210
Capabilities:
Copy file
Delete file
Print debug messages
Write file on windows

Disassembly:
mov eax, 0x1114
call fcn.0040e350
mov eax, dword [0x412598]
push ebp
push esi
mov esi, dword [esp + 0x1120]
cmp esi, eax
push edi
jb 0x402409
mov eax, dword [esp + 0x1128]
test eax, eax
je 0x402409
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x20]
cmp esi, 8
rep stosd dword es:[edi], eax
mov ecx, 0x240
lea edi, [esp + 0x820]
rep stosd dword es:[edi], eax
jbe 0x402262
xor esi, esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
mov eax, dword [esp + 0x18]
push str.GWCLI
shl esi, 4
add esi, 0x4125a0
and ecx, 0xffff
push esi
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x22]
push edx
mov edx, dword [esp + 0x22]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
push str.__02d__02d__02d:_02d:_02d___s___s_
lea eax, [esp + 0x40]
push 0x800
push eax
call fcn.00402420
mov edx, dword [esp + 0x1150]
lea ecx, [esp + 0x1154]
push ecx
push edx
lea eax, [esp + 0x850]
push 0x800
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
mov esi, dword [sym.imp.MSVCRT.dll_strncat]
lea ecx, [esp + 0x858]
push 0x7ff
lea edx, [esp + 0x5c]
push ecx
push edx
call esi
add esp, 0x44
lea eax, [esp + 0x20]
mov byte [esp + 0x81f], 0
push 0x4126a0
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x7ff
lea ecx, [esp + 0x24]
push 0x4126a4
push ecx
call esi
mov al, byte [0x41259c]
add esp, 0xc
test al, 1
mov byte [esp + 0x81f], 0
je 0x40234e
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [0x41259c], 2
je 0x402409
xor ebp, ebp
push ebp
push 0x80
push 4
push ebp
push ebp
push 0x40000000
push str.c:gwlog.txt
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402409
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebp
push ebp
push esi
call edi
cmp eax, 0x400000
jbe 0x40239f
mov ebp, 1
push 2
push 0
push 0
push esi
call edi
cmp eax, 0x500000
jbe 0x4023bf
push 0
push 0
push 0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [esp + 0xc]
push 0
push eax
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x402409
push 0
push str.c:gwlogbk.txt
push str.c:gwlog.txt
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str.c:gwlog.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
add esp, 0x1114
ret

Function at 0x402470
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0x190
ret
Function at 0x402e50
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], 0
test eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x402f63
test ecx, ecx
jbe 0x402f63
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x402f63
test eax, eax
je 0x402f63
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x402eaf
pop edi
mov eax, 0xfffffffe
pop esi
add esp, 0x10
ret 0xc
lea edi, [esi + 0x28]
push 0
push edi
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 1
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x402f34
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x402eed
mov dword [esi + 0xc], 1
mov dword [esp + 8], 0xfffffffe
jmp 0x402f34
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402f11
cmp eax, 0x102
jne 0x402f34
mov dword [esp + 8], 0xfffffffc
jmp 0x402f34
mov edx, dword [esi + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x402f34
mov dword [esp + 8], 0xfffffffd
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 8]
test ecx, ecx
jle 0x402f59
mov edi, dword [esi + 0x48]
mov eax, ecx
cdq
add edi, eax
mov dword [esi + 0x48], edi
mov eax, dword [esi + 0x4c]
adc eax, edx
mov dword [esi + 0x4c], eax
pop edi
mov eax, ecx
pop esi
add esp, 0x10
ret 0xc
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 0xc

Function at 0x404d00
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
push 0
push 0
push 0x64
push 0xc8
push 0
push accept
push 0xcf0000
push 0x414214
push 0x414278
push 0
mov dword [0x414210], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x41420c], eax
jne 0x404d3f
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call fcn.00405470
mov eax, dword [0x41420c]
add esp, 4
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
ret

Function at 0x405470
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x1e8
push edi
mov ecx, 0x7a
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [0x414210]
mov eax, dword [0x41420c]
push 0x6c
push ecx
mov dword [esp + 0xc], 0x1e8
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1f0]
test eax, eax
mov dword [esp + 0x10], 7
mov dword [esp + 0x14], 0x401
mov byte [esp + 0x1c], 0
pop edi
jne 0x4054dd
lea edx, [esp]
push edx
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
add esp, 0x1e8
ret
lea eax, [esp]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
add esp, 0x1e8
ret
Function at 0x4069f0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
test esi, esi
jne 0x406a2f
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x406a5e
mov dword [ebp - 4], 0
push esi
call fcn.004069c0
push esi
call fcn.00406660
add esp, 8
jmp 0x406a57
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406b1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x406b0a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov byte [ebp - 0x128], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x16]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x18]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x1a]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1e]
and edx, 0xffff
push edx
push esi
push str._s._x_x_x_x_x
push 0x103
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x24
push 3
lea ecx, [ebp - 0x128]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
push 4
push 0
lea edx, [ebp - 0x128]
push edx
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret