joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406430
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x26c
cmp byte [0x409009], 0
push ebx
push ebp
push esi
push edi
je 0x4065b7
call fcn.004065d0
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x41b280]
push 0x17
call fcn.00402950
lea ecx, [esp + 0x14]
push ecx
mov ebp, eax
mov eax, dword [0x41b280]
push 0x38
call fcn.00402950
mov edi, eax
test edi, edi
je 0x4065b7
test ebp, ebp
je 0x4065b7
push 0x104
lea edx, [esp + 0x74]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4065b7
lea edx, [esp + 0x70]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4064a0
mov ecx, edi
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4064b0
mov eax, 0x419230
mov si, word [eax]
add eax, 2
test si, si
jne 0x4064c0
sub eax, 0x419230
sub ecx, edi
sar eax, 1
sar ecx, 1
lea eax, [ecx + eax*2 - 2]
lea ecx, [esp + 0x70]
sub edx, ecx
sar edx, 1
add eax, edx
lea eax, [eax + eax + 2]
test eax, eax
je 0x4065b7
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4065b7
push 0x419230
push 0x419230
lea edx, [esp + 0x78]
push edx
push edi
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00401100
add esp, 0xc
push 0x10
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00401100
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40658e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004065d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov edx, dword [esp + 0x18]
push edx
call ebx
mov eax, ebp
call fcn.00404250
mov eax, edi
call fcn.00404250
mov eax, esi
call fcn.00404250
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret

Function at 0x4065e0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x41b2a4]
sub esp, 0xc
test eax, eax
jne 0x4065f7
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x41b2a4], eax
cmp al, 6
jae 0x40660b
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
add esp, 0xc
ret
lea eax, [esp]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40662b
xor al, al
add esp, 0xc
ret
mov eax, dword [esp]
lea ecx, [esp + 8]
push ecx
push 4
lea edx, [esp + 0xc]
push edx
push 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esp + 4], eax
setne al
add esp, 0xc
ret
Function at 0x406660
Capabilities:
Get common file path

Disassembly:
push edi
push 0x104
push 0x419028
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor edi, edi
test eax, eax
jne 0x406680
mov word [0x419028], di
jmp 0x4066af
mov eax, 0x419028
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406685
sub eax, 0x419028
sar eax, 1
sub eax, 1
je 0x4066af
cmp word [eax*2 + 0x419026], 0x5c
jne 0x4066af
mov word [eax*2 + 0x419026], di
push 0x400
push 0x419230
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4066d4
mov word [0x419a30], di
mov word [0x419230], di
jmp 0x40673b
mov edx, 0x400
xor eax, eax
jmp 0x4066e0
movzx ecx, word [eax + 0x419230]
mov word [eax + 0x419a30], cx
add eax, 2
cmp cx, di
je 0x4066fb
sub edx, 1
jne 0x4066e0
cmp edx, edi
jne 0x406706
mov word [0x41a22e], di
mov eax, 0x419a30
jmp 0x406710
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x406710
jmp 0x406720
sub eax, 2
cmp eax, 0x419a30
je 0x406732
cmp word [eax], 0x5c
jne 0x406720
jmp 0x406738
cmp word [eax], 0x5c
jne 0x40673b
mov word [eax], di
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
push 0x1a
push 0x41a230
push edi
call esi
test eax, eax
jne 0x40675a
mov word [0x41a230], di
jmp 0x40678a
mov eax, 0x41a230
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406760
sub eax, 0x41a230
sar eax, 1
sub eax, 1
je 0x40678a
cmp word [eax*2 + 0x41a22e], 0x5c
jne 0x40678a
mov word [eax*2 + 0x41a22e], di
push edi
push edi
push 0x41aa30
push edi
call esi
test eax, eax
pop esi
jne 0x4067a2
mov word [0x41aa30], di
pop edi
ret
mov eax, 0x41aa30
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4067a7
sub eax, 0x41aa30
sar eax, 1
sub eax, 1
je 0x4067d1
cmp word [eax*2 + 0x41aa2e], 0x5c
jne 0x4067d1
mov word [eax*2 + 0x41aa2e], di
pop edi
ret

