joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x4018c0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x401203
push 0x400
push esi
lea ebx, [ebp - 0x400]
push ebx
call sym._strncpy
add esp, 0xc
mov eax, dword [0x41b03c]
lea ebx, [ebp - 0x400]
test eax, eax
je 0x401218
push ebx
call eax
add esp, 4
test esi, esi
jne 0x401223
push 0
call sym._exit
mov al, byte [ebp - 0x400]
cmp al, 0x2d
je 0x401231
cmp al, 0x2b
jne 0x401240
push ebx
call sym._atoi
push eax
call sym._exit
lea esi, [esi]
push ebx
call sym._plog
push 0xffffffffffffffff
call sym._exit
arpl word [edi + 0x72], bp
sub byte gs:[ecx], ch
and byte [esi + 0x61], ah
imul ebp, dword [ebp + 0x64], 0x89559000
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [0x41b040]
test eax, eax
je 0x401272
push ebx
call eax
add esp, 4
test ebx, ebx
je 0x40127f
push ebx
call sym._plog
add esp, 4
push 0x40124d
call sym._quit
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401ce8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x10]
push edx
push eax
call sub.wsock32.dll_getsockname
cmp eax, 0xffffffff
je 0x401d1c
xor eax, eax
mov ax, word [ebp - 0xe]
push eax
call sub.wsock32.dll_ntohs
and eax, 0xffff
mov esp, ebp
pop ebp
ret

Function at 0x401d9c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
push ebx
lea eax, [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push 0x8004667e
push edx
call sub.wsock32.dll_ioctlsocket
mov esi, eax
cmp esi, 0xffffffff
jne 0x401de0
push 0x162
push 0x401d70
lea ebx, [ebp - 0x80]
push ebx
call sym._sprintf
push ebx
call sym._perror
mov eax, esi
jmp 0x401de2
xor eax, eax
lea esp, [ebp - 0x88]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401e50
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push edi
push esi
lea eax, [ebp - 0x118]
push ebx
mov edi, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [ebp - 0x118], 0
mov edx, dword [0x41b2c4]
mov dword [ebp - 0x118], edx
mov edx, dword [0x41b2c8]
mov dword [eax + 4], edx
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
push eax
push 0
push 0
lea ebx, [ebp - 0x110]
push ebx
push edi
call sub.wsock32.dll_select
mov esi, eax
cmp esi, 0xffffffff
jne 0x401ed4
call sym.___errno
xor edx, edx
cmp dword [eax], 4
je 0x401ed0
mov edx, esi
lea esi, [esi]
mov eax, edx
jmp 0x401ee8
push ebx
push edi
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
jne 0x401ee3
xor eax, eax
jmp 0x401ee8
mov eax, 1
lea esp, [ebp - 0x12c]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401fdc
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x402002
mov dword [0x41b2c0], 0
jmp 0x402073
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], 0
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call sub.wsock32.dll_bind
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402050
mov eax, esi
jmp 0x402073
mov dword [0x41b2c0], 1
call sym.___errno
mov ebx, dword [eax]
push esi
call sub.wsock32.dll_closesocket
call sym.___errno
mov dword [eax], ebx
mov eax, 0xffffffff
lea esp, [ebp - 0x18]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40207c
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4020a2
mov dword [0x41b2c0], 0
jmp 0x402117
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x10], 2
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call sub.wsock32.dll_bind
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4020f4
mov eax, esi
jmp 0x402117
mov dword [0x41b2c0], 1
call sym.___errno
mov ebx, dword [eax]
push esi
call sub.wsock32.dll_closesocket
call sym.___errno
mov dword [eax], ebx
mov eax, 0xffffffff
lea esp, [ebp - 0x18]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402194
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
jne 0x4021ed
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x4021e3
mov dword [0x41b2c0], 3
mov eax, ebx
jmp 0x402222
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov word [ebp - 0x10], 2
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.wsock32.dll_connect
cmp eax, 0xffffffff
je 0x402218
xor eax, eax
jmp 0x402222
mov dword [0x41b2c0], 5
lea esp, [ebp - 0x18]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40222c
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [0x41b2c0], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x10], 2
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0xe], ax
cmp dword [0x41b2d0], 0
je 0x402282
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4022ba
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
jne 0x4022ba
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x4022b0
mov dword [0x41b2c0], 3
mov eax, ebx
jmp 0x4022d3
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.wsock32.dll_sendto
lea esp, [ebp - 0x18]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402320
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov esi, dword [ebp + 0xc]
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
jne 0x402360
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x402356
mov dword [0x41b2c0], 3
mov eax, 0xffffffff
jmp 0x402395
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call sym._DgramReceiveAny
mov edx, eax
cmp edx, 0xffffffff
je 0x402382
mov eax, dword [0x41e8b4]
cmp dword [ebp - 0xc], eax
je 0x402393
mov dword [0x41b2c0], 8
mov eax, 0xffffffff
jmp 0x402395
mov eax, edx
lea esp, [ebp - 0x18]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4025a8
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4025d0
mov dword [0x41b2c0], 0
jmp 0x40264a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], 0
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call sub.wsock32.dll_bind
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402625
mov dword [0x41b2c0], 1
jmp 0x402642
push 5
push esi
call sub.wsock32.dll_listen
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402638
mov eax, esi
jmp 0x40264a
mov dword [0x41b2c0], 2
push esi
call sub.wsock32.dll_closesocket
mov eax, ebx
lea esp, [ebp - 0x18]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402654
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x10]
push edx
push eax
call sub.wsock32.dll_getsockname
cmp eax, 0xffffffff
je 0x402682
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_inet_ntoa
jmp 0x402684
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4026f4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x10], 2
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0xe], ax
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
jne 0x40275e
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x402754
mov dword [0x41b2c0], 3
jmp 0x4027a7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402780
mov dword [0x41b2c0], 0
jmp 0x4027ac
push 0x10
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.wsock32.dll_connect
mov esi, eax
cmp esi, 0xffffffff
je 0x402797
mov eax, ebx
jmp 0x4027ac
mov dword [0x41b2c0], 5
push ebx
call sub.wsock32.dll_closesocket
mov eax, 0xffffffff
lea esp, [ebp - 0x18]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40280c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push section..bss
call sym._setjmp
add esp, 4
test eax, eax
je 0x402835
push 0
push 0x125
call sym._signal
mov eax, 0xffffffff
jmp 0x402884
xor esi, esi
cmp esi, dword [ebp + 0x10]
jge 0x402882
lea esi, [esi]
push sym._inthandler
push 0x125
call sym._signal
push 0
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov edx, dword [ebp + 8]
push edx
call sub.wsock32.dll_recv
push 0
mov ebx, eax
push 0x125
call sym._signal
add esi, ebx
add esp, 0x10
test ebx, ebx
jle 0x402882
cmp esi, dword [ebp + 0x10]
jl 0x402840
mov eax, esi
lea esp, [ebp - 8]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, 0
push 0
call sym._Send_target
add esp, 4
call sym._inkey
test al, al
je 0x409f6d
cmp al, 0x70
je 0x409f40
jg 0x409f30
cmp al, 0x1b
je 0x409f80
cmp al, 0x35
je 0x409f73
mov edx, 0x445dd0
jmp 0x409f50
cmp al, 0x71
je 0x409f80
cmp al, 0x74
je 0x409f73
mov edx, 0x445dd0
jmp 0x409f50
xor bl, 1
push pe_nt_image_headers32
jmp 0x409f65
and eax, 0x7f
mov al, byte [eax + edx]
and eax, 0xff
je 0x409f80
test bl, bl
je 0x409f64
sub eax, 0xffffff80
push eax
call sym._Send_target
add esp, 4
mov cl, 0
test cl, cl
je 0x409f10
test bl, bl
je 0x409f92
push 0x85
jmp 0x409f94
push 0
push 0
push 0x409efe
call sym._prt
xor eax, eax
jmp 0x409f9e
push 5
call sym._Send_target
mov eax, 1
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40fe04
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push 0x40fdeb
call sym._getenv
add esp, 4
test eax, eax
jne 0x40fe24
mov eax, 0x40fdf8
push eax
lea ebx, [ebp - 0x400]
push ebx
call sym._strcpy
push 0x40fdff
push ebx
call sym._suffix
add esp, 0x10
test al, al
jne 0x40fe51
push 0x40fdff
push ebx
call sym._strcat
add esp, 8
push ebx
call sym._init_file_paths
mov ebx, dword [ebp - 0x404]
mov esp, ebp
pop ebp
ret

Function at 0x4108d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov eax, dword [ebp + 8]
push eax
lea ebx, [ebp - 0x400]
push ebx
call sym._strcpy
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x410904
test al, 0x10
jne 0x410904
mov eax, 1
jmp 0x410906
xor eax, eax
mov ebx, dword [ebp - 0x404]
mov esp, ebp
pop ebp
ret