Function at 0x4067e0
Capabilities:
Get disk information
Query environment variable

Disassembly:
sub esp, 0x214
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x41b280]
push 0x16
call fcn.00402950
mov edi, eax
test edi, edi
je 0x4068b1
push 0x104
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4068a1
mov edx, 0x4081d8
lea eax, [esp + 0x10]
mov esi, 0x104
lea ebx, [ebx]
cmp word [eax], 0
je 0x40683e
add eax, 2
sub esi, 1
jne 0x406830
test esi, esi
je 0x406864
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
je 0x406858
sub esi, 1
jne 0x406842
test esi, esi
jne 0x406864
mov word [esp + 0x216], si
push 0
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
push edi
push 0
je 0x4068a4
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x214
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor eax, eax
pop esi
add esp, 0x214
ret
Function at 0x406ca0
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x23c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x41b280]
push 5
mov dword [esp + 0x18], 0
call fcn.00402950
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x406dce
lea edi, [esp + 0x10]
call fcn.00403010
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x406cf4
call fcn.004065d0
jmp 0x406dbe
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406db7
mov ebx, dword [esp + 0x10]
test ebx, ebx
mov edi, ebx
je 0x406da0
lea ecx, [ecx]
mov esi, dword [edi]
lea edx, [esp + 0x40]
mov eax, edx
sub esi, eax
lea ebx, [ebx]
movzx eax, word [esi + edx]
cmp ax, 0x41
jb 0x406d43
cmp ax, 0x5a
ja 0x406d43
add eax, 0x20
movzx ecx, ax
movzx eax, word [edx]
cmp ax, 0x41
jb 0x406d58
cmp ax, 0x5a
ja 0x406d58
add eax, 0x20
add edx, 2
test cx, cx
movzx eax, ax
je 0x406d68
cmp cx, ax
je 0x406d30
movzx edx, ax
movzx eax, cx
sub eax, edx
je 0x406d7b
mov edi, dword [edi + 4]
test edi, edi
jne 0x406d20
jmp 0x406da0
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406da0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x1c]
push edx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406d13
mov esi, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esp + 0x10]
call fcn.00402f10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret

Function at 0x406df0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x41b280]
push 0x16
call fcn.00402950
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
mov eax, dword [0x41b280]
push edx
call fcn.00402950
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, eax
je 0x406e9b
test ebx, ebx
je 0x406e93
push 0x104
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x406e93
lea eax, [esp + 0x18]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406e53
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
sub eax, edx
sar eax, 1
sub eax, 1
push eax
call fcn.00403fb0
add esp, 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
push esi
push 0
call ebp
push eax
call edi
test ebx, ebx
je 0x406ea7
push ebx
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
Function at 0x406ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x410
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x41b280]
push 0x10
call fcn.00402950
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
mov eax, dword [0x41b280]
push 0x11
call fcn.00402950
test esi, esi
mov edi, eax
mov dword [esp + 0x1c], 0x400
je 0x406f4d
test edi, edi
je 0x406f4d
lea edx, [esp + 0x14]
push edx
push 0x20119
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406f4d
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x406f52
mov byte [esp + 0x20], 0
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x406f6a
push esi
push 0
call ebp
push eax
call ebx
test edi, edi
je 0x406f76
push edi
push 0
call ebp
push eax
call ebx
call fcn.004067e0
lea ecx, [esp + 0x20]
xor edx, edx
cmp byte [ecx], 0
je 0x406fbb
add ecx, 1
cmp byte [ecx], 0
je 0x406fae
add ecx, 1
cmp byte [ecx], 0
je 0x406fb3
add ecx, 1
cmp byte [ecx], 0
je 0x406fb8
add edx, 4
add ecx, 1
cmp edx, 0x400
jb 0x406f81
jmp 0x406fbb
add edx, 1
jmp 0x406fbb
add edx, 2
jmp 0x406fbb
add edx, 3
push eax
lea ecx, [esp + edx + 0x24]
push str.__08X
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
xor edx, edx
cmp byte [eax], 0
je 0x40700f
add eax, 1
cmp byte [eax], 0
je 0x407002
add eax, 1
cmp byte [eax], 0
je 0x407007
add eax, 1
cmp byte [eax], 0
je 0x40700c
add edx, 4
add eax, 1
cmp edx, 0x400
jb 0x406fd5
jmp 0x40700f
add edx, 1
jmp 0x40700f
add edx, 2
jmp 0x40700f
add edx, 3
lea eax, [esp + 0x20]
call fcn.004040f0
push eax
lea edx, [esp + 0x24]
push edx
call fcn.004065d0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407030
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [0x41b280]
push 0x1d
xor bl, bl
call fcn.00402950
mov esi, eax
test esi, esi
jne 0x407052
mov al, 1
pop esi
pop ebx
pop ecx
ret
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40706c
mov bl, 1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x4074c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4075e4
push ebp
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4075e3
movzx eax, word [esi + 8]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push 0
push esi
push ebp
push eax
push 0
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x4075e3
mov eax, dword [esp + 0x20]
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4075e2
mov eax, dword [esi + 0x20]
mov ecx, dword [esi]
push ebx
mov ebx, dword [esi + 0x14]
add eax, eax
add eax, eax
lea edx, [ecx + eax]
lea edx, [edx + ebx + 0xe]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x16], edx
xor edx, edx
push edx
lea eax, [ecx + eax + 0xe]
lea ecx, [esp + 0x14]
push ecx
mov word [esp + 0x22], dx
mov word [esp + 0x24], dx
push 0xe
lea edx, [esp + 0x20]
push edx
push edi
mov word [esp + 0x28], 0x4d42
mov dword [esp + 0x32], eax
call ebx
test eax, eax
je 0x4075e1
cmp dword [esp + 0x10], 0xe
jne 0x4075e1
mov ecx, dword [esi + 0x20]
push 0
lea eax, [esp + 0x14]
push eax
lea edx, [ecx*4 + 0x28]
push edx
push esi
push edi
call ebx
test eax, eax
je 0x4075e1
mov eax, dword [esi + 0x20]
lea ecx, [eax*4 + 0x28]
cmp dword [esp + 0x10], ecx
jne 0x4075e1
mov esi, dword [esi + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push esi
push ebp
push edi
call ebx
test eax, eax
je 0x4075e1
cmp dword [esp + 0x10], esi
jne 0x4075e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4075e1
mov eax, ebp
call fcn.00404250
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x14
ret

Function at 0x4075f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x804
push esi
push eax
push ecx
lea edx, [esp + 0x10]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407666
mov edx, dword [esp + 0x80c]
push edi
push 0
lea ecx, [esp + 0xc]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x407666
cmp dword [esp + 4], ebx
jb 0x407666
mov al, 1
pop esi
add esp, 0x804
ret
xor al, al
pop esi
add esp, 0x804
ret
Function at 0x407670
Capabilities:
Create directory

Disassembly:
sub esp, 0x800
cmp byte [0x41b26c], 0
push ebx
mov ebx, eax
jne 0x4076e6
mov eax, ecx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407684
sub eax, ecx
sar eax, 1
sub eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x4076a1
sub eax, 1
xor edx, edx
test eax, eax
jbe 0x4076b5
cmp word [ecx + edx*2], 0x5c
je 0x4076e6
add edx, 1
cmp edx, eax
jb 0x4076a7
mov eax, dword [esp + 0x808]
push eax
push ecx
lea ecx, [esp + 0xc]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4076f1
lea ecx, [esp + 4]
push esi
mov eax, edi
call fcn.004075f0
add esp, 4
pop ebx
add esp, 0x800
ret
Function at 0x405f69
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d180
cmp edx, dword [eax]
je 0x405f8b
add eax, 8
inc ecx
cmp eax, 0x40d210
jl 0x405f7c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d180]
jne 0x4060b9
mov eax, dword [0x40d6f8]
cmp eax, 1
je 0x406093
test eax, eax
jne 0x405fbc
cmp dword [0x40d0d4], 1
je 0x406093
cmp edx, 0xfc
je 0x4060b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405ff3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004051f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406590
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406036
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406590
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c450
push edi
call fcn.00407220
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004051f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405200
lea eax, [ebp - 0xa0]
push 0x40c430
push eax
call fcn.00405200
push dword [esi + 0x40d184]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405200
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040718e
add esp, 0x2c
pop edi
jmp 0x4060b9
lea eax, [ebp + 8]
lea esi, [esi + 0x40d184]
push 0
push eax
push dword [esi]
call fcn.00406590
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x433003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4013b0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
sub esp, 0x10
push ebp
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebp, eax
test ebp, ebp
jne 0x4013dd
push str.failed_to_create_winhttp_session_n
call fcn.00402870
add esp, 4
mov eax, esi
pop esi
pop ebp
add esp, 0x10
ret
push 0
push 0
push str.master.bf1942.org
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x401411
push str.failed_to_create_winhttp_connect_n
call fcn.00402870
add esp, 4
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, esi
pop esi
pop ebp
add esp, 0x10
ret
push ebx
push edi
push 0
push 0
push 0
push 0
push str._json__full
push 0x422574
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
jne 0x401444
push str.failed_to_create_winhttp_request_n
call fcn.00402870
add esp, 4
jmp 0x40151e
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne byte [esp + 0x13]
test eax, eax
jne 0x401474
push str.request_failed__n
call fcn.00402870
add esp, 4
jmp 0x401570
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne byte [esp + 0x13]
test eax, eax
jne 0x40149a
push str.receive_response_failed__n
call fcn.00402870
add esp, 4
jmp 0x401570
lea eax, [esp + 0x14]
xor edi, edi
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x401502
nop dword [eax]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401554
add eax, edi
cmp eax, 0x4000000
ja 0x40154d
inc eax
push eax
push esi
call fcn.0040ca2a
mov esi, eax
add esp, 8
test esi, esi
je 0x40153e
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
lea eax, [edi + esi]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
add edi, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4014b0
push str.query_data_available_failed_n
call fcn.00402870
add esp, 4
test esi, esi
je 0x40151e
push esi
call fcn.0040ca04
add esp, 4
xor esi, esi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebp
call edi
push dword [esp + 0x1c]
call edi
test ebx, ebx
je 0x401534
push ebx
call edi
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0x10
ret
push str.get_server_list_realloc_failed_n
call fcn.00402870
add esp, 4
jmp 0x40151e
push str.response_json_data_too_big__n
jmp 0x401507
push edi
push str.got_server_list_json___u_bytes_n
mov byte [edi + esi], 0
call fcn.00402870
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x401570
mov dword [eax], edi
cmp byte [esp + 0x13], 0
jne 0x40151e
jmp 0x40150f
Function at 0x402ef0
Capabilities:
Create thread
Create udp socket
Initialize winsock library
Set socket configuration
Terminate process

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x42b014]
xor eax, esp
mov dword [esp + 0x1a4], eax
cmp dword [0x42c320], 0
jne 0x40300c
push 0x42c310
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x42c320], eax
lea eax, [esp + 0x14]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x42c328], eax
cmp eax, 0xffffffff
jne 0x402f6c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.failed_to_create_socket:__d_n
call fcn.00402870
add esp, 8
jmp 0x402ff2
lea ecx, [esp]
mov dword [esp], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 4], xmm0
mov word [esp + 4], ax
lea eax, [esp + 4]
push 0x10
push eax
push dword [0x42c328]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x402fd8
push dword [0x42c328]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x42c328], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.failed_to_bind_socket:__d_n
call fcn.00402870
add esp, 8
jmp 0x402ff2
push 0
push 0
push 0
push 0x403030
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42c324], eax
mov ecx, dword [esp + 0x1a4]
mov eax, 0x42c320
xor ecx, esp
call fcn.00406f44
add esp, 0x1a8
ret
push 0x10
push str.Error
push str.QueryInit_called_twice
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.0040ce1a
int3

Function at 0x41b0bc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ad6d

Function at 0x41b0c7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041aef7