Function at 0x410910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push ebx
mov eax, dword [ebp + 8]
push eax
lea ebx, [ebp - 0x400]
push ebx
call sym._strcpy
mov eax, ebx
mov edx, esi
add esp, 8
mov edx, dword [eax]
test dl, dh
jne 0x410940
test dl, dl
je 0x410958
test dh, dh
je 0x410957
test edx, 0xff0000
je 0x410956
add eax, 4
test edx, 0xff000000
jne 0x410932
sub eax, 3
inc eax
inc eax
sub eax, ebx
je 0x410967
dec eax
cmp byte [eax + ebx], 0x5c
jne 0x410967
mov byte [eax + ebx], 0
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x410984
test al, 0x10
je 0x410984
mov eax, 1
jmp 0x410986
xor eax, eax
lea esp, [ebp - 0x408]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410d88
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push edi
push esi
push ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp esi, 0x41d340
je 0x410dc7
mov eax, dword [0x41c888]
push eax
xor eax, eax
mov al, byte [esi + 0xa0]
push eax
push 0x410b21
push edi
call sub.kernel32.dll_GetPrivateProfileIntA
test eax, eax
setne al
mov byte [esi + 0xa0], al
mov eax, dword [0x41c888]
push eax
push 0x7f
lea ebx, [ebp - 0x80]
push ebx
push 0x410d76
push 0x410b29
push edi
call sub.kernel32.dll_GetPrivateProfileStringA
push ebx
call sym._extract_file_name
push eax
call sym._string_make
mov dword [esi + 0xa4], eax
mov eax, dword [0x41c888]
push eax
push 0x7f
push ebx
push 0x410d7f
push 0x410b2e
push edi
call sub.kernel32.dll_GetPrivateProfileStringA
push ebx
call sym._extract_file_name
push eax
call sym._string_make
mov dword [esi + 0xa8], eax
mov eax, dword [0x41c888]
push eax
mov eax, dword [esi + 0x74]
push eax
push 0x410b36
push edi
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [esi + 0x74], eax
mov eax, dword [0x41c888]
push eax
mov eax, dword [esi + 0x70]
push eax
push 0x410b3e
push edi
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [esi + 0x70], eax
mov eax, dword [0x41c888]
push eax
mov eax, dword [esi + 0x78]
push eax
push 0x410b43
push edi
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [esi + 0x78], eax
mov eax, dword [0x41c888]
push eax
mov eax, dword [esi + 0x7c]
push eax
push 0x410b4d
push edi
call sub.kernel32.dll_GetPrivateProfileIntA
lea esp, [ebp - 0x8c]
mov dword [esi + 0x7c], eax
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x410eb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0x410c84
push 0x41d340
call sym._load_prefs_aux
push 0x410c90
push 0x41d400
call sym._load_prefs_aux
push 0x410c9e
push 0x41d4c0
call sym._load_prefs_aux
push 0x410cac
push 0x41d580
call sym._load_prefs_aux
add esp, 0x20
push 0x410cba
push 0x41d640
call sym._load_prefs_aux
push 0x410cc8
push 0x41d700
call sym._load_prefs_aux
push 0x410cd6
push 0x41d7c0
call sym._load_prefs_aux
push 0x410ce4
push 0x41d880
call sym._load_prefs_aux
mov eax, dword [0x41c888]
add esp, 0x20
push eax
push 0x46
push 0x445b20
push 0x410e8d
push 0x410e94
push 0x410e99
call sub.kernel32.dll_GetPrivateProfileStringA
mov eax, dword [0x41c888]
push eax
push 0x13
push 0x445f20
push 0x410ea2
push 0x410ea9
push 0x410e99
call sub.kernel32.dll_GetPrivateProfileStringA
mov eax, dword [0x410e8d]
mov ecx, 0x445a30
mov edx, 0x410e8d
mov dword [0x445a30], eax
mov esp, ebp
mov ax, word [edx + 4]
mov word [ecx + 4], ax
mov al, byte [edx + 6]
mov byte [ecx + 6], al
pop ebp
ret
Function at 0x411f00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
xor eax, eax
push ebx
mov ax, word [ebp + 8]
cmp eax, 0xd0
jg 0x411f37
cmp eax, 0xca
jge 0x411f84
cmp eax, 0x68
je 0x411f64
jle 0x412013
cmp eax, 0x69
je 0x411f64
cmp eax, 0xc9
je 0x411f74
jmp 0x412013
cmp eax, 0xde
je 0x412004
jg 0x412013
cmp eax, 0xda
jg 0x412013
cmp eax, 0xd4
jl 0x412013
jmp 0x411fa5
push 0
call sym._quit
jmp 0x412013
push 0x41d340
call sym._term_change_font
jmp 0x412013
add eax, 0xffffff37
cmp eax, 7
ja 0x412013
lea eax, [eax + eax*2]
shl eax, 6
add eax, 0x41d340
push eax
call sym._term_change_font
jmp 0x412013
add eax, 0xffffff2d
cmp eax, 7
ja 0x412013
lea ebx, [eax + eax*2]
shl ebx, 6
mov eax, 0x41d340
cmp byte [ebx + eax + 0xa0], 0
jne 0x411fe9
mov byte [ebx + eax + 0xa0], 1
push 5
mov eax, dword [ebx + 0x41d3a0]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
add eax, 0x41d340
push eax
call sym._term_data_redraw
jmp 0x412013
mov byte [ebx + eax + 0xa0], 0
push 0
mov eax, dword [ebx + 0x41d3a0]
push eax
call sub.user32.dll_ShowWindow
jmp 0x412013
cmp byte [0x445bb0], 0
sete al
mov byte [0x445bb0], al
mov ebx, dword [ebp - 0x54]
mov esp, ebp
pop ebp
ret
Function at 0x412bc4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push edi
push esi

Function at 0x412d44
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
push ebx
mov edx, dword [ebp + 8]
mov dword [0x41d950], edx
cmp dword [ebp + 0xc], 0
jne 0x412dfc
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x2c], sym._AngbandWndProc_16
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], edx
mov eax, dword [0x41c88c]
push eax
push edx
call sub.user32.dll_LoadIconA
mov dword [0x41d970], eax
mov dword [ebp - 0x1c], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x18], eax
push 4
call sub.gdi32.dll_GetStockObject
mov dword [ebp - 0x14], eax
mov eax, dword [0x41c88c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea ebx, [ebp - 0x30]
push ebx
call sub.user32.dll_RegisterClassA
test ax, ax
jne 0x412dd4
push 1
call sym._exit
lea esi, [esi]
mov dword [ebp - 0x2c], sym._AngbandListProc_16
mov dword [ebp - 0x10], 0
mov eax, dword [0x41c890]
mov dword [ebp - 0xc], eax
push ebx
call sub.user32.dll_RegisterClassA
test ax, ax
jne 0x412dfc
push 2
call sym._exit
mov dword [0x41b03c], sym._hack_quit
mov dword [0x41b040], 0x4129ec
mov dword [0x41b038], 0x412980
call sym._init_stuff_1
lea eax, [ebp - 0x1e0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0
call sub.user32.dll_GetDC
push 0xc
mov ebx, eax
push ebx
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 4
sete al
mov byte [0x41c887], al
push 0x26
push ebx
call sub.gdi32.dll_GetDeviceCaps
shr eax, 8
and al, 1
mov byte [0x41c886], al
push ebx
push 0
call sub.user32.dll_ReleaseDC
call sym._init_windows
mov dword [0x445cc0], 0x412d3f
mov byte [0x41c885], 1
push 0
call sym._client_init
add esp, 4
lea ebx, [ebp - 0x50]
jmp 0x412e97
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 0
push 0
push 0
push ebx
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x412e8b
call sym._Net_cleanup
push 0
call sym._quit
mov ebx, dword [ebp - 0x1e4]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41a64c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push ebx
call sym.___main
push 0
call sub.kernel32.dll_GetModuleHandleA
mov esi, eax
call sub.kernel32.dll_GetCommandLineA
mov ebx, eax
mov al, byte [ebx]
cmp al, 0x20
je 0x41a67e
test al, al
je 0x41a67a
inc ebx
mov al, byte [ebx]
cmp al, 0x20
jne 0x41a66f
cmp al, 0x20
jne 0x41a684
inc ebx
cmp byte [ebx], 0x20
je 0x41a67e
lea eax, [ebp - 0x50]
push eax
call sub.kernel32.dll_GetStartupInfoA
mov eax, 1
test byte [ebp - 0x24], 1
je 0x41a69e
xor eax, eax
mov ax, word [ebp - 0x20]
push eax
push ebx
push 0
push esi
call sym._WinMain_16
lea esp, [ebp - 0x58]
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